Create affiliate
Create an affiliate; sendInvite emails them a link to set a password. Counts against the plan's affiliate limit.
POST
Requires scope affiliates:write.
apiKeyheader
AuthorizationBearer <token>An API key: pk_company_… (network), pk_aff_… (affiliate) or pk_adv_… (advertiser). X-Api-Key works too.
application/json- body
firstName?stringlastName?stringemail?stringcompany?string|nullmanager?string|nullstatus?string|nullcountry?string|nulltelegram?string|nullsendInvite?booleanrequireIdVerification?booleanrequireInsertionOrder?booleannotes?string|nullCreated
application/json- response
data?curl -X POST 'https://trakcrt.com/api/v1/network/affiliates' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "data": { "publicId": 0, "name": "string", "firstName": "string", "lastName": "string", "email": "string", "company": "string", "status": "string", "manager": "string", "country": "string", "phone": "string", "telegram": "string", "timeZone": "string", "insertionOrderRequired": true, "insertionOrderSignedAt": "2019-08-24T14:15:22Z", "planLocked": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}