Update a saved address
PATCH
/customers/me/addresses/{addressId}
Updates one of the authenticated customer's saved addresses; default-billing/shipping flags clear the flag on the customer's other addresses (in a transaction). Returns 404 if the address does not belong to the customer. Guarded by the 'customer' realm.
Auth: Bearer JWT required; allowed realms: customer.
Authorizations
bearerAuth
Jeton client obtenu par POST /auth/login (ou /auth/register), renouvelé par POST /auth/refresh.
Type
HTTP (bearer)
Parameters
Path Parameters
addressId*
Type
Requiredstring
Request Body
application/json
JSON "firstName": "string", "lastName": "string", "address1": "string", "address2": "string", "city": "string", "state": "string", "postcode": "string", "countryCode": "TN", "phone": "string", "isDefaultBilling": false, "isDefaultShipping": false
{
}
Responses
Updated address
application/json
JSON "ok": true, "data": { "addressId": "123e4567-e89b-12d3-a456-426614174000", "customerId": "string", "accountId": "string", "firstName": "string", "lastName": "string", "address1": "string", "address2": "string", "city": "string", "state": "string", "postcode": "string", "countryCode": "string", "phone": "string", "isDefaultBilling": true, "isDefaultShipping": true, "createdAt": "2024-01-01T00:00:00Z" }
{
}