SIGNUP Affiliate API Version 1
Updated on 2014-06-02
Current Version: Version V4
Deprecated Version: V1, V2, V3
Requests Allowed: GET&SOAP
Summary:
Returns Message: "Affiliate Added Successfully"
Resource/WSDL Page:
http://<your_domain_here>/api/1/signup.asmx?op=AffiliateParameters
api_key |
Must be a valid API key (existing and NOT expired) Example Values: Fo35NRAqvFLXoZxqB4aViaiYM7iVMhh |
company_name |
Company Name Example Values: Affiliate Name |
address_street |
Only used if all address fields are non-NULL and non-empty Example Values: 123 Pacific Coast Highway |
address_street2 |
Only used if all address fields are non-NULL and non-empty Example Values: Macarthur |
address_city |
Only used if all address fields are non-NULL and non-empty Example Values: Newport Beach |
address_state |
Only used if all address fields are non-NULL and non-empty Example Values: California |
address_zip_code |
Only used if all address fields are non-NULL and non-empty Example Values: 92660 |
address_country |
Only used if all address fields are non-NULL and non-empty Example Values: United States |
referral_affiliate_id |
0 to skip on edit Example Values: 1234 |
first_name |
Only used if all contact fields are non-NULL and non-empty Example Values: Bob |
last_name |
Only used if all contact fields are non-NULL and non-empty Example Values: Smith |
email_address |
Only used if all contact fields are non-NULL and non-empty Example Values: bobwsmith@email.com |
password |
**Please note: Due to recent security updates,
affiliates can only set their password via the CAKE reset password
functionality. CAKE recommends not including this field on your form and
passing a dummy value since the affiliate will need to set their own
password once approved. Example Values: abc123 |
tax_class |
Tax Class ["Corporation", "Individual/Sole Proprietor", "Partners/LLC/LLP", "Other"] Example Values: Corporation |
ssn_taxid |
SSN or Tax ID Example Values: 123456789 |
website |
Affiliate Website Example Values: www.affiliatewebsite.com |
notes |
Freeform notes. Used on creation, NULL or empty skips on edit Example Values: Notes |
contact_title |
Only used if all contact fields are non-NULL and non-empty Example Values: President |
contact_phone_work |
Only used if all contact fields are non-NULL and non-empty Example Values: 212-555-1212 |
contact_phone_cell |
Only used if all contact fields are non-NULL and non-empty Example Values: 212-555-1212 |
contact_phone_fax |
Only used if all contact fields are non-NULL and non-empty Example Values: 212-555-1212 |
contact_im_name |
Only used if all contact fields are non-NULL and non-empty Example Values: bobwsmith |
contact_im_service |
Only used if all contact fields are non-NULL and non-empty Example Values: 2 |
media_type |
Media Type IDs [can be comma-separated] {See get.asmx > GetMediaTypes} Example Values: media type |
price_format |
Price Format IDs [can be comma-separated] {See get.asmx > GetPriceFormats} Example Values: price format |
primary_vertical_category |
Vertical Category IDs [can be comma-separated] {See get.asmx > GetVerticalCategories} Example Values: vertical category |
secondary_vertical_category |
Vertical Category IDs [can be comma-separated] {See get.asmx > GetVerticalCategories} Example Values: vertical category |
payment_to |
Payment Entity ["0" = Company Name, "1" = Main Contact]. Not used if tipalti is enabled Example Values: 0 |
ip_address |
Required if online_signup is true Example Values: 12.34.567.89 |
|
**Note all optional parameters still need to be passed through in the actual call. These parameters do not need a value (therefore you can use a null value).
Example Request
GET |
https://demo.cakemarketing.com/api/1/signup.asmx/Affiliate?api_key=dNJFmId9rI&company_name=CPA+API&address_street=2244+West+Coast+Highway&address_street2=STE+250&address_city=Newport+Beach&address_state=CA&address_zip_code=92663&address_country=US&referred_by=CPA%20Nostromo&first_name=Andy&last_name=Worford&email_address=andy980@getCAKE.com&password=a069gsSDG9&tax_class=Other&ssn_taxid=565579584&website=http://getCAKE.com¬es=Here+is+where+I%27m+putting+my+notes&contact_title=Head+of+QA&contact_phone_work=9495482253+x204&contact_phone_cell=9493512600&contact_phone_fax=9495152010&contact_im_name=cake_andy&contact_im_service=1&media_type=15&price_format=1&primary_vertical_category=1&secondary_vertical_category=2&payment_to=0&ip_address=8.8.8.8 |
Sample XML Response:
<string>Affiliate Added Successfully</string> |
Example Error Messages:
Error Message |
Likely Cause |
Invalid API Key |
API key does not exist or is expired |
Missing Fields |
Returns the name of the fields that are missing input. |
Fields Exceed Max Input Length |
Returns the list of the fields that exceed the maximum characters allowed. |
Invalid Email Address |
Email address is invalid or already exists. |
Duplicate Affiliate Contact |
Affiliate already exists. |