Skip to main content
POST
Import existing customers

Authorizations

X-Api-Key
string
header
required

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

Body

application/json

The customers to import, at most 10,000.

Customers to import.

items
object[]
required

The customers, at most 10,000 per request.

Response

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

The result of creating or importing customers in bulk.

numImported
integer<int32>

Customers created.

numDuplicates
integer<int32>

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

numFailed
integer<int32>

Customers that could not be created.

firstFailureId
string | null

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

firstFailureMessage
string | null

Why the first failed customer was rejected.