NATS4 REST API Set Affiliate Settings
From TMM Wiki
Revision as of 20:18, 15 March 2015 by Tmmtobias0185 (talk | contribs) (Created page with "{{NATS4 Manual | show_api_admin_section = true }} == '''PATCH /affiliate/setsettings''' == '''Description''' *The /affiliate/setsettings endpoint is a feature in NATS4 t...")
PATCH /affiliate/setsettings
Description
- The /affiliate/setsettings endpoint is a feature in NATS4 that allows you to change settings for your affiliates outside of the NATS system. The response contains one parameter named result. If the modification was successful then result will be 1. If it was not successful then the result will be 0.
Resource URL
- http://domain/api/v1/affiliate/setsettings
- Replace domain with the nats domain
- PATCH
Response Format
- JSON
- HTTP headers
Parameters
Paremeters must be sent with the request body. The examples below show the parameters sent as x-www-form-urlencoded
- loginid: is the affiliates loginid
- type: integer
- required
- notify_password: is the notify_password value
- type: integer
- optional
- nofify_payvia: is the notify_payvia value
- type: integer
- optional
- notify_payvia_info: is the notify_payvia_info value
- type: integer
- optional
- notify_defaults: is the notify_defaults value
- type: integer
- optional
- notify_details: is the notify_details value
- type: integer
- optional
- notify_settings: is the notify_settings value
- type: integer
- optional
- notify_member_change: is the notify_member_change value
- type: integer
- optional
- notify_member_voiced: is the notify_member_voided value
- type: integer
- optional
- notify_member_chargeback: is the nofity_member_chargeback value
- type: integer
- optional
- notify_member_credited: is the notify_member_credited value
- type: integer
- optional
- notify_member_insufficient: is the notify_member_insufficient value
- type: integer
- optional
- notify_member_cancelled: is the notify_member_cancelled value
- type: integer
- optional
- notify_member_rebilled: is the notify_member_rebilled value
- type: integer
- optional
- notify_member_joined: is the notify_member_joined balue
- type: integer
- optional
- verify_details: is the verify_details value
- type: integer
- optional
- verify_settings: is the verify_settings value
- type: integer
- optional
- verify_defaults: is the veryify_defaults value
- type: integer
- optional
- verify_payvia: is the verify_payvia value
- type: integer
- optional
- verify_payvia_info: is the verify_payvia_info value
- type: integer
- optional
- email_promotional: is the email_promotional value
- type: integer
- optional
- email_on_notify: is the email_on_notify value
- type: integer
- optional
- email_on_member_change: is the email_on_member_change value
- type: integer
- optional
- email_on_member_voided: is the email_on_member_voided value
- type: integer
- optional
- email_on_member_chargeback: is the email_on_member_chargeback value
- type: integer
- optional
- email_on_member_credited: is the email_on_member_credited value
- type: integer
- optional
- email_on_member_insufficient: is the email_on_member_insufficient val
- type: integer
- optional
- email_on_member_cancelled: is the email_on_member_cancelled value
- type: integer
- optional
- email_on_member_rebilled: is the email_on_member_rebilled value
- type: integer
- optional
- email_on_member_joined: is the email_on_member_joined value
- type: integer
- optional
- access_preset: is the access_preset value
- type: integer
- optional
- post_member_approval: is the post_member_approval value
- type: integer
- optional
- post_member_rebill: is the post_member_rebill value
- type: integer
- optional
- post_member_upgrade: is the post_member_upgrade value
- type: integer
- optional
- post_member_expire: is the post_member_expire value
- type: integer
- optional
- post_member_insufficient: is the post_member_insufficient value
- type: integer
- optional
- post_member_credit: is the post_member_credit value
- type: integer
- optional
- post_member_chargeback: is the post_member_chargeback value
- type: integer
- optional
- post_member_void: is the post_member_void value
- type: integer
- optional
- post_member_upgradedeny: is the post_member_ugpradedeny value
- type: integer
- optional
- post_member_change_details: is the post_member_changedetails value
- type: integer
- optional
Example Request
PATCH
http://domain/api/v1/affiliate/setsettings
- Response:
[ { "result": 1 } ]