WSDL Page:  http://<your_domain_here>/api/1/addedit.asmx?op=Affiliate

 

Parameter Summary:

api_key / STRING = Admin API Key {See get.asmx > GetAPIKey}

affiliate_id / INT = Affiliate ID  ["0" Create new affiliate /  "ID" Update affiliate]

affiliate_name / STRING = Affiliate Name

account_status_id / INT (unsignedByte) = Affiliate Account Status ID {See get.asmx > AccountStatuses}

affiliate_tier_id / INT (unsignedByte) = Affiliate Tier ID {See get.asmx > AffiliateTiers}

hide_offers / BOOL = Hide Offers with no Campaigns in the Affiliate Portal? ["TRUE", "FALSE"]

website / STRING = Affiliate Website

tax_class / STRING = Tax Class ["Corporation", "Individual/Sole Proprietor", "Partners/LLC/LLP", "Other"]

ssn_tax_id / STRING = SSN or Tax ID

vat_tax_required / BOOL = VAT Tax Required? ["TRUE", "FALSE"]

swift_iban / STRING = SWIFT/IBAN ID

payment_to / INT (unsignedByte) = Payment Entity ["0" = Company Name, "1" = Main Contact]

payment_fee / DECIMAL = Payment Fee

payment_min_threshold / DECIMAL = Minimum Payment Threshold

currency_id / INT (unsignedByte) = Payout Currency ID {See get.asmx > Currencies}

payment_setting_id / INT (unsignedByte) = Affiliate Payout Settings {See get.asmx > PaymentSettings}

billing_cycle_id / INT (unsignedByte) = Billing Cycle ID {See get.asmx > BillingCycles}

payment_type_id / INT (unsignedByte) = Payment Type ID {See get.asmx > PaymentTypes}

payment_type_info / STRING = Payment Details

address_street / STRING = Street Address 1

address_street2 / STRING = Street Address 2

address_city / STRING = City

address_state / STRING = State

address_zip_code / STRING = Zip Code

address_country / STRING = Country

media_type_ids / STRING = Media Type IDs [can be comma-separated] {See get.asmx > GetMediaTypes}

price_format_ids / STRING = Price Format IDs [can be comma-separated] {See get.asmx > GetPriceFormats}

vertical_category_ids / STRING = Vertical Category IDs [can be comma-separated] {See get.asmx > GetVerticalCategories}

country_codes / STRING = Country Codes [can be comma-separated]

tags / STRING = Tags [can be comma-separated] {See get.asmx > AffiliateTags}

date_added / DATE = Date Added [MM/DD/YYYY]

online_signup / BOOL = Online Signup

signup_ip_address / STRING = Signup IP Address

referral_affiliate_id / INT = Referral Affiliate ID {See export.asmx > Affiliates}

referral_notes / STRING = Referral Notes

terms_and_conditions_agreed / BOOL = Agreed to the Terms and Conditions? ["TRUE", "FALSE"]

notes / STRING = Freeform Notes

 

Parameter Types:

api_key - ID

affiliate_name - ASSIGNABLE

account_status_id - ASSIGNABLE

affiliate_tier_id - ASSIGNABLE

hide_offers - ASSIGNABLE

website - ASSIGNABLE

tax_class - ASSIGNABLE

ssn_tax_id - ASSIGNABLE

vat_tax_required - ASSIGNABLE

swift_iban - ASSIGNABLE

payment_to - ASSIGNABLE

payment_fee - ASSIGNABLE

payment_min_threshold - ASSIGNABLE

currency_id - ASSIGNABLE

payment_setting_id - ASSIGNABLE

billing_cycle_id - ASSIGNABLE

payment_type_id - ASSIGNABLE

payment_type_info - ASSIGNABLE

address_street - ASSIGNABLE

address_street2 - ASSIGNABLE

address_city - ASSIGNABLE

address_state - ASSIGNABLE

address_zip_code - ASSIGNABLE

address_country - ASSIGNABLE

media_type_ids - ASSIGNABLE

price_format_ids - ASSIGNABLE

vertical_category_ids - ASSIGNABLE

country_codes - ASSIGNABLE

tags - ASSIGNABLE

date_added - ASSIGNABLE

online_signup - ASSIGNABLE

signup_ip_address - ASSIGNABLE

referral_affiliate_id - ASSIGNABLE

referral_notes - ASSIGNABLE

terms_and_conditions_agreed - ASSIGNABLE

notes - ASSIGNABLE

 

Sample GET Call:

http://demo.cakemarketing.com/api/1/addedit.asmx/Affiliate?api_key=dNJFmId9rI&affiliate_id=0&affiliate_name=Brads+Example&account_status_id=1&affiliate_tier_id=0&hide_offers=FALSE&website=http%3A%2F%2Fgoogle.com&tax_class=Individual%2FSole+Proprietor&ssn_tax_id=611404141&vat_tax_required=FALSE&swift_iban=123456&payment_to=0&payment_fee=30&payment_min_threshold=900&currency_id=1&payment_setting_id=1&billing_cycle_id=1&payment_type_id=1&payment_type_info=am+cool&address_street=3200+e+palm+drive&address_street2=&address_city=fullerton&address_state=ca&address_zip_code=92802&address_country=USA&media_type_ids=15&price_format_ids=1&vertical_category_ids=10&country_codes=US&tags=boom&date_added=10%2F1%2F2012&online_signup=TRUE&signup_ip_address=65.60.119.2&referral_affiliate_id=0&referral_notes=&terms_and_conditions_agreed=TRUE&notes=Notes Here&account_manager_id=1122

 

Sample XML Response:

<affiliate_addedit_response>
<success>true</success>
<message>Affiliate 1111121 Created</message>
<affiliate_id>1111121</affiliate_id>
</affiliate_addedit_response>