Update Affiliate Status
PUT/affiliate-manager/:locationId/affiliates/:affiliateId/status
Activate or deactivate an affiliate. Sending the same value again leaves the affiliate unchanged.
Request
API Version
v3Location Id
Affiliate Id
- application/json
- Body
- Example (auto)
Bodyrequired
Whether the affiliate is active. Sending the same value twice leaves the affiliate unchanged.
{
"active": false
}
Successful response
- application/json
- Schema
- Example (auto)
Schema
Affiliate id
Affiliate first name
Affiliate last name
Affiliate phone number
Whether the affiliate is deleted
Location id
Whether the affiliate is active
Affiliate address
Affiliate avatar URL
Created at timestamp
Who created the affiliate
Facebook URL
Instagram URL
LinkedIn URL
Twitter URL
YouTube URL
Website URL
Contact id associated with the affiliate
Campaign ids
VAT ID
Updated at timestamp
W-8 form URL
W-9 form URL
Who last updated the affiliate
Affiliate email
Affiliate revenue
Company name
Company phone number
Country the affiliate was created with
Commission tier the affiliate sits in
{
"_id": "63d147176c5bbc30e9e091a4",
"firstName": "John",
"lastName": "Doe",
"phone": "+1 888 888-8888",
"deleted": false,
"locationId": "ve9EPM428h8vShlRW1KT",
"active": true,
"address": "123 Main St",
"avatar": "https://example.com/avatar.png",
"createdAt": "2024-06-16T00:00:00.000Z",
"createdBy": {
"source": "oauth",
"channel": "oauth",
"sourceId": "source_123",
"sourceName": "Marketplace App",
"timestamp": "2024-06-16T00:00:00.000Z"
},
"facebookUrl": "https://facebook.com/johndoe",
"instagramUrl": "https://instagram.com/johndoe",
"linkedInUrl": "https://linkedin.com/in/johndoe",
"twitterUrl": "https://twitter.com/johndoe",
"youtubeUrl": "https://youtube.com/channel",
"websiteUrl": "https://example.com",
"contactId": "ve9EPM428h8vShlRW1KT",
"campaignIds": [
"650173614761b33c46d33b19"
],
"vatId": "VAT123",
"updatedAt": "2024-06-16T00:00:00.000Z",
"w8Form": "https://example.com/tax-forms/w8.pdf",
"w9Form": "https://example.com/tax-forms/w9.pdf",
"lastUpdatedBy": {
"source": "oauth",
"channel": "oauth",
"sourceId": "source_123",
"sourceName": "Marketplace App",
"timestamp": "2024-06-16T00:00:00.000Z"
},
"revenue": 1250.5,
"companyName": "Doe Media LLC",
"companyPhoneNumber": "+1 888 888-8888",
"country": "US",
"commissionTier": 1
}