NATS4 REST API Affiliate GET permissions

From TMMwiki
Jump to: navigation, search
NATS 4
Members Admin
The Members Admin
View Member Details
Add Member
MySQL Auth
Mod Authn DB
Multisite Access
Member Logging
Member Password Retrieval
OpenID Connect
Mod Auth OpenIDC
ID Numbers
SOAP API
API
API Best Practices
WSDL Cache
Add Affiliate
Add Member Note
Admin Get Adtools
Adtool Categories
Adtool Types
Affiliate Get Campaigns
Bulk Import Adtools
Caching
Decode Natscode
Expire Manual Member
Get Affiliate Campaigns
Get Affiliate Hit Data
Get Affiliate Loginids
Get Affiliate Nats Codes
Get Affiliate Payout
Get Affiliate Program Campaign List
Get_Affiliate_Program_Campaign_List
Get Member Details
Get Member Instant Upgrade String
Get Member Package Upgrade String
Get Member Token Rebuy String
Get Member Upsell String
Get Payment Data
Get Payvia Rule
Get Profit Loss Report
Ping
Record Member Login
Search Affiliate Info
Search Member Info
Send Email API Function
Set Affiliate Admin Settings
Set Affiliate Customs
Set Affiliate Defaults
Set Affiliate Information
Set Affiliate Settings
Set Member Details
Set Payment Status
Set Payvia Rule

REST API
API Overview
API Best Practices
REST API PATH UPDATES
    Adtool
GET /adtool/admin
GET /adtool/adtools
GET /adtool/adtool
GET /adtool/adtool-rules
GET /adtool/adtool-rule
GET /adtool/categories
GET /adtool/field-options
GET /adtool/field-types
GET /adtool/groups
GET /adtool/search
GET /adtool/templates
GET /adtool/types
GET /adtool/type
POST /adtool/adtool
POST /adtool/adtool-rule
POST /adtool/category
POST /adtool/field
POST /adtool/field-option
POST /adtool/group
POST /adtool/import
POST /adtool/type
PATCH /adtool/adtool
PATCH /adtool/adtool-group
PATCH /adtool/adtool-rule
PATCH /adtool/category
PATCH /adtool/field
PATCH /adtool/field-option
PATCH /adtool/group
PATCH /adtool/move
PATCH /adtool/restore-adtool
PATCH /adtool/restore-category
PATCH /adtool/restore-field
PATCH /adtool/restore-field-option
PATCH /adtool/restore-type
PATCH /adtool/type
DELETE /adtool/adtool
DELETE /adtool/adtool-rule
DELETE /adtool/category
DELETE /adtool/field
DELETE /adtool/field-option
DELETE /adtool/group
DELETE /adtool/type
    Affiliate
DELETE /affiliate/account-rep
DELETE /affiliate/account-type
DELETE /affiliate/affiliate
DELETE /affiliate/doc
DELETE /affiliate/group
DELETE /affiliate/permissions
GET /affiliate/account-changes
GET /affiliate/account-types
GET /affiliate/admin-settings
GET /affiliate/campaigns
GET /affiliate/current
GET /affiliate/current-permissions
GET /affiliate/docs
GET /affiliate/doc
GET /affiliate/groups
GET /affiliate/group
GET /affiliate/hits
GET /affiliate/link-styles
GET /affiliate/loginids
GET /affiliate/loginlog
GET /affiliate/manual-payout
GET /affiliate/news-sections
GET /affiliate/notes
GET /affiliate/notices
GET /affiliate/override
GET /affiliate/payout
GET /affiliate/payment-periods
GET /affiliate/payvia-types
GET /affiliate/payvia-type
GET /affiliate/permissions
GET /affiliate/programcampaigns
GET /affiliate/referrer
GET /affiliate/referring-urls
GET /affiliate/reps
GET /affiliate/rest-methods
GET /affiliate/search
GET /affiliate/search-limited
GET /affiliate/settings
GET /affiliate/skins
GET /affiliate/soap-functions
GET /affiliate/status
PATCH /affiliate/adminsettings
PATCH /affiliate/account-change
PATCH /affiliate/account-type
PATCH /affiliate/account-type-permissions
PATCH /affiliate/admin-setting
PATCH /affiliate/affiliate-account-type
PATCH /affiliate/affiliate-group
PATCH /affiliate/allsettings
PATCH /affiliate/account-rep
PATCH /affiliate/avatar
PATCH /affiliate/customs
PATCH /affiliate/defaults
PATCH /affiliate/details
PATCH /affiliate/override
PATCH /affiliate/password
PATCH /affiliate/payment-period
PATCH /affiliate/payvia
PATCH /affiliate/payvia-info
PATCH /affiliate/permissions
PATCH /affiliate/referrer
PATCH /affiliate/reset-api
PATCH /affiliate/reset-rss
PATCH /affiliate/reset-tos
PATCH /affiliate/rest-permissions
PATCH /affiliate/restore
PATCH /affiliate/restore-account-type
PATCH /affiliate/settings
PATCH /affiliate/soap-permissions
PATCH /affiliate/status
POST /affiliate/account-type
POST /affiliate/add
POST /affiliate/doc
POST /affiliate/group
POST /affiliate/invoice
POST /affiliate/manual-sale
POST /affiliate/note
    Biller
GET /biller/available
GET /biller/partner-available
GET /biller/billerdata
GET /biller/cascades
GET /biller/cascades-available
GET /biller/cascade-count
GET /biller/cascade-history
GET /biller/cascade-rules
GET /biller/cascade-rule
GET /biller/cascade-step-count
GET /biller/cascade-steps
GET /biller/cascade-detail
GET /biller/cascade-list
GET /biller/count
GET /biller/detail
GET /biller/fees
GET /biller/partner-fees
GET /biller/last_poll
GET /biller/partner-last-poll
GET /biller/list
GET /biller/partner-detail
GET /biller/partner-list
GET /biller/partner-shortnames
GET /biller/process_types
GET /biller/partner-process-types
GET /biller/shortnames
GET /biller/transaction_types
GET /biller/partner-transaction-types
GET /biller/taxes
POST /biller/add
POST /biller/cascade
POST /biller/cascade-rule
POST /biller/cascade-step
POST /biller/partner
PATCH /biller/cascade
PATCH /biller/cascade-rule
PATCH /biller/cascade-step
PATCH /biller/cascade-steps-reorder
PATCH /biller/fee
PATCH /biller/partner-fee
PATCH /biller/restore
PATCH /biller/restore-cascade
PATCH /biller/restore-partner
PATCH /biller/setting
PATCH /biller/partner-setting
PATCH /biller/tax
DELETE /biller/biller
DELETE /biller/cascade
DELETE /biller/cascade-rule
DELETE /biller/cascade-step
DELETE /biller/fee
DELETE /biller/partner-fee
DELETE /biller/partner
DELETE /biller/tax
    Codes
GET /codes/affiliate-codes
GET /codes/decode
GET /codes/linkcodes
GET /codes/strack
    Config
DELETE /config/setting
GET /config/section
GET /config/sections
PATCH /config/affiliate_default
PATCH /config/section
    Include
DELETE /include/include
DELETE /include/step
GET /include/include
GET /include/includes
GET /include/templates
PATCH /include/include
PATCH /include/restore
PATCH /include/step
POST /include/include
POST /include/step
    Mailing
DELETE /mailing/mailing
DELETE /mailing/mailing-rule
DELETE /mailing/queue
GET /mailing/mailing
GET /mailing/mailings
GET /mailing/mailing-rules
GET /mailing/mailing-rule
GET /mailing/queue
GET /mailing/removelist
PATCH /mailing/mailing
PATCH /mailing/mailing-rule
PATCH /mailing/removelist
PATCH /mailing/removelist-queue
PATCH /mailing/resend-queue
PATCH /mailing/restore-queue
PATCH /mailing/send-mailing
PATCH /mailing/send-test-mailing
POST /mailing/mailing
POST /mailing/mailing-rule
POST /mailing/removelist
    Maintenance
DELETE /maintenance/log
DELETE /maintenance/cache
GET /maintenance/admin-actions
GET /maintenance/log
GET /maintenance/logs
GET /maintenance/nats
GET /maintenance/report
GET /maintenance/report-progress
GET /maintenance/reports
GET /maintenance/server
GET /maintenance/table
GET /maintenance/tables
GET /maintenance/table-clean-count
GET /maintenance/table-clean-progress
PATCH /maintenance/log
PATCH /maintenance/report
PATCH /maintenance/table
    Member
