Skip to content
CustomersCustomer

Set default address

Marks one of the customer's saved addresses as the default. The previous default is cleared in the same operation.

POST/v1/customer/addresses/{addressId}/default
Requires an access token.

Path Parameters

addressId*string

Header Parameters

Authorization*string

OAuth 2.0 bearer token.

x-Store-Domain*string

Slug of the store or one of its configured domains, such as my-store.

Length1 <= length <= 253
X-Customer-Session?string

Customer session from POST /v1/customer/sessions. Send it instead of Authorization, never both.

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://storefront.ecomiq.pe/v1/customer/addresses/7204558912004321172/default" \  -H "Authorization: Bearer <token>" \  -H "x-Store-Domain: my-store" \  -H "X-Customer-Session: <session-id>"
Empty