Skip to main content

Import Customer Mappings CSV

POST 

/api/channel-partners/:id/customer-mappings/import

Bulk imports customer redirects from a CSV upload (multipart/form-data, field name: file).

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Columns read per row: external_key (targets an existing row, e.g. an email identity created by a failed order) OR referenced_customer_id (a customer id in this system that the partner references — creates/updates the redirect), plus bill_to_customer_id (the customer to bill; empty = unmap an existing row). Other columns are ignored, so a file downloaded from the Export endpoint can be edited and uploaded directly.

Both customers must exist, and a redirect from a customer to itself is rejected. Imported writes carry source and match_method = import.

Validation is all-or-nothing: if ANY line has a problem, the response has status validation_failed with per-line errors and nothing is written.

Request

Responses

OK

Response Headers
    Content-Type