Skip to main content
POST
Import existing affiliates

Authorizations

X-Api-Key
string
header
required

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

Body

application/json

The affiliates to import, at most 1,000.

Affiliates to import.

items
object[]
required

The affiliates, at most 1,000 per request.

Response

How many affiliates were imported, skipped as duplicates, or failed.

The result of importing affiliates.

numImported
integer<int32>

Affiliates created.

numDuplicates
integer<int32>

Affiliates skipped because one with the same external ID already exists.

numFailed
integer<int32>

Affiliates that could not be created.

firstFailureId
string | null

The external ID of the last affiliate that failed. When several fail, this may not be the affiliate firstFailureMessage describes.

firstFailureMessage
string | null

Why the first failed affiliate was rejected.