SIGNUP Affiliate API
Updated on 2014-06-02
Current Version: Version 4
Deprecated Version: V1, V2, V3
Requests Allowed: GET&SOAP
Summary:
Returns Message: "Affiliate Added Successfully"
Resource/WSDL Page:
http:///api/4/signup.asmx?op=Affiliate
Parameters
api_key | Must be a valid API key (existing and NOT expired) Example Values: Fo35NRAqvFLXoZxqB4aViaiYM7iVMhh |
affiliate_name | Affiliate Name Example Values: Affiliate Name |
account_status_id | Affiliate Account Status ID. 1 - Active, 2 - Inactive, 3 - Pending. Pending will place the affiliate within the pending affiliate queue in the Affiliate main tab. Example Values: 1 |
affiliate_tier_id | Affiliate Tier ID. 0 to skip Example Values: 1 |
hide_offers | Hide Offers with no Campaigns in the Affiliate Portal? ["TRUE", "FALSE"] Example Values: True |
website | Affiliate Website Example Values: www.affiliatewebsite.com |
tax_class | Tax Class ["Corporation", "Individual/Sole Proprietor", "Partners/LLC/LLP", "Other"] Example Values: Corporation |
ssn_tax_id | SSN or Tax ID Example Values: 123456789 |
vat_tax_required | VAT Tax Required? ["TRUE", "FALSE"] Example Values: True |
swift_iban | SWIFT/IBAN ID. Not used if tipalti is enabled Example Values: 123456 |
payment_to | Payment Entity ["0" = Company Name, "1" = Main Contact]. Not used if tipalti is enabled Example Values: 0 |
payment_fee | Payment Fee. < 0 to skip Example Values: 20.05 |
payment_min_threshold | Minimum payment threshold. < 0 to use the global setting Example Values: 20.05 |
currency_id | Payout Currency ID {See get.asmx > Currencies}. 0 to skip, used only for currency enabled clients. Max value is 255, no negative values accepted. Example Values: 1 |
payment_setting_id | Affiliate Payout Settings {See get.asmx > PaymentSettings}. 0 to skip. Max value is 255, no negative values accepted. Example Values: 1 |
billing_cycle_id | Billing Cycle ID {See get.asmx > BillingCycles}. 0 to skip. Max value is 255, no negative values accepted. Example Values: 0 |
payment_type_id | Payment Type ID {See get.asmx > PaymentTypes}. If tipalti is enabled it uses tipalti else 0 to skip. Max value is 255, no negative values accepted. Example Values: 1 |
payment_type_info | Payment Details. Not used if tipalti is enabled Example Values: 45 |
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 |
contact_first_name | Only used if all contact fields are non-NULL and non-empty Example Values: Bob |
contact_middle_name | Only used if all contact fields are non-NULL and non-empty Example Values: William |
contact_last_name | Only used if all contact fields are non-NULL and non-empty Example Values: Smith |
contact_email_address | Only used if all contact fields are non-NULL and non-empty Example Values: [email protected] |
contact_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 |
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_service | Only used if all contact fields are non-NULL and non-empty Example Values: AIM |
contact_im_name | Only used if all contact fields are non-NULL and non-empty Example Values: bobwsmith |
contact_timezone | Only used if all contact fields are non-NULL and non-empty Example Values: EST |
contact_language_id | Max value is 255, no negative values accepted. Example Values: 1 |
media_type_ids | Media Type IDs [can be comma-separated] {See get.asmx > GetMediaTypes} Example Values: media type |
price_format_ids | Price Format IDs [can be comma-separated] {See get.asmx > GetPriceFormats} Example Values: price format |
vertical_category_ids | Vertical Category IDs [can be comma-separated] {See get.asmx > GetVerticalCategories} Example Values: vertical category |
country_codes | This should be a comma separated list of country codes Example Values: |
tag_ids | This should be a comma separated list of tag names, each tag name cannot exceed 50 characters Example Values: |
date_added | Date added [MM/DD/YYYY HH:MM:SS] Example Values: 04/28/2014 12:30:09 |
signup_ip_address | Required if online_signup is true Example Values: 12.34.567.89 |
referral_affiliate_id | 0 to skip on edit Example Values: 1234 |
referral_notes | Used on creation, NULL or empty skips on edit Example Values: Referral Notes |
terms_and_conditions_agreed | Agreed to the Terms and Conditions? ["TRUE", "FALSE"] Example Values: True |
notes | Freeform notes. Used on creation, NULL or empty skips on edit Example Values: Notes |
**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
Sample XML Response:
<affiliate_signup_response> |
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. |