Create Customer

Creates a customer in the store. Requires the p/c-customer permission. When the company's "unique customer mobile" setting is enabled, creating a second customer with an existing mobile number fails with 400 BAD_REQUEST. If address is given it is also stored as the customer's default address record. passport is only persisted when the company's passport-scanning setting is enabled. credit_limit defaults to the company's default credit limit when omitted.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length ≤ 190

Customer name.

string
required

Mobile number (numeric).

string | null
string | null

Main address text. Also creates a default address record.

date | null

Must be a date before today.

string | null

Stored only when the passport-scanning company setting is enabled.

string | null
string | null

Note printed on the customer's bills.

string | null

Internal note about the customer.

number | null
number | null

Accepted by validation but currently ignored — the customer's credit balance is derived from the credit ledger. Use the credit-adjustment endpoint to set an opening balance.

string

Price level identifier applied to this customer's sales.

Headers
string
required

The merchant install this request acts on (install.store_id from the app.installed webhook).

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json