Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • customer_idstringrequired

    The customer kept

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • merged_customer_idstringrequired

    The record merged into this one; it goes.

Returns

200 Merged.

Errors

  • 404not_foundNo such customer.
  • 409The same customer twice.