Create Customer
POST
/store/:storeCode/customersCreate a customer after auth registration (token-exchange flows).
Typically used when registration issues a registration token rather than creating the customer inline. Prefer `sdk.store.auth.register` for emailpass, which already creates the customer.
Path Parameters
storeCoderequiredstringStore slug in the URL (first argument to every SDK store method).
Query Parameters
fieldsstringComma-separated fields to include. Prefix with `*` to expand a relation (e.g. `id,*variants`).
Request Body
Schema
CopyHttpTypes.StoreCreateCustomer
Properties
emailrequiredstringCustomer email.
first_namestringFirst name.
last_namestringLast name.
phonestringPhone number.
company_namestringCompany name.
metadataRecord<string, unknown>Custom metadata.
Response
Status
200OK
Schema
CopyHttpTypes.StoreCustomerResponse
Properties
customerrequiredStoreCustomerThe created customer.