Skip to main content
POST
Create a customer

Authorizations

X-Api-Key
string
header
required

Your Affelios API key. Create one in the dashboard under Settings > API keys.

Body

application/json

The customer to create.

A customer who registered on your site.

externalId
string
required

Your unique ID for the customer. Transactions are matched to the customer by this ID.

Minimum string length: 1
brandId
string
required

The Affelios ID of the brand the customer registered with.

Minimum string length: 1
clickKey
string | null

The click key your site stored when the customer arrived from an affiliate link. A Google click ID (gclid) is also accepted.

username
string | null

A display name for the customer, shown in reports.

registrationDate
string<date-time>

When the customer registered, in UTC.

country_code
string | null

The customer's country as an ISO country code, for example GB.

operatorId
string | null

Not needed when you authenticate with an API key: your program is taken from the key.

Response

The customer was created and attributed.

id
string | null
operatorId
string | null
updatedTs
string<date-time>
createdTs
string<date-time> | null
isIdEmpty
boolean
read-only
createdBy
string | null
hidden
boolean
deleted
boolean
importId
string | null
externalId
string | null
externalBrandId
string | null
username
string | null
country
string | null
country_code
string | null
registerIp
string | null
registrationDate
string<date-time>
hasDeposited
boolean
ftdDate
string<date-time>
cpaQualified
boolean
cpaQualificationDate
string<date-time>
lifetimeRevenue
number<double>
firstDepositAmount
number<double> | null
firstRevenueAmount
number<double> | null
lifetimeDeposits
number<double> | null
lifetimeRevShareCommission
number<double>
lifetimeCpaCommission
number<double>
lifetimeFixedCommission
number<double>
lifetimeCommission
number<double>
tracking
object | null
category
string | null
label
string | null
revShareExcluded
boolean
cpaExcluded
boolean
transactions
object[] | null