Skip to main content
POST
Create Customer

Authorizations

X-Authorization
string
header
required

API Scope: "Customers (write)"

Body

application/json
sales_channel
string
required

If a channel with this name is not already associated with the shop, it will be used to create a new channel.

Maximum string length: 255
Example:

"shopify"

external_id
string | null

The provided external_id must be unique. If a non-unique external_id is provided, the API will respond with an error.

Required string length: 1 - 64
Example:

"71263csss-12uhsdfh-2138dja"

first_name
string | null

The customer's given name.

Maximum string length: 50
Example:

"Edgar"

last_name
string | null

The customer's surname.

Maximum string length: 50
Example:

"Martinez"

email
string<email> | null

The customer's email address.

Maximum string length: 255
Example:

"sample@example.com"

phone
string | null

The customer's phone number.

Maximum string length: 30
Example:

"678-999-8212"

tags
(string | object)[] | null

An array of tags used to classify and group customers.

A tag, accepted either as a plain string or as an object with a name.

Required string length: 1 - 255
Example:

Response

Success

customer
object
required