Update customer
PATCH
/ admin/ v1/ stores/ {store_id}/ customers/ {customer_id}- customers:write
Partially update a customer. Send If-Match: "v{version}" to avoid overwriting someone else's changes.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.customer_idstringrequiredThe customer's ID, like
cus_01k8qs5s….
Headers
If-Matchstring · or nullETag from the last read, e.g. "v3"
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
emailstring · or nullphonestring · or nullfirst_namestring · or nulllast_namestring · or nulllocalestring · or nulltagsarray of strings · or nullReplaces all tags.
notestring · or nullemail_marketingboolean · or null
Returns
200 Updated customer.
Errors
- 404
not_foundNo such customer. - 409Email already used by another customer.
- 412
precondition_failedThe customer changed since it was read. - 422
validation_failedValidation failed.