List Affiliates
GET/affiliate-manager/:locationId/affiliates
Retrieve the list of affiliates for a location.
Request
Version stringrequired
API Version
Available options
v3locationId stringrequired
Location Id
query string
active string
Default value:
falsecampaignId string
skip number
Default value:
0limit number
Maximum number of records to return. Maximum allowed value is 100.
Default value:
10fromDate string
toDate string
Successful response
- application/json
- Schema
- Example (auto)
Schema
affiliatesobject[]required
Affiliate list
metaobjectrequired
Pagination metadata
{
"affiliates": [
{
"_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": {},
"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": "string",
"w9Form": "string",
"lastUpdatedBy": {},
"revenue": 1250.5,
"customer": 15,
"lead": 5,
"droppedCustomer": 2,
"clickCount": 100,
"paid": 500,
"currency": "USD",
"owned": 750
}
],
"meta": {
"count": 42
}
}