Set Primary Address
The "Set Primary Address" API allows you to set a specific address as the primary address for a customer. This feature is useful when a customer has multiple addresses and wants to set one as the default address for future orders.
Endpoint:
api/customer/profile/addresses/primary/{id}
Http Method:
POST
URL Parameters:
id
(required): The unique identifier of the address.
Success Response:
Customer Resource
You can check more details about Customer Resource.
200 OK - If the login is successful
{
"code": 200,
"data": {
"id": 1153383,
"name": "Test",
"last_name": "Documentation",
"email": "doc2@supercommerce.io",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..",
"is_guest": false,
//...
}
}
معلومات
Check the following section to learn more about the Set Primary Address API Reference