Skip to main content
POST
Create a customer

Authorizations

x-api-key
string
header
required

API key for authentication. You can find your API key in the Creem dashboard under Settings > API Keys.

Body

application/json

Customer creation payload

email
string
required

The email address of the customer.

Example:

"john@example.com"

name
string

The full name of the customer. Optional: omit it (or send an empty string) to create a customer without a name, or to keep an existing customer's name unchanged. Their next checkout fills it in.

Example:

"John Doe"

metadata
object

Additional metadata for the customer.

Example:
external_id
string

Your own id for this customer. Unique per store; usage ingestion resolves external_customer_id against it. Trimmed; letters, digits, _, -, . and : only; at most 255 characters.

Example:

"user-42"

country
string

The customer’s country, as an ISO 3166-1 alpha-2 code. Case-insensitive; stored upper-case. The customer portal uses it as the country of the payment form when the customer adds or updates a card. Set only when the customer has no country yet: an existing customer’s country is kept (change it with PATCH /v1/customers). The next checkout that carries a billing country replaces it; a checkout without one keeps it.

Example:

"US"

suppress_test_mode_emails
boolean

Mark a customer you migrated from another platform, or one you made up for testing. While marked, Creem sends this customer no buyer email in test mode: no receipts, subscription notices, portal sign-in links, abandoned cart emails or the affiliate invite after a purchase. Other emails to the same address, such as affiliate, split or store invites, are still sent. It has no effect in live mode. The mark is not returned in the customer response. Omit to leave an existing customer as it is; a new customer starts unmarked.

Example:

true

Response

Successfully created the customer

id
string
required

Unique identifier for the object.

mode
enum<string>
required

String representing the environment.

Available options:
test,
prod,
sandbox
object
string
required

String representing the object’s type. Objects of the same type share the same value.

email
string
required

Customer email address.

Example:

"user@example.com"

country
string | null
required

The ISO 3166-1 alpha-2 country code for the customer.

Pattern: ^[A-Z]{2}$
Example:

"US"

created_at
string<date-time>
required

Creation date of the customer

Example:

"2023-01-01T00:00:00Z"

updated_at
string<date-time>
required

Last updated date of the customer

Example:

"2023-01-01T00:00:00Z"

name
string | null

Customer name. An empty string when the customer has no name yet, for example one created through the API without a name. Their next checkout fills it in.

Example:

"John Doe"

metadata
object | null

Additional metadata associated with the customer.

Example:
external_id
string | null

Your own id for this customer, when you have set one — usage ingestion resolves external_customer_id against it.

Example:

"user-42"