1.1.1        Summary

Create or update affiliate basic information.
 

1.1.2        Request

       Request Method: POST
Query String Parameters:

Parameter Description Type Data Range
key Network API Key;
*Required
string  
      
POST Parameters:

Parameter Description Type Data Range
id *Required only for Updating Int Single Value
email Required for Creating
Optional for Updating
String  
status Required for Creating
Optional for Updating
String Pending, Active, Rejected, Blocked
first_name Required for Creating
Optional for Updating
String  
am_id Optional Int  
payout_tier_id Optional int  
invoice_frequency Optional String Weekly, Bi-weekly,
Monthly, Two  Months,
Quarterly, Manually
password *Required String  
last_name Optional String  
phone Optional String  
im_type Optional String  
im_account Optional String  
company Optional String  
title Optional String  
address1 Optional String  
address2 Optional String  
city Optional String  
country Optional String  
state Optional String  
zipcode Optional String  
 

1.1.3        Response

Header:
HTTP Status Object Description Error Code
201   Created Successfully 0
202   Updated Successfully 0
400 Parameter Invalid Parameters 62XX
409 Email Duplicated email to other network user 6207
 
Content Format: JSON
 

1.1.4        Example

Sample Request URL:
http://{your_network_domain}/api/v1/setAffiliateBaseInfo?key=603E3F0E3266E
(POST Data)
 
Response sample:
Same as “getAffiliateById” API.