Set Customer Address as Default
| Endpoint | Method |
|---|---|
/api/admin/customers/{customerId}/addresses/{id}/set-default | POST |
Marks the chosen address as the customer's default. All the customer's other addresses have their default flag cleared in the same call. The request body is empty.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
customerId | integer | yes | The customer who owns the address. |
id | integer | yes | The address to make default. Must belong to customerId (otherwise 403). Unknown address → 404. |
Response
Returns the updated address detail (same shape as the address detail endpoint), with defaultAddress: true.
Permission: customers.addresses.edit.
TIP
For default-address semantics and the address-book overview, see the Addresses overview.
All admin endpoints require an admin Bearer token — see Authentication.

