Skip to content

Update one of my addresses

PATCH
/store/v1/customers/me/addresses/{id}
curl --request PATCH \
--url https://your-store.example.com/store/v1/customers/me/addresses/example \
--header 'Content-Type: application/json' \
--data '{ "type": "shipping", "isDefault": true, "name": "example", "company": "example", "line1": "example", "line2": "example", "city": "example", "postalCode": "example", "region": "example", "country": "example", "phone": "example" }'
id
required
string
Media type application/json
object
type
string
Allowed values: shipping billing
isDefault
boolean
name
string
>= 1 characters <= 255 characters
company
Any of:
string
>= 1 characters <= 255 characters
line1
string
>= 1 characters <= 512 characters
line2
Any of:
string
>= 1 characters <= 512 characters
city
string
>= 1 characters <= 255 characters
postalCode
string
>= 1 characters <= 32 characters
region
Any of:
string
>= 1 characters <= 255 characters
country
string
/^[A-Za-z]{2}$/
phone
Any of:
string
>= 1 characters <= 64 characters