Create Affiliate
POST
/a/affiliatesThis endpoint is deprecated and may be removed in a future version.
Creates a new affiliate with login, address and account manager assignment.
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.
Request Body *
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
firstName | string | Yes | |
lastName | string | No | |
email | string | Yes | |
password | string | Yes | |
company | string | Yes | |
status | string | Yes | |
phone | string | No | |
affiliateAccountManagerId | integer | No | |
address1 | string | No | |
address2 | string | No | |
city | string | No | |
state | string | No | |
country | string | No | |
postcode | string | No |
Responses
| Status | Description |
|---|---|
| 201 | Affiliate created successfully |
| 422 | Validation error |
| 500 | Server error |