Skip to main content
AffiliatesVersion: v3

Update Affiliate Status

PUT/affiliate-manager/{locationId}/affiliates/{affiliateId}/status

Activate or deactivate an affiliate. Sending the same value again leaves the affiliate unchanged.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:affiliate-manager.write
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3
Example:v3

Path Parameters

locationIdstringrequired

Location Id

Example:ve9EPM428h8vShlRW1KT
affiliateIdstringrequired

Affiliate Id

Example:6385d230f6d19db03eef6fb2

Body

activebooleanrequired

Whether the affiliate is active. Sending the same value twice leaves the affiliate unchanged.

Example:false

Response

Successful response

_idstringrequired

Affiliate id

Example:63d147176c5bbc30e9e091a4
firstNamestring

Affiliate first name

Example:John
lastNamestring

Affiliate last name

Example:Doe
phonestring

Affiliate phone number

Example:+1 888 888-8888
deletedboolean

Whether the affiliate is deleted

Example:false
locationIdstringrequired

Location id

Example:ve9EPM428h8vShlRW1KT
activeboolean

Whether the affiliate is active

Example:true
addressstring

Affiliate address

Example:123 Main St
avatarstring

Affiliate avatar URL

Example:https://example.com/avatar.png
createdAtstring

Created at timestamp

Example:2024-06-16T00:00:00.000Z
createdByobject

Who created the affiliate

facebookUrlstring

Facebook URL

Example:https://facebook.com/johndoe
instagramUrlstring

Instagram URL

Example:https://instagram.com/johndoe
linkedInUrlstring

LinkedIn URL

Example:https://linkedin.com/in/johndoe
twitterUrlstring

Twitter URL

Example:https://twitter.com/johndoe
youtubeUrlstring

YouTube URL

Example:https://youtube.com/channel
websiteUrlstring

Website URL

Example:https://example.com
contactIdstring

Contact id associated with the affiliate

Example:ve9EPM428h8vShlRW1KT
campaignIdsstring[]

Campaign ids

Example:["650173614761b33c46d33b19"]
vatIdstring

VAT ID

Example:VAT123
updatedAtstring

Updated at timestamp

Example:2024-06-16T00:00:00.000Z
w8Formstring

W-8 form URL

Example:https://example.com/tax-forms/w8.pdf
w9Formstring

W-9 form URL

Example:https://example.com/tax-forms/w9.pdf
lastUpdatedByobject

Who last updated the affiliate

emailstringrequired

Affiliate email

revenuenumber

Affiliate revenue

Example:1250.5
companyNamestring

Company name

Example:Doe Media LLC
companyPhoneNumberstring

Company phone number

Example:+1 888 888-8888
countrystring

Country the affiliate was created with

Example:US
commissionTiernumber

Commission tier the affiliate sits in

Example:1