GET /member/available_flags
GET /member/encryptusername
GET /member/authstring
GET /member/details
GET /member/flags
GET /member/loginlog
GET /member/matching
GET /member/notes
GET /member/notices
GET /member/restricted-values
GET /member/search
GET /member/suggestedcanceloffers
GET /member/surfer-actions
PATCH /member/details
PATCH /member/expiration
PATCH /member/expiremanual
PATCH /member/resend-transaction-email
PATCH /member/resend-transaction-postback
PATCH /member/restricted-value
PATCH /member/forget
PATCH /member/lock
PATCH /member/unlock
POST /member/flag
POST /member/login
POST /member/note
POST /member/restricted-value
DELETE /member/flag
DELETE /member/restricted-value
    Message
DELETE /message/message
DELETE /message/permanent
GET /message/count
GET /message/messages
GET /message/view
PATCH /message/read
PATCH /message/unread
PATCH /message/undelete
POST /message/message
    News
DELETE /news/entry
DELETE /news/section
GET /news/entry
GET /news/news
GET /news/sections
PATCH /news/entry
POST /news/entry
POST /news/section
    Notification
DELETE /notification/notification
DELETE /notification/permanent
GET /notification/count
GET /notification/notifications
GET /notification/view
PATCH /notification/read
PATCH /notification/unread
PATCH /notification/undelete
    Option
GET /option/options
GET /option/rule
PATCH /option/rule
PATCH /option/text
POST /option/rule
    Payment
DELETE /payment/invoice
DELETE /payment/payout-period
DELETE /payment/payvia-field
DELETE /payment/payvia-field-mc
DELETE /payment/payvia-rule
GET /payment/dump-format
GET /payment/dump-formats
GET /payment/invoices
GET /payment/payments
GET /payment/payment-dumps
GET /payment/payment-dump
GET /payment/payment-search
GET /payment/payvia
GET /payment/payvias
GET /payment/payvia-fields
GET /payment/payvia-field-mcs
GET /payment/payout-period
GET /payment/payout-periods
GET /payment/payvia-rules
GET /payment/payvia-rule
GET /payment/payviarule
PATCH /payment/copy-dump-format
PATCH /payment/default-payout-period
PATCH /payment/dump-format
PATCH /payment/duplicate-payvia
PATCH /payment/invoice
PATCH /payment/payment
PATCH /payment/payment-paid
PATCH /payment/payment-store
PATCH /payment/payment-unstore
PATCH /payment/payments
PATCH /payment/payments-unstore
PATCH /payment/payout-period
PATCH /payment/payout-period-affiliates
PATCH /payment/payvia
PATCH /payment/payvia-field
PATCH /payment/payvia-fields-reorder
PATCH /payment/payvia-field-mc
PATCH /payment/payvia-field-mcs-reorder
PATCH /payment/payvia-rule
PATCH /payment/payviarule
PATCH /payment/restore-payout-period
PATCH /payment/restore-payvia-field
PATCH /payment/restore-payvia-field-mc
POST /payment/check-dump
POST /payment/dump-format
POST /payment/import-dump
POST /payment/invoice
POST /payment/payout-period
POST /payment/payvia
POST /payment/payvia-field
POST /payment/payvia-field-mc
POST /payment/payvia-rule
    Program
DELETE /program/program
DELETE /program/payout-change
DELETE /program/payout-change-tier
GET /program/additional-payout-change-targets
GET /program/affiliate-available
GET /program/detail
GET /program/list
GET /program/options
GET /program/payout-changes
GET /program/redirect-available
GET /program/sites
GET /program/tours
GET /program/types
PATCH /program/default_payout
PATCH /program/details
PATCH /program/disable_affiliate
PATCH /program/disable_tour
PATCH /program/enable_affiliate
PATCH /program/enable_site
PATCH /program/enable_tour
PATCH /program/move-payout-change
PATCH /program/payout-change
PATCH /program/payout-change-tier
POST /program/new
POST /program/payout-change
POST /program/payout-change-tier
    Report
GET /report/affiliate-ratios
GET /report/hits
GET /report/hit-totals
GET /report/profitloss
GET /report/profit-loss
GET /report/fields
GET /report/focus
GET /report/focuses
GET /report/groups
GET /report/perspective
GET /report/perspectives
GET /report/report
GET /report/subscription
GET /report/surfer
GET /report/surferaction
GET /report/transactionpayouts
GET /report/transactions
GET /report/transaction
GET /report/report-widget
GET /report/widgets
GET /report/widget
GET /report/widget-info
GET /report/views
POST /report/focus
POST /report/group
POST /report/perspective
PATCH /report/focus
PATCH /report/focus-enabled
PATCH /report/focus-default
PATCH /report/focuses-reorder
PATCH /report/perspective
PATCH /report/perspective-group
PATCH /report/report-widget
PATCH /report/widget
DELETE /report/focus
    Reward
DELETE /reward/category
DELETE /reward/purchase
DELETE /reward/point
DELETE /reward/reward
GET /reward/categories
GET /reward/points
GET /reward/purchases
GET /reward/rewards
PATCH /reward/move-point
PATCH /reward/point
PATCH /reward/reward
PATCH /reward/ship-purchase
PATCH /reward/unship-purchase
POST /reward/category
POST /reward/point
POST /reward/reward
    Service
GET /service/check-functions
GET /service/condition
GET /service/countries
GET /service/country
GET /service/datetime
GET /service/languages
GET /service/periods
GET /service/ping
GET /service/project
GET /service/rule-condition-data
GET /service/rule-info
GET /service/stats-breakdowns
GET /service/timezone
GET /service/timestamp
POST /service/sendemail
    Site
GET /site/base-templates
GET /site/billers
GET /site/cookies
GET /site/coupon
GET /site/coupons
GET /site/coupon-revisions
GET /site/email-settings
GET /site/groups
GET /site/option
GET /site/options
GET /site/options-available
GET /site/option-fields
GET /site/option-rules
GET /site/option-rule
GET /site/option-type
GET /site/option-types
GET /site/programs
GET /site/site-list
GET /site/site
GET /site/site-notices
GET /site/site-partner
GET /site/site-partners
GET /site/site-type
GET /site/sites
GET /site/template
GET /site/templates
GET /site/template-sections
GET /site/template-sites
GET /site/tour
GET /site/tours
GET /site/tour-emails
GET /site/tour-notices
POST /site/coupon
POST /site/group
POST /site/option
POST /site/option-rule
POST /site/site-partner
POST /site/site-tour
POST /site/copy-template
POST /site/tour
PATCH /site/cookie
PATCH /site/coupon
PATCH /site/duplicate-option
PATCH /site/email-settings
PATCH /site/group
PATCH /site/move
PATCH /site/option
PATCH /site/option-rule
PATCH /site/reset-coupon
PATCH /site/restore-group
PATCH /site/restore-option
PATCH /site/restore-site
PATCH /site/restore-site-partner
PATCH /site/restore-tour
PATCH /site/site
PATCH /site/site-partner
PATCH /site/template
PATCH /site/tour
DELETE /site/cookie
DELETE /site/group
DELETE /site/option
DELETE /site/option-rule
DELETE /site/site
DELETE /site/site-partner
DELETE /site/template
DELETE /site/tour
DELETE /site/tour-field
    Skin
DELETE /skin/skin
DELETE /skin/template
GET /skin/colors
GET /skin/export
GET /skin/skins
GET /skin/sections
GET /skin/templates
GET /skin/template
PATCH /skin/colors
PATCH /skin/flush
PATCH /skin/skin
PATCH /skin/template
POST /skin/copy-template
POST /skin/import
POST /skin/skin
POST /skin/template


GET /affiliate/permissions

Description

  • Get permission details for an account type

Resource URL

  • http://domain/api/affiliate/permissions
  • Replace domain with the nats domain

Request Method

  • GET

Response Format

  • JSON

Authentication

  • HTTP headers

Parameters

Parameters can be sent as url encoded params

  • loginid
    • type: digit
    • optional
  • accountid
    • type: digit
    • optional
  • limited
    • type: boolean_digit
    • optional
  • section
    • type: string
    • optional

Example Request

Method: GET
URL: http://domain/api/affiliate/permissions
Query String: loginid=3

Response:

