Merge customers
POST
/ admin/ v1/ stores/ {store_id}/ customers/ {customer_id}/ merge- customers:write
- Idempotency-Key supported
Merge another record of the same person into this customer: orders, carts, addresses, points, store credit, reviews, subscriptions and the rest move here; tags and notes join; the stricter of each consent stays; the other record goes.
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 kept
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
merged_customer_idstringrequiredThe record merged into this one; it goes.
Returns
200 Merged.
Errors
- 404
not_foundNo such customer. - 409The same customer twice.