Create Affiliate
POST/affiliate-manager/:locationId/affiliates
Create an affiliate for a location. An affiliate already registered with the same email in this location is updated instead of duplicated.
Request
API Version
v3Location Id
- application/json
- Body
- Example (auto)
Bodyrequired
First Name
Last Name
Phone Number
Website
Campaign to enrol the affiliate into
Company the affiliate represents
Affiliate this one is a sub affiliate of
Commission tier the affiliate sits on within the campaign
Possible values: >= 1
Company Phone Number
VAT ID
Country
Address
Avatar URL
Facebook URL
Twitter URL
YouTube URL
LinkedIn URL
Instagram URL
{
"affiliateFirstName": "John",
"affiliateLastName": "Deo",
"phoneNumber": "+1 888 888-8888",
"websiteUrl": "https://google.com",
"campaignId": "6385d230f6d19db03eef6fb2",
"companyName": "Acme Inc",
"parentAffiliateId": "63d376de11be1d26d38f7369",
"tier": 2,
"companyPhoneNumber": "+1 888 888-8888",
"vatId": "VAT12345",
"country": "US",
"address": "123 Main St",
"avatar": "https://example.com/avatar.jpg",
"facebookUrl": "https://facebook.com/profile",
"twitterUrl": "https://twitter.com/profile",
"youtubeUrl": "https://youtube.com/channel",
"linkedInUrl": "https://linkedin.com/in/profile",
"instagramUrl": "https://instagram.com/profile"
}
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
}