Skip to content

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_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's ID, like cus_01k8qs5s….

Headers

  • If-Matchstring · or null

    ETag from the last read, e.g. "v3"

  • shop-api-versionYYYY-MM

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

Body

  • emailstring · or null
  • phonestring · or null
  • first_namestring · or null
  • last_namestring · or null
  • localestring · or null
  • tagsarray of strings · or null

    Replaces all tags.

  • notestring · or null
  • email_marketingboolean · or null

Returns

200 Updated customer.

Errors

  • 404not_foundNo such customer.
  • 409Email already used by another customer.
  • 412precondition_failedThe customer changed since it was read.
  • 422validation_failedValidation failed.