Skip to content

Update an address

PATCH/admin/v1/stores/{store_id}/customers/{customer_id}/addresses/{address_id}
  • customers:write

Update an address; is_default: true makes it the default.

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….

  • address_idstringrequired

    The address's ID, like caddr_01k8qs5s….

Headers

  • shop-api-versionYYYY-MM

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

Body

  • first_namestring · or null
  • last_namestring · or null
  • companystring · or null
  • address1string · or null
  • address2string · or null
  • citystring · or null
  • regionstring · or null
  • postal_codestring · or null

Returns

200 Updated address.

Errors

  • 404not_foundNo such customer or address.
  • 409The default cannot be unset.
  • 422validation_failedValidation failed.