Skip to main content
Version: v3

Update Affiliate

PUT 

/affiliate-manager/:locationId/affiliates/:affiliateId

Replace an affiliate for a location. Fields omitted from the body are cleared, so send the complete affiliate.

Request

Version stringrequired

API Version

Available optionsv3
locationId stringrequired

Location Id

affiliateId stringrequired

Affiliate Id

application/json

Bodyrequired

    affiliateFirstNamestring

    First Name

    affiliateLastNamestring

    Last Name

    affiliateEmailstringrequired

    Email

    phoneNumberstring

    Phone Number

    websiteUrlstring

    Website

    campaignIdstring

    Campaign to enrol the affiliate into

    companyNamestring

    Company the affiliate represents

    parentAffiliateIdstring

    Affiliate this one is a sub affiliate of

    tiernumber

    Commission tier the affiliate sits on within the campaign

    Possible values: >= 1

    companyPhoneNumberstring

    Company Phone Number

    vatIdstring

    VAT ID

    countrystring

    Country

    addressstring

    Address

    avatarstring

    Avatar URL

    facebookUrlstring

    Facebook URL

    twitterUrlstring

    Twitter URL

    youtubeUrlstring

    YouTube URL

    linkedInUrlstring

    LinkedIn URL

    instagramUrlstring

    Instagram URL

application/json

Successful response

Schema
    _idstringrequired

    Affiliate id

    firstNamestring

    Affiliate first name

    lastNamestring

    Affiliate last name

    phonestring

    Affiliate phone number

    deletedboolean

    Whether the affiliate is deleted

    locationIdstringrequired

    Location id

    activeboolean

    Whether the affiliate is active

    addressstring

    Affiliate address

    avatarstring

    Affiliate avatar URL

    createdAtstring

    Created at timestamp

    createdByobject

    Who created the affiliate

    facebookUrlstring

    Facebook URL

    instagramUrlstring

    Instagram URL

    linkedInUrlstring

    LinkedIn URL

    twitterUrlstring

    Twitter URL

    youtubeUrlstring

    YouTube URL

    websiteUrlstring

    Website URL

    contactIdstring

    Contact id associated with the affiliate

    campaignIdsstring[]

    Campaign ids

    vatIdstring

    VAT ID

    updatedAtstring

    Updated at timestamp

    w8Formstring

    W-8 form URL

    w9Formstring

    W-9 form URL

    lastUpdatedByobject

    Who last updated the affiliate

    emailstringrequired

    Affiliate email

    revenuenumber

    Affiliate revenue

    companyNamestring

    Company name

    companyPhoneNumberstring

    Company phone number

    countrystring

    Country the affiliate was created with

    commissionTiernumber

    Commission tier the affiliate sits in