Get Affiliate
GET
/a/affiliates/{affiliateId}This endpoint is deprecated and may be removed in a future version.
Fetch one affiliate by ID, including address and account manager.
Authentication
Domain ID — your network's tenant ID (header: X-Domain-Id)
API Key (header: X-Api-Key)
Secret Key (header: X-Api-Secret)
No API key yet? Start a 14-day free trial and generate a key from your dashboard's security settings. No credit card required.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
affiliateId | path | integer | Yes |
Responses
| Status | Description |
|---|---|
| 200 | Affiliate fetched |
| 404 | Affiliate not found |
Response fields (inside data)
| Field | Type | Description |
|---|---|---|
affiliateId | integer | |
firstName | string | |
lastName | string | |
email | string | Also the portal login (stored lower-case). |
company | string | |
status | string (ACTIVE | PENDING | REJECTED) | Account status. |
phone | string | |
website | string | |
affiliateAccountManagerId | integer | Employee who manages this affiliate. |
signupCountry | string | Country detected at sign-up. |
address | object | |
address.address1 | string | |
address.address2 | string | |
address.city | string | |
address.state | string | |
address.country | string | |
address.postcode | string | |
parentAffiliateId | integer | Affiliate who referred this one (sub-affiliate program). |
referralCode | string | Code this affiliate shares to refer others. |
trafficPlatform | string | Main traffic source the affiliate declared. |
apiEnabled | boolean | Whether the affiliate may use the Affiliate API. |
createdAt | string | Y-m-d H:i:s |
updatedAt | string | Y-m-d H:i:s |