Create customer
POST
/ admin/ v1/ stores/ {store_id}/ customers- customers:write
- Idempotency-Key supported
Add a customer (without a storefront account).
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
emailstringrequiredphonestring · or nullfirst_namestring · or nulllast_namestring · or nulllocalestring · or nullBCP 47, e.g.
aroren-US.tagsarray of stringsnotestring · or nullemail_marketingbooleanRecord that the customer agreed to marketing emails. Default
false.sms_marketingbooleanRecord that the customer agreed to marketing SMS. Default
false.whatsapp_marketingbooleanRecord that the customer agreed to marketing on WhatsApp. Default
false.
Returns
201 Customer created.
Errors
- 403
forbiddenMissing permission. - 409Email already used by another customer.
- 422
validation_failedValidation failed.