NATS4 API Set Affiliate Defaults

From TMM Wiki
Jump to navigationJump to 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
Adtools
GET /adtools/admin
GET /adtools/categories
GET /adtools/types
POST /adtools/importdump
Affiliate
GET /affiliate/campaigns
GET /affiliate/hitdata
GET /affiliate/payout
GET /affiliate/searchinfo
POST /affiliate/addaffiliate
POST /affiliate/invoice
PATCH /affiliate/setadminsettings
PATCH /affiliate/setcustoms
PATCH /affiliate/setdefaults
PATCH /affiliate/setinformation
PATCH /affiliate/setpayviainfo
PATCH /affiliate/setsettings
PATCH /affiliate/status
Member
GET /member/authstring
GET /member/details
GET /member/searchinfo
GET /suggestedcanceloffers
PATCH /member/setdetails
PATCH /member/setexpiration
POST /member/addnote
POST /member/recordlogin
PUT /member/expiremanual
PATCH /member/forget
Option
GET /option/options
GET /option/rule
PATCH /option/rule
PATCH/option/text
POST /option/rule
Payments
GET /payments/getpayments
GET /payviarule
PATCH /payments/setstatus
PATCH /payviarule
Report
GET /profitlossreport
Get /transactionpayouts
GET /report/transaction
Service
GET /service/decodenatscode
GET /service/ping
POST /service/sendemail

The Set Affiliate Defaults API function is a feature in NATS4 that allows you to change default settings for your affiliates outside of the NATS system.

If you wish to change your affiliates' default settings, you must make a SOAP call with the following parameters:

* loginid - The affiliate's login ID
* startpage - What page you want the affiliate to see when they log in
* mailok - Specify if you want affiliates to receive mailings
* live_update_defaults - Specify if you want to immediately update changes in affiliate defaults
* default_stats_view - The first page the affiliate will see on their Stats page
* default_stats_date_range - What range of dates affiliates will see in their stats by default
* default_stats_pie_chart_X_data - What statistic you want displayed in each affiliate pie chart (5 charts total)
* default_stats_pie_chart_X_break - What you want each pie chart to be broken down by (site, program, country, etc.)
* default_stats_mixed_chart_X_type - What type of chart you want your affiliate's mixed statistics to be displayed in
* default_stats_mixed_chart_X_data - What statistic you want displayed in each affiliate mixed chart (2 charts total)
* default_stats_multi_graph_data_X - What statistic you want displayed in each affiliate multi graph (3 graphs total)
* default_stats_large_map_data - What statistic you want displayed in an affiliate's large map data
* default_stats_comp_data - What statistic you want to be compared in an affiliate's comparison field
* default_stats_order - Set the order that statistics will be displayed in the affiliate stats page
* default_stats_table_column_X - Set and order what affiliate statistics columns display (raw, unique, join hits, etc)
* default_adtools_use_defaults - Uses default adtool settings for affiliates
* default_adtools_view - Set the first page the affiliate will be taken to in Affiliate Adtools
* default_adtools_cat_1_type - Set a type of banner for the affiliate to use by default (static, animated, etc)
* default_adtools_cat_2_type - Set a type of hosted gallery to use by default (i.e., free hosted gallery)
* default_adtools_cat_3_type - Set a type of downloadable adtool to use by default (page ads, mailers, etc)
* default_adtools_cat_5_type - Set a type of news feed for affiliates to use by default
* default_adtools_publish_setting - Set the default for when an adtool is published (on, before, or after a date)
* default_adtools_publish_date - The default date available when setting when to publish an adtool
* default_adtools_dump_seperater - The punctuation used to separate stat dumps (commas, semi-colons, etc.)
* default_adtools_dump_record_end - The punctuation used to end a stat dump (semicolon, \n, \t)
* default_adtools_dump_field_x - Set dump fields that correspond to your statistics
* default_account_view - What page the affiliate will see first when accessing their account page
* default_account_changes_count - How many recent account changes you want NATS to display
* default_account_changes_order - How you want these changes sorted (change date descending, status ascending, etc)
* default_account_campaign_count - How many affiliate campaigns you want to be visible at once
* default_account_campaign_order - How you want these campaigns to be sorted (shortname ascending, hidden descending, etc)
* default_adtools_use_limits - Automatically use the limits you have set when the page is loaded

This call will change defaults for ALL affiliates in your 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.

For more information on API functions in NATS4, as well as information on how to set up your SOAP call, please see our NATS4 API wiki article.