{
    "success": true,
    "permissions": [
        {
            "key": "overview",
            "name": "Admin Overview",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "default",
                    "name": "Default Admin Overview",
                    "value": false
                },
                {
                    "key": "mobile_affiliates",
                    "name": "Mobile Affiliates",
                    "value": false
                },
                {
                    "key": "mobile_all",
                    "name": "Mobile All",
                    "value": false
                },
                {
                    "key": "mobile_new_affiliates",
                    "name": "Mobile New Affiliates",
                    "value": false
                },
                {
                    "key": "mobile_new_members",
                    "name": "Mobile New Members",
                    "value": false
                },
                {
                    "key": "mobile_programs",
                    "name": "Mobile Programs",
                    "value": false
                },
                {
                    "key": "mobile_sites",
                    "name": "Mobile Sites",
                    "value": false
                },
                {
                    "key": "mobile_summary",
                    "name": "Mobile Summary",
                    "value": false
                },
                {
                    "key": "original",
                    "name": "Original v4 View",
                    "value": false
                }
            ]
        },
        {
            "key": "adtools",
            "name": "Adtools Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "bulk",
                    "name": "Add Bulk",
                    "value": false
                },
                {
                    "key": "bulk_update",
                    "name": "Add Bulk Update",
                    "value": false
                },
                {
                    "key": "adtools",
                    "name": "Adtools",
                    "value": false
                },
                {
                    "key": "edit",
                    "name": "Edit",
                    "value": false
                },
                {
                    "key": "edit_rule",
                    "name": "Edit Rules",
                    "value": false
                },
                {
                    "key": "edit_type",
                    "name": "Edit Type",
                    "value": false
                },
                {
                    "key": "group",
                    "name": "Groups",
                    "value": false
                },
                {
                    "key": "search",
                    "name": "Search",
                    "value": false
                },
                {
                    "key": "set_cotd_content",
                    "name": "Set COTD Content",
                    "value": false
                },
                {
                    "key": "set_gbcontent",
                    "name": "Set GB Content",
                    "value": false
                },
                {
                    "key": "set_gbtemplates",
                    "name": "Set GB Templates",
                    "value": false
                },
                {
                    "key": "stop_bulk",
                    "name": "Stop Bulk Importer",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "add_cotd_content",
                    "name": "Add COTD Content",
                    "value": false
                },
                {
                    "key": "add_category",
                    "name": "Add Category",
                    "value": false
                },
                {
                    "key": "add_assoc",
                    "name": "Add Group Assoc.",
                    "value": false
                },
                {
                    "key": "add_type_field_mc_option",
                    "name": "Add MC Option",
                    "value": false
                },
                {
                    "key": "add_new_group",
                    "name": "Add New Group",
                    "value": false
                },
                {
                    "key": "add_rule",
                    "name": "Add Rule",
                    "value": false
                },
                {
                    "key": "add_type",
                    "name": "Add Type",
                    "value": false
                },
                {
                    "key": "add_type_field",
                    "name": "Add Type Field",
                    "value": false
                },
                {
                    "key": "bulk_import",
                    "name": "Bulk Import",
                    "value": false
                },
                {
                    "key": "bulk_update",
                    "name": "Bulk Update",
                    "value": false
                },
                {
                    "key": "move",
                    "name": "Change Order",
                    "value": false
                },
                {
                    "key": "delete_cotd_content",
                    "name": "Delete COTD Content",
                    "value": false
                },
                {
                    "key": "delete_category",
                    "name": "Delete Category",
                    "value": false
                },
                {
                    "key": "delete_group",
                    "name": "Delete Group",
                    "value": false
                },
                {
                    "key": "delete_mc_option",
                    "name": "Delete MC Option",
                    "value": false
                },
                {
                    "key": "delete_type",
                    "name": "Delete Type",
                    "value": false
                },
                {
                    "key": "delete_type_field",
                    "name": "Delete Type Field",
                    "value": false
                },
                {
                    "key": "disable_adtool",
                    "name": "Disable Adtool",
                    "value": false
                },
                {
                    "key": "disable_cotd_content",
                    "name": "Disable COTD Content",
                    "value": false
                },
                {
                    "key": "disable_rule",
                    "name": "Disable Rule",
                    "value": false
                },
                {
                    "key": "edit_adtool",
                    "name": "Edit Adtool",
                    "value": false
                },
                {
                    "key": "edit_category",
                    "name": "Edit Category",
                    "value": false
                },
                {
                    "key": "edit_group",
                    "name": "Edit Groups",
                    "value": false
                },
                {
                    "key": "edit_mc_option",
                    "name": "Edit MC Option",
                    "value": false
                },
                {
                    "key": "edit_rule",
                    "name": "Edit Rule",
                    "value": false
                },
                {
                    "key": "edit_type",
                    "name": "Edit Type",
                    "value": false
                },
                {
                    "key": "edit_type_field",
                    "name": "Edit Type Field",
                    "value": false
                },
                {
                    "key": "enable_adtool",
                    "name": "Enable Adtool",
                    "value": false
                },
                {
                    "key": "enable_cotd_content",
                    "name": "Enable COTD Content",
                    "value": false
                },
                {
                    "key": "new_adtool",
                    "name": "New Adtool",
                    "value": false
                },
                {
                    "key": "remove_assoc",
                    "name": "Remove Group Assoc",
                    "value": false
                },
                {
                    "key": "set_cotd_current_content",
                    "name": "Set Current COTD Content",
                    "value": false
                },
                {
                    "key": "set_gbmatches",
                    "name": "Set GB Matches",
                    "value": false
                },
                {
                    "key": "sort",
                    "name": "Sort",
                    "value": false
                },
                {
                    "key": "undelete_category",
                    "name": "Undelete Category",
                    "value": false
                },
                {
                    "key": "undelete_mc_option",
                    "name": "Undelete MC Option",
                    "value": false
                },
                {
                    "key": "undelete_type",
                    "name": "Undelete Type",
                    "value": false
                },
                {
                    "key": "undelete_type_field",
                    "name": "Undelete Type Field",
                    "value": false
                }
            ]
        },
        {
            "key": "affiliates",
            "name": "Affiliates Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "add_sale",
                    "name": "Add Manual Sale",
                    "value": false
                },
                {
                    "key": "account_access",
                    "name": "Admin Access Changes",
                    "value": false
                },
                {
                    "key": "account_changes",
                    "name": "Affiliate Account Changes",
                    "value": false
                },
                {
                    "key": "affiliate_documents",
                    "name": "Affiliate Documents",
                    "value": false
                },
                {
                    "key": "affiliate_overview",
                    "name": "Affiliate Overview",
                    "value": false
                },
                {
                    "key": "affiliate_payout_period",
                    "name": "Affiliate Payout Changes",
                    "value": false
                },
                {
                    "key": "affiliate_twofactor",
                    "name": "Affiliate Two Factor Auth",
                    "value": false
                },
                {
                    "key": "loginlog",
                    "name": "Affiliate login log",
                    "value": false
                },
                {
                    "key": "affiliate_approve",
                    "name": "Approve Affiliate",
                    "value": false
                },
                {
                    "key": "change_pass",
                    "name": "Change Password",
                    "value": false
                },
                {
                    "key": "affiliate_edit",
                    "name": "Edit Affiliate",
                    "value": false
                },
                {
                    "key": "manual_invoices",
                    "name": "Manual Invoices",
                    "value": false
                },
                {
                    "key": "affiliate_status",
                    "name": "Set Affiliate Status",
                    "value": false
                },
                {
                    "key": "email_csv_dump",
                    "name": "View Affiliate Email Dump",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "document_add",
                    "name": "Add Document",
                    "value": false
                },
                {
                    "key": "invoice_add",
                    "name": "Add Manual Invoice",
                    "value": false
                },
                {
                    "key": "add_sale",
                    "name": "Add Manual Sale",
                    "value": false
                },
                {
                    "key": "note_new",
                    "name": "Add Note",
                    "value": false
                },
                {
                    "key": "add_affiliate",
                    "name": "Add a new affiliate",
                    "value": false
                },
                {
                    "key": "access_custom",
                    "name": "Admin Access Exceptions",
                    "value": false
                },
                {
                    "key": "affiliate_twofactor",
                    "name": "Affiliate Two Factor Auth",
                    "value": false
                },
                {
                    "key": "account_changes",
                    "name": "Approve Account Changes",
                    "value": false
                },
                {
                    "key": "approve_deny",
                    "name": "Approve\/Deny New Affiliate",
                    "value": false
                },
                {
                    "key": "access_save",
                    "name": "Change Access Level",
                    "value": false
                },
                {
                    "key": "affiliate_change_api_key",
                    "name": "Change Admin API Key",
                    "value": false
                },
                {
                    "key": "change_pass",
                    "name": "Change Password",
                    "value": false
                },
                {
                    "key": "affiliate_delete",
                    "name": "Delete Affiliate",
                    "value": false
                },
                {
                    "key": "document_delete",
                    "name": "Delete Document",
                    "value": false
                },
                {
                    "key": "invoice_delete",
                    "name": "Delete Manual Invoice",
                    "value": false
                },
                {
                    "key": "document_get",
                    "name": "Download Document",
                    "value": false
                },
                {
                    "key": "edit_save",
                    "name": "Edit Affiliate Settings",
                    "value": false
                },
                {
                    "key": "invoice_edit",
                    "name": "Edit Manual Invoice",
                    "value": false
                },
                {
                    "key": "payout_period_enable",
                    "name": "Enable Payout Period",
                    "value": false
                },
                {
                    "key": "affiliate_clear_rep",
                    "name": "Remove Acct Rep",
                    "value": false
                },
                {
                    "key": "affiliate_clear_referrer",
                    "name": "Remove Referrer",
                    "value": false
                },
                {
                    "key": "affiliate_restore",
                    "name": "Restore Affiliate",
                    "value": false
                },
                {
                    "key": "affiliate_assign_rep",
                    "name": "Set Acct Rep",
                    "value": false
                },
                {
                    "key": "set_payout_period",
                    "name": "Set Affiliate Payout Period",
                    "value": false
                },
                {
                    "key": "update_status",
                    "name": "Set Affiliate Status",
                    "value": false
                },
                {
                    "key": "affiliate_assign_ref",
                    "name": "Set Referrer",
                    "value": false
                }
            ]
        },
        {
            "key": "billers",
            "name": "Billers Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "add_cascade",
                    "name": "Add Cascade",
                    "value": false
                },
                {
                    "key": "biller_charges",
                    "name": "Biller Charges",
                    "value": false
                },
                {
                    "key": "tax",
                    "name": "Biller Taxes",
                    "value": false
                },
                {
                    "key": "cascade_rules",
                    "name": "Cascade Rules",
                    "value": false
                },
                {
                    "key": "poll_status",
                    "name": "Poll Status",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "add_biller",
                    "name": "Add Biller",
                    "value": false
                },
                {
                    "key": "add_cascade",
                    "name": "Add Cascade",
                    "value": false
                },
                {
                    "key": "add_cascade_rule",
                    "name": "Add Cascade Rule",
                    "value": false
                },
                {
                    "key": "set_tax",
                    "name": "Add or Edit Taxes",
                    "value": false
                },
                {
                    "key": "delete_biller",
                    "name": "Delete Biller",
                    "value": false
                },
                {
                    "key": "delete_biller_charge",
                    "name": "Delete Biller Charge",
                    "value": false
                },
                {
                    "key": "delete_cascade",
                    "name": "Delete Cascade",
                    "value": false
                },
                {
                    "key": "delete_cascade_step",
                    "name": "Delete Cascade Step",
                    "value": false
                },
                {
                    "key": "delete_tax",
                    "name": "Delete Taxes",
                    "value": false
                },
                {
                    "key": "disable_cascade_rule",
                    "name": "Disable Cascade Rule",
                    "value": false
                },
                {
                    "key": "edit_biller",
                    "name": "Edit Biller",
                    "value": false
                },
                {
                    "key": "edit_cascade",
                    "name": "Edit Cascade",
                    "value": false
                },
                {
                    "key": "edit_cascade_rule",
                    "name": "Edit Cascade Rule",
                    "value": false
                },
                {
                    "key": "edit_cascade_step",
                    "name": "Edit Cascade Step",
                    "value": false
                },
                {
                    "key": "down_cascade_step",
                    "name": "Move Down",
                    "value": false
                },
                {
                    "key": "up_cascade_step",
                    "name": "Move Up",
                    "value": false
                },
                {
                    "key": "new_cascade_step",
                    "name": "New Cascade Step",
                    "value": false
                },
                {
                    "key": "set_biller_charge",
                    "name": "Set Biller Charge",
                    "value": false
                },
                {
                    "key": "restore_biller",
                    "name": "Undelete Biller",
                    "value": false
                },
                {
                    "key": "restore_cascade",
                    "name": "Undelete Cascade",
                    "value": false
                }
            ]
        },
        {
            "key": "commissions",
            "name": "Commissions Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "add",
                    "name": "Add Change",
                    "value": false
                },
                {
                    "key": "edit_change",
                    "name": "Edit Change",
                    "value": false
                },
                {
                    "key": "changes",
                    "name": "View Changes",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "add",
                    "name": "Add Change",
                    "value": false
                },
                {
                    "key": "add_tier",
                    "name": "Add Tier",
                    "value": false
                },
                {
                    "key": "delete_change",
                    "name": "Delete Change",
                    "value": false
                },
                {
                    "key": "delete_tier",
                    "name": "Delete Tier",
                    "value": false
                },
                {
                    "key": "edit",
                    "name": "Edit Default Payment",
                    "value": false
                },
                {
                    "key": "move",
                    "name": "Move",
                    "value": false
                },
                {
                    "key": "save_change",
                    "name": "Save Change",
                    "value": false
                },
                {
                    "key": "save_tier",
                    "name": "Save Tier",
                    "value": false
                }
            ]
        },
        {
            "key": "config",
            "name": "Configuration Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "affiliate_default_settings",
                    "name": "Affiliate Default Settings",
                    "value": false
                },
                {
                    "key": "affiliates",
                    "name": "Affiliate Settings",
                    "value": false
                },
                {
                    "key": "currency - all",
                    "name": "All Currency Settings",
                    "value": false
                },
                {
                    "key": "billers",
                    "name": "Biller Settings",
                    "value": false
                },
                {
                    "key": "cronjobs",
                    "name": "Cronjobs",
                    "value": false
                },
                {
                    "key": "display",
                    "name": "Display Settings",
                    "value": false
                },
                {
                    "key": "emails",
                    "name": "E-Mails",
                    "value": false
                },
                {
                    "key": "external programs",
                    "name": "External Program Settings",
                    "value": false
                },
                {
                    "key": "fraud",
                    "name": "Fraud Settings",
                    "value": false
                },
                {
                    "key": "logging",
                    "name": "Logging",
                    "value": false
                },
                {
                    "key": "home",
                    "name": "Main Settings",
                    "value": false
                },
                {
                    "key": "misc",
                    "name": "Miscellaneous Settings",
                    "value": false
                },
                {
                    "key": "notifications",
                    "name": "Notifications Settings",
                    "value": false
                },
                {
                    "key": "postback",
                    "name": "Postback Settings",
                    "value": false
                },
                {
                    "key": "security",
                    "name": "Security",
                    "value": false
                },
                {
                    "key": "surfer",
                    "name": "Surfer Settings",
                    "value": false
                },
                {
                    "key": "third party",
                    "name": "Third Party Settings",
                    "value": false
                },
                {
                    "key": "currency - used",
                    "name": "Used Currency Settings",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "revert",
                    "name": "Revert to Default",
                    "value": false
                },
                {
                    "key": "save",
                    "name": "Save Config",
                    "value": false
                },
                {
                    "key": "update_affiliates",
                    "name": "Update Affiliate Settings",
                    "value": false
                }
            ]
        },
        {
            "key": "global",
            "name": "Global Settings",
            "editable": false,
            "some_actions": false,
            "action": [
                {
                    "key": "edit_affiliate",
                    "name": "Edit Affiliates",
                    "value": false
                },
                {
                    "key": "restrict_member_view",
                    "name": "Restrict Member view",
                    "value": false
                }
            ],
            "setting": [
                {
                    "key": "affiliate_override",
                    "name": "Override as Affiliate",
                    "value": {
                        "disabled": true,
                        "all_affiliates": false,
                        "my_affiliates": false,
                        "my_network": false
                    }
                }
            ]
        },
        {
            "key": "includes",
            "name": "Includes Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "edit_chain",
                    "name": "Edit Popup Chain",
                    "value": false
                },
                {
                    "key": "edit_rule",
                    "name": "Edit Rules",
                    "value": false
                },
                {
                    "key": "edit_step",
                    "name": "Edit Step",
                    "value": false
                },
                {
                    "key": "rules",
                    "name": "Rules",
                    "value": false
                },
                {
                    "key": "steps",
                    "name": "Steps",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "add",
                    "name": "Add",
                    "value": false
                },
                {
                    "key": "add_rule",
                    "name": "Add Rule",
                    "value": false
                },
                {
                    "key": "add_step",
                    "name": "Add Step",
                    "value": false
                },
                {
                    "key": "delete",
                    "name": "Delete",
                    "value": false
                },
                {
                    "key": "delete_rule",
                    "name": "Delete Rule",
                    "value": false
                },
                {
                    "key": "delete_step",
                    "name": "Delete Step",
                    "value": false
                },
                {
                    "key": "edit",
                    "name": "Edit",
                    "value": false
                },
                {
                    "key": "edit_rule",
                    "name": "Edit Rule",
                    "value": false
                },
                {
                    "key": "edit_step",
                    "name": "Edit Step",
                    "value": false
                },
                {
                    "key": "undelete",
                    "name": "Undelete",
                    "value": false
                },
                {
                    "key": "undelete_step",
                    "name": "Undelete Step",
                    "value": false
                }
            ]
        },
        {
            "key": "codes",
            "name": "Linkcodes & Tools",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "links",
                    "name": "Generate Gallery Links",
                    "value": false
                },
                {
                    "key": "strack",
                    "name": "Generate Strack Links",
                    "value": false
                }
            ],
            "some_actions": false
        },
        {
            "key": "logging",
            "name": "Logs Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "admin_actions",
                    "name": "Admin Action Log",
                    "value": false
                },
                {
                    "key": "view_log",
                    "name": "View Log",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "search_log",
                    "name": "Search Log",
                    "value": false
                }
            ]
        },
        {
            "key": "mails",
            "name": "Mailing Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "queue",
                    "name": "Mailing Queue",
                    "value": false
                },
                {
                    "key": "remove",
                    "name": "Remove Addresses",
                    "value": false
                },
                {
                    "key": "mail",
                    "name": "View\/Edit Mail",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "add",
                    "name": "Add Mail",
                    "value": false
                },
                {
                    "key": "add_rule",
                    "name": "Add Rule",
                    "value": false
                },
                {
                    "key": "delete",
                    "name": "Delete",
                    "value": false
                },
                {
                    "key": "delete_queue_mail",
                    "name": "Delete Email From Queue",
                    "value": false
                },
                {
                    "key": "disable_rule",
                    "name": "Disable Rule",
                    "value": false
                },
                {
                    "key": "edit",
                    "name": "Edit Mail",
                    "value": false
                },
                {
                    "key": "edit_rule",
                    "name": "Edit Rule",
                    "value": false
                },
                {
                    "key": "removelist_save",
                    "name": "Remove Addresses",
                    "value": false
                },
                {
                    "key": "reset",
                    "name": "Reset",
                    "value": false
                },
                {
                    "key": "undelete_queue_mail",
                    "name": "Restore Email From Queue",
                    "value": false
                },
                {
                    "key": "retry_queue_mail",
                    "name": "Retry Email Queue",
                    "value": false
                },
                {
                    "key": "send",
                    "name": "Send Mail",
                    "value": false
                },
                {
                    "key": "send_test",
                    "name": "Send Test",
                    "value": false
                }
            ]
        },
        {
            "key": "cleanup",
            "name": "Maintenance Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "clean_log",
                    "name": "Clean Log",
                    "value": false
                },
                {
                    "key": "clean_table",
                    "name": "Clean Table",
                    "value": false
                },
                {
                    "key": "cron",
                    "name": "Cron",
                    "value": false
                },
                {
                    "key": "errors",
                    "name": "Errors",
                    "value": false
                },
                {
                    "key": "fix_error",
                    "name": "Fix Error",
                    "value": false
                },
                {
                    "key": "logs",
                    "name": "Logs",
                    "value": false
                },
                {
                    "key": "status",
                    "name": "Server Status",
                    "value": false
                },
                {
                    "key": "reports",
                    "name": "View Cache\/Summary Table",
                    "value": false
                },
                {
                    "key": "build_report",
                    "name": "View Summary Table",
                    "value": false
                },
                {
                    "key": "view_table",
                    "name": "View Table",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "build_report",
                    "name": "Build Report Summary",
                    "value": false
                },
                {
                    "key": "clean_log",
                    "name": "Clean Log",
                    "value": false
                },
                {
                    "key": "remove_log",
                    "name": "Clean Log",
                    "value": false
                },
                {
                    "key": "clean_table",
                    "name": "Clean Table",
                    "value": false
                },
                {
                    "key": "clear_cache",
                    "name": "Clear Cache",
                    "value": false
                },
                {
                    "key": "remove_error",
                    "name": "Remove Error",
                    "value": false
                },
                {
                    "key": "resolve_error",
                    "name": "Resolve Error",
                    "value": false
                }
            ]
        },
        {
            "key": "members",
            "name": "Members Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "add",
                    "name": "Add Member",
                    "value": false
                },
                {
                    "key": "edit",
                    "name": "Edit Member",
                    "value": false
                },
                {
                    "key": "member",
                    "name": "View Member",
                    "value": false
                },
                {
                    "key": "email_csv_dump",
                    "name": "View Member Email Dump",
                    "value": false
                },
                {
                    "key": "full_csv_dump",
                    "name": "View Member Full Dump",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "add",
                    "name": "Add Member",
                    "value": false
                },
                {
                    "key": "new_note",
                    "name": "Add Note",
                    "value": false
                },
                {
                    "key": "delete",
                    "name": "Delete Member",
                    "value": false
                },
                {
                    "key": "delete_note",
                    "name": "Delete Note",
                    "value": false
                },
                {
                    "key": "edit",
                    "name": "Edit Member",
                    "value": false
                },
                {
                    "key": "lock_member",
                    "name": "Lock Member",
                    "value": false
                },
                {
                    "key": "mark",
                    "name": "Mark Member",
                    "value": false
                },
                {
                    "key": "unlock_member",
                    "name": "Unlock Member",
                    "value": false
                }
            ]
        },
        {
            "key": "network",
            "name": "Network Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "some_actions": false,
            "action": [
                {
                    "key": "add_network",
                    "name": "Add Network",
                    "value": false
                },
                {
                    "key": "save_changes",
                    "name": "Save Changes",
                    "value": false
                }
            ]
        },
        {
            "key": "news",
            "name": "News Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "new_news",
                    "name": "Add News",
                    "value": false
                },
                {
                    "key": "edit",
                    "name": "Edit News Article",
                    "value": false
                },
                {
                    "key": "notifications",
                    "name": "Notifications",
                    "value": false
                },
                {
                    "key": "reply_message",
                    "name": "Reply Message",
                    "value": false
                },
                {
                    "key": "send_message",
                    "name": "Send Message",
                    "value": false
                },
                {
                    "key": "send_note",
                    "name": "Send Note",
                    "value": false
                },
                {
                    "key": "messages",
                    "name": "View Messages",
                    "value": false
                },
                {
                    "key": "view",
                    "name": "View News Article",
                    "value": false
                },
                {
                    "key": "view_note",
                    "name": "View Note",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "add",
                    "name": "Add News",
                    "value": false
                },
                {
                    "key": "add_section",
                    "name": "Add Section",
                    "value": false
                },
                {
                    "key": "delete_all",
                    "name": "Delete All",
                    "value": false
                },
                {
                    "key": "delete",
                    "name": "Delete News",
                    "value": false
                },
                {
                    "key": "delete_note",
                    "name": "Delete Note",
                    "value": false
                },
                {
                    "key": "del_section",
                    "name": "Delete Section",
                    "value": false
                },
                {
                    "key": "edit",
                    "name": "Edit News",
                    "value": false
                },
                {
                    "key": "mark_all_read",
                    "name": "Mark All Read",
                    "value": false
                },
                {
                    "key": "mark_all_unread",
                    "name": "Mark All Unread",
                    "value": false
                },
                {
                    "key": "unviewed",
                    "name": "Mark Unviewed",
                    "value": false
                },
                {
                    "key": "viewed",
                    "name": "Mark Viewed",
                    "value": false
                },
                {
                    "key": "reply_message",
                    "name": "Reply Message",
                    "value": false
                },
                {
                    "key": "undelete_all",
                    "name": "Restore All",
                    "value": false
                },
                {
                    "key": "send_message",
                    "name": "Send Message",
                    "value": false
                },
                {
                    "key": "send_note",
                    "name": "Send Note",
                    "value": false
                },
                {
                    "key": "undelete_note",
                    "name": "Undelete Note",
                    "value": false
                }
            ]
        },
        {
            "key": "payments",
            "name": "Payments Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "edit_dump",
                    "name": "Edit Dump Format",
                    "value": false
                },
                {
                    "key": "edit_payvia_field_mc",
                    "name": "Edit Multiple Choice",
                    "value": false
                },
                {
                    "key": "edit_open_payments",
                    "name": "Edit Open Payments",
                    "value": false
                },
                {
                    "key": "edit_payout_period",
                    "name": "Edit Payout Period",
                    "value": false
                },
                {
                    "key": "edit_payvia",
                    "name": "Edit Payvia",
                    "value": false
                },
                {
                    "key": "edit_payvia_field",
                    "name": "Edit Payvia Field",
                    "value": false
                },
                {
                    "key": "edit_payvia_field_mc_details",
                    "name": "Edit Payvia Multiple Choice Details",
                    "value": false
                },
                {
                    "key": "edit_payvia_rule",
                    "name": "Edit Payvia Rule",
                    "value": false
                },
                {
                    "key": "edit_payvia_setup",
                    "name": "Edit Payvia Setup",
                    "value": false
                },
                {
                    "key": "dumps",
                    "name": "Get Dump Formats",
                    "value": false
                },
                {
                    "key": "payout_periods",
                    "name": "Payout Periods",
                    "value": false
                },
                {
                    "key": "payout_periods_set_affiliates",
                    "name": "Set Affiliate Payout Periods",
                    "value": false
                },
                {
                    "key": "payvia_rules",
                    "name": "Set Payvia Rules",
                    "value": false
                },
                {
                    "key": "auto",
                    "name": "View Auto Payments",
                    "value": false
                },
                {
                    "key": "view_dump",
                    "name": "View Dump Format",
                    "value": false
                },
                {
                    "key": "view_payment_dump",
                    "name": "View Payment Dump",
                    "value": false
                },
                {
                    "key": "payvia",
                    "name": "View Payvia",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "add_dump",
                    "name": "Add Dump Format",
                    "value": false
                },
                {
                    "key": "add_payvia_field_mc",
                    "name": "Add Multiple Choice",
                    "value": false
                },
                {
                    "key": "add_payout_period",
                    "name": "Add Payout Period",
                    "value": false
                },
                {
                    "key": "add_payvia",
                    "name": "Add Payvia",
                    "value": false
                },
                {
                    "key": "add_payvia_field",
                    "name": "Add Payvia Field",
                    "value": false
                },
                {
                    "key": "add_payvia_rule",
                    "name": "Add Payvia Rule",
                    "value": false
                },
                {
                    "key": "bulk_changes",
                    "name": "Bulk Changes",
                    "value": false
                },
                {
                    "key": "copy_dump",
                    "name": "Copy Dump Format",
                    "value": false
                },
                {
                    "key": "delete_payout_period",
                    "name": "Delete Payout Period",
                    "value": false
                },
                {
                    "key": "payvia_field_mc_disable",
                    "name": "Disable Option",
                    "value": false
                },
                {
                    "key": "disable_payvia",
                    "name": "Disable Payvia",
                    "value": false
                },
                {
                    "key": "payvia_field_disable",
                    "name": "Disable Payvia Field",
                    "value": false
                },
                {
                    "key": "disable_payvia_rule",
                    "name": "Disable Payvia Rule",
                    "value": false
                },
                {
                    "key": "edit_dump",
                    "name": "Edit Dump Format",
                    "value": false
                },
                {
                    "key": "edit_payvia_field_mc",
                    "name": "Edit Option",
                    "value": false
                },
                {
                    "key": "edit_payment",
                    "name": "Edit Payments",
                    "value": false
                },
                {
                    "key": "edit_payout_period",
                    "name": "Edit Payout Period",
                    "value": false
                },
                {
                    "key": "edit_payvia",
                    "name": "Edit Payvia",
                    "value": false
                },
                {
                    "key": "edit_payvia_field",
                    "name": "Edit Payvia Field",
                    "value": false
                },
                {
                    "key": "edit_payvia_rule",
                    "name": "Edit Payvia Rule",
                    "value": false
                },
                {
                    "key": "payvia_field_mc_enable",
                    "name": "Enable Option",
                    "value": false
                },
                {
                    "key": "enable_payvia",
                    "name": "Enable Payvia",
                    "value": false
                },
                {
                    "key": "payvia_field_enable",
                    "name": "Enable Payvia Field",
                    "value": false
                },
                {
                    "key": "mark_as_paid",
                    "name": "Mark as Paid",
                    "value": false
                },
                {
                    "key": "payvia_field_mc_move_down",
                    "name": "Move Down Option",
                    "value": false
                },
                {
                    "key": "payvia_field_move_down",
                    "name": "Move Down Payvia",
                    "value": false
                },
                {
                    "key": "payvia_field_mc_move_up",
                    "name": "Move Up Option",
                    "value": false
                },
                {
                    "key": "payvia_field_move_up",
                    "name": "Move Up Payvia",
                    "value": false
                },
                {
                    "key": "payout_period_default",
                    "name": "Payout Period Default",
                    "value": false
                },
                {
                    "key": "payout_periods_set_affiliates",
                    "name": "Payout Periods Set Affiliates",
                    "value": false
                },
                {
                    "key": "restore_payout_period",
                    "name": "Restore Payout Period",
                    "value": false
                },
                {
                    "key": "store_open_payments",
                    "name": "Store Open Payments",
                    "value": false
                },
                {
                    "key": "store_open_payment",
                    "name": "Store an Open Payment",
                    "value": false
                },
                {
                    "key": "unstore_stored_payment",
                    "name": "Unstore Payment",
                    "value": false
                },
                {
                    "key": "unstore_payments",
                    "name": "Unstore Payments",
                    "value": false
                }
            ]
        },
        {
            "key": "programs",
            "name": "Programs Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "add",
                    "name": "Add Program",
                    "value": false
                },
                {
                    "key": "edit",
                    "name": "Edit Program",
                    "value": false
                },
                {
                    "key": "set_affiliates",
                    "name": "Enable Affiliates",
                    "value": false
                },
                {
                    "key": "list_disabled",
                    "name": "List Disabled",
                    "value": false
                },
                {
                    "key": "list_enabled",
                    "name": "List Enabled",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "add_tour_all",
                    "name": "Add All Tours",
                    "value": false
                },
                {
                    "key": "add",
                    "name": "Add Program",
                    "value": false
                },
                {
                    "key": "add_tour",
                    "name": "Add Tour",
                    "value": false
                },
                {
                    "key": "change_disabled",
                    "name": "Change Disabled",
                    "value": false
                },
                {
                    "key": "change_enabled",
                    "name": "Change Enabled",
                    "value": false
                },
                {
                    "key": "delete",
                    "name": "Delete Program",
                    "value": false
                },
                {
                    "key": "disable",
                    "name": "Disable Program",
                    "value": false
                },
                {
                    "key": "edit_payout",
                    "name": "Edit Payout",
                    "value": false
                },
                {
                    "key": "edit",
                    "name": "Edit Program",
                    "value": false
                },
                {
                    "key": "enable",
                    "name": "Enable Program",
                    "value": false
                },
                {
                    "key": "remove_tour_all",
                    "name": "Remove All Tours",
                    "value": false
                },
                {
                    "key": "remove_tour",
                    "name": "Remove Tour",
                    "value": false
                }
            ]
        },
        {
            "key": "promotionals",
            "name": "Promotionals Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "edit_promotional",
                    "name": "Edit Promotional",
                    "value": false
                },
                {
                    "key": "promotional_link",
                    "name": "Promotional Link",
                    "value": false
                },
                {
                    "key": "promotional_rules",
                    "name": "Promotonal Rules",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "add_promotional",
                    "name": "Add Promotional",
                    "value": false
                },
                {
                    "key": "add_rule",
                    "name": "Add Rule",
                    "value": false
                },
                {
                    "key": "delete_promotional",
                    "name": "Delete Promotional",
                    "value": false
                },
                {
                    "key": "disable_rule",
                    "name": "Disable Rule",
                    "value": false
                },
                {
                    "key": "edit_promotional",
                    "name": "Edit Promotional",
                    "value": false
                },
                {
                    "key": "edit_rule",
                    "name": "Edit Rule",
                    "value": false
                },
                {
                    "key": "restore_promotional",
                    "name": "Restore Promotional",
                    "value": false
                }
            ]
        },
        {
            "key": "reporting",
            "name": "Reporting Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "acct_rep",
                    "name": "Account Rep Report",
                    "value": false
                },
                {
                    "key": "actual_affiliate_payments",
                    "name": "Actual Affiliate Payments Report",
                    "value": false
                },
                {
                    "key": "misc",
                    "name": "Additional Payouts",
                    "value": false
                },
                {
                    "key": "affiliate_ratios",
                    "name": "Affiliate Ratios Report",
                    "value": false
                },
                {
                    "key": "wm_join",
                    "name": "Affiliate Referral Signup Payouts",
                    "value": false
                },
                {
                    "key": "referral",
                    "name": "Affiliate Referral Tier Payouts",
                    "value": false
                },
                {
                    "key": "cascade",
                    "name": "Cascade Report",
                    "value": false
                },
                {
                    "key": "detail_trial",
                    "name": "Detailed Trial Report",
                    "value": false
                },
                {
                    "key": "fraud",
                    "name": "Fraud Report Report",
                    "value": false
                },
                {
                    "key": "graphical_affiliate_comparison",
                    "name": "Graphical Affiliate Comparison Report",
                    "value": false
                },
                {
                    "key": "payments_withheld",
                    "name": "Payments Widthheld Report",
                    "value": false
                },
                {
                    "key": "pending_transaction",
                    "name": "Pending Transactions Report",
                    "value": false
                },
                {
                    "key": "profit_loss",
                    "name": "Profit & Loss Report",
                    "value": false
                },
                {
                    "key": "related_transaction",
                    "name": "Related Transactions Report",
                    "value": false
                },
                {
                    "key": "retention",
                    "name": "Retention Report",
                    "value": false
                },
                {
                    "key": "single_day_comparison",
                    "name": "Single Day Comparison Report",
                    "value": false
                },
                {
                    "key": "subscription",
                    "name": "Subscription Report",
                    "value": false
                },
                {
                    "key": "surfer",
                    "name": "Surfer Report",
                    "value": false
                },
                {
                    "key": "transaction",
                    "name": "Transaction Report",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "edit_focus",
                    "name": "Save and Customize Focuses",
                    "value": false
                },
                {
                    "key": "edit_report",
                    "name": "Save and Customize Reports",
                    "value": false
                }
            ]
        },
        {
            "key": "rewards",
            "name": "Rewards Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "points",
                    "name": "Set Points",
                    "value": false
                },
                {
                    "key": "shipped",
                    "name": "Shipped Rewards",
                    "value": false
                },
                {
                    "key": "unshipped",
                    "name": "Unshipped",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "add_cat",
                    "name": "Add Category",
                    "value": false
                },
                {
                    "key": "add_point_change",
                    "name": "Add Point Change",
                    "value": false
                },
                {
                    "key": "add",
                    "name": "Add Reward",
                    "value": false
                },
                {
                    "key": "delete_cat",
                    "name": "Delete Category",
                    "value": false
                },
                {
                    "key": "delete",
                    "name": "Delete Reward",
                    "value": false
                },
                {
                    "key": "delete_change",
                    "name": "Delete Reward Change",
                    "value": false
                },
                {
                    "key": "edit_points",
                    "name": "Edit Points",
                    "value": false
                },
                {
                    "key": "edit",
                    "name": "Edit Reward",
                    "value": false
                },
                {
                    "key": "move",
                    "name": "Move Reward",
                    "value": false
                },
                {
                    "key": "refund",
                    "name": "Refund Points",
                    "value": false
                },
                {
                    "key": "ship",
                    "name": "Shipped",
                    "value": false
                },
                {
                    "key": "undelete_cat",
                    "name": "Undelete Category",
                    "value": false
                },
                {
                    "key": "undelete",
                    "name": "Undelete Reward",
                    "value": false
                },
                {
                    "key": "unship",
                    "name": "Unshipped",
                    "value": false
                }
            ]
        },
        {
            "key": "sites_templates",
            "name": "Site Templates Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "edit",
                    "name": "Edit Template",
                    "value": false
                },
                {
                    "key": "preview",
                    "name": "Preview Template",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "copy",
                    "name": "Copy",
                    "value": false
                },
                {
                    "key": "customize_edit",
                    "name": "Customize Edit",
                    "value": false
                },
                {
                    "key": "revert",
                    "name": "Revert",
                    "value": false
                },
                {
                    "key": "save",
                    "name": "Save",
                    "value": false
                }
            ]
        },
        {
            "key": "sites",
            "name": "Sites Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "add",
                    "name": "Add Site",
                    "value": false
                },
                {
                    "key": "add_group",
                    "name": "Add Site Group",
                    "value": false
                },
                {
                    "key": "coupon_revisions",
                    "name": "Coupon Revisions",
                    "value": false
                },
                {
                    "key": "edit_coupon",
                    "name": "Edit Coupon",
                    "value": false
                },
                {
                    "key": "edit",
                    "name": "Edit Site",
                    "value": false
                },
                {
                    "key": "edit_group",
                    "name": "Edit Site Group",
                    "value": false
                },
                {
                    "key": "edit_tour",
                    "name": "Edit Tour",
                    "value": false
                },
                {
                    "key": "options",
                    "name": "Options",
                    "value": false
                },
                {
                    "key": "partners",
                    "name": "Partners",
                    "value": false
                },
                {
                    "key": "programs",
                    "name": "Programs",
                    "value": false
                },
                {
                    "key": "redirects",
                    "name": "Redirects",
                    "value": false
                },
                {
                    "key": "special_options",
                    "name": "Special Options",
                    "value": false
                },
                {
                    "key": "css_colors",
                    "name": "View CSS Color Picker",
                    "value": false
                },
                {
                    "key": "coupons",
                    "name": "View Coupons",
                    "value": false
                },
                {
                    "key": "groups",
                    "name": "View Site Groups",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "add_color",
                    "name": "Add CSS Color",
                    "value": false
                },
                {
                    "key": "add_coupon",
                    "name": "Add Coupon",
                    "value": false
                },
                {
                    "key": "add_group",
                    "name": "Add Group",
                    "value": false
                },
                {
                    "key": "add_option",
                    "name": "Add Join Option",
                    "value": false
                },
                {
                    "key": "add_option_rule",
                    "name": "Add Option Rule",
                    "value": false
                },
                {
                    "key": "add_redirect",
                    "name": "Add Redirect",
                    "value": false
                },
                {
                    "key": "add_redirect_rule",
                    "name": "Add Redirect Rule",
                    "value": false
                },
                {
                    "key": "add",
                    "name": "Add Site",
                    "value": false
                },
                {
                    "key": "add_partner",
                    "name": "Add Site Partner",
                    "value": false
                },
                {
                    "key": "add_tour",
                    "name": "Add Tour",
                    "value": false
                },
                {
                    "key": "delete_group",
                    "name": "Delete Group",
                    "value": false
                },
                {
                    "key": "delete_option",
                    "name": "Delete Join Option",
                    "value": false
                },
                {
                    "key": "delete_redirect",
                    "name": "Delete Redirect",
                    "value": false
                },
                {
                    "key": "delete",
                    "name": "Delete Site",
                    "value": false
                },
                {
                    "key": "delete_partner",
                    "name": "Delete Site Partner",
                    "value": false
                },
                {
                    "key": "delete_tour",
                    "name": "Delete Tour",
                    "value": false
                },
                {
                    "key": "disable_option_rule",
                    "name": "Disable Option Rule",
                    "value": false
                },
                {
                    "key": "disable_redirect_rule",
                    "name": "Disable Redirect Rule",
                    "value": false
                },
                {
                    "key": "edit_coupon",
                    "name": "Edit Coupon",
                    "value": false
                },
                {
                    "key": "edit_programs",
                    "name": "Edit Enabled Programs",
                    "value": false
                },
                {
                    "key": "edit_group",
                    "name": "Edit Group",
                    "value": false
                },
                {
                    "key": "edit_option",
                    "name": "Edit Join Option",
                    "value": false
                },
                {
                    "key": "edit_option_rule",
                    "name": "Edit Option Rule",
                    "value": false
                },
                {
                    "key": "edit_redirect",
                    "name": "Edit Redirect",
                    "value": false
                },
                {
                    "key": "edit_redirect_rule",
                    "name": "Edit Redirect Rule",
                    "value": false
                },
                {
                    "key": "edit",
                    "name": "Edit Site",
                    "value": false
                },
                {
                    "key": "edit_partner",
                    "name": "Edit Site Partner",
                    "value": false
                },
                {
                    "key": "edit_tour",
                    "name": "Edit Tour",
                    "value": false
                },
                {
                    "key": "edit_tour_options",
                    "name": "Edit Tour Options",
                    "value": false
                },
                {
                    "key": "move",
                    "name": "Move Join Option",
                    "value": false
                },
                {
                    "key": "undelete_group",
                    "name": "Restore Group",
                    "value": false
                },
                {
                    "key": "revert_field",
                    "name": "Revert CSS Color",
                    "value": false
                },
                {
                    "key": "revert_tour_option",
                    "name": "Revert Tour Option",
                    "value": false
                },
                {
                    "key": "set_colors",
                    "name": "Set CSS Colors",
                    "value": false
                },
                {
                    "key": "undelete_option",
                    "name": "Undelete Join Option",
                    "value": false
                },
                {
                    "key": "undelete_redirect",
                    "name": "Undelete Redirect",
                    "value": false
                },
                {
                    "key": "undelete",
                    "name": "Undelete Site",
                    "value": false
                },
                {
                    "key": "undelete_partner",
                    "name": "Undelete Site Partner",
                    "value": false
                },
                {
                    "key": "undelete_tour",
                    "name": "Undelete Tour",
                    "value": false
                }
            ]
        },
        {
            "key": "skins_templates",
            "name": "Skins & Templates Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "css_colors",
                    "name": "CSS Colors",
                    "value": false
                },
                {
                    "key": "edit",
                    "name": "Edit Specific Template",
                    "value": false
                },
                {
                    "key": "templates",
                    "name": "Edit Templates",
                    "value": false
                },
                {
                    "key": "export",
                    "name": "Export Skin",
                    "value": false
                },
                {
                    "key": "import",
                    "name": "Import Skin",
                    "value": false
                },
                {
                    "key": "preview_recovery",
                    "name": "Preview Recovered Template",
                    "value": false
                },
                {
                    "key": "preview",
                    "name": "Preview Template",
                    "value": false
                },
                {
                    "key": "read",
                    "name": "Read Template",
                    "value": false
                },
                {
                    "key": "special_templates",
                    "name": "Special Templates",
                    "value": false
                },
                {
                    "key": "themes",
                    "name": "Themes",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "add_color",
                    "name": "Add CSS Color",
                    "value": false
                },
                {
                    "key": "add_skin",
                    "name": "Add Skin",
                    "value": false
                },
                {
                    "key": "add",
                    "name": "Add Template",
                    "value": false
                },
                {
                    "key": "copy",
                    "name": "Copy Template",
                    "value": false
                },
                {
                    "key": "create_palette",
                    "name": "Create Palette",
                    "value": false
                },
                {
                    "key": "customize",
                    "name": "Customize Template",
                    "value": false
                },
                {
                    "key": "del_skin",
                    "name": "Delete Skin",
                    "value": false
                },
                {
                    "key": "edit_skin",
                    "name": "Edit Skin",
                    "value": false
                },
                {
                    "key": "export_run",
                    "name": "Export Skin",
                    "value": false
                },
                {
                    "key": "flush",
                    "name": "Flush Template Cache",
                    "value": false
                },
                {
                    "key": "import_add",
                    "name": "Import Skin",
                    "value": false
                },
                {
                    "key": "recover",
                    "name": "Recover Template",
                    "value": false
                },
                {
                    "key": "revert",
                    "name": "Revert Template",
                    "value": false
                },
                {
                    "key": "save_defaults",
                    "name": "Save Default Skin",
                    "value": false
                },
                {
                    "key": "save",
                    "name": "Save Template",
                    "value": false
                },
                {
                    "key": "set_colors",
                    "name": "Set CSS Color",
                    "value": false
                },
                {
                    "key": "set_palette",
                    "name": "Set Palette",
                    "value": false
                }
            ]
        },
        {
            "key": "support",
            "name": "Support Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "admin_areas",
                    "name": "Admin Areas",
                    "value": false
                },
                {
                    "key": "change_log",
                    "name": "Change Log",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "delete_link",
                    "name": "Delete Link",
                    "value": false
                },
                {
                    "key": "edit_link",
                    "name": "Edit Link",
                    "value": false
                },
                {
                    "key": "new_link",
                    "name": "New Link",
                    "value": false
                }
            ]
        },
        {
            "key": "third_party",
            "name": "Third Party Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "biller_charges",
                    "name": "Third Party Fees",
                    "value": false
                },
                {
                    "key": "poll_status",
                    "name": "Third Party Poll Status",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "add_biller",
                    "name": "Add Third Party",
                    "value": false
                },
                {
                    "key": "delete_biller",
                    "name": "Delete Third Party",
                    "value": false
                },
                {
                    "key": "delete_biller_charge",
                    "name": "Delete Third Party Fees",
                    "value": false
                },
                {
                    "key": "edit_biller",
                    "name": "Edit Third Party",
                    "value": false
                },
                {
                    "key": "set_biller_charge",
                    "name": "Set Third Party Fees",
                    "value": false
                },
                {
                    "key": "restore_biller",
                    "name": "Undelete Third Party",
                    "value": false
                }
            ]
        },
        {
            "key": "upsells",
            "name": "Upsells Admin",
            "display": false,
            "all_views": false,
            "all_actions": false,
            "editable": false,
            "some_views": false,
            "view": [
                {
                    "key": "incoming_xsells",
                    "name": "Incoming Cross Sails",
                    "value": false
                },
                {
                    "key": "incoming_upsells",
                    "name": "Incoming Upsell",
                    "value": false
                },
                {
                    "key": "outgoing_xsells",
                    "name": "Outgoing Cross Sails",
                    "value": false
                },
                {
                    "key": "outgoing_upsells",
                    "name": "Outgoing Upsell",
                    "value": false
                }
            ],
            "some_actions": false,
            "action": [
                {
                    "key": "add_rule",
                    "name": "Add Rule",
                    "value": false
                },
                {
                    "key": "add",
                    "name": "Add Upsell",
                    "value": false
                },
                {
                    "key": "delete",
                    "name": "Delete Upsell",
                    "value": false
                },
                {
                    "key": "disable_rule",
                    "name": "Disable Rule",
                    "value": false
                },
                {
                    "key": "edit_rule",
                    "name": "Edit Rule",
                    "value": false
                },
                {
                    "key": "edit",
                    "name": "Edit Upsell",
                    "value": false
                },
                {
                    "key": "move",
                    "name": "Move",
                    "value": false
                },
                {
                    "key": "undelete",
                    "name": "Undelete Upsell",
                    "value": false
                }
            ]
        }
    ],
    "custom": false
}



Example Code

PHP

<?php

$headers = array( //set your username and API key here
	'api-key: 44b5498dbcb481a0d00b404c0169af62',
	'api-username: tmm1phrvezsbu'
);
$url = 'http://yourdomain.com'; //set your NATS URL here

$data = Array(
	'loginid' => '3',
);

$request = Array(
	'method' => 'GET',
	'path' => 'v1/affiliate/permissions',
	'data' => $data
);

/*code below is the same for (almost) every API call */

$curl = curl_init();

$url = $url.'/api/'.$request['path'];

$query = http_build_query($request['data']);

if($request['method'] == 'GET'){
	//add query string parameters to the end of the url
	$url = $url.'?'.$query;
}else{
	//send parameters as POST fields
	curl_setopt($curl, CURLOPT_POST, 1);
	curl_setopt($curl, CURLOPT_POSTFIELDS, $query);
	
	if($request['method'] != 'POST'){
		$headers[] ='X-HTTP-Method: '.$request['method']; //send custom request method
	}
}
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);


$resp = curl_exec($curl);
//dumps an associative array representation of the json
var_dump(json_decode($resp, true));
// Close request to clear up some resources
curl_close($curl);
?>