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_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….address_idstringrequiredThe address's ID, like
caddr_01k8qs5s….
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
first_namestring · or nulllast_namestring · or nullcompanystring · or nulladdress1string · or nulladdress2string · or nullcitystring · or nullregionstring · or nullpostal_codestring · or null
Returns
200 Updated address.
Errors
- 404
not_foundNo such customer or address. - 409The default cannot be unset.
- 422
validation_failedValidation failed.