Set primary address
Set an address as the primary address for the authenticated customer.
Authorization
cookieAuth wordpress_logged_in<token>
WordPress cookie authentication for same-origin requests. Requires a valid nonce passed via X-WP-Nonce header.
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
address_id?integer
Response Body
application/json
application/json
curl -X POST "https://your-site.com/wp-json/fluent-cart/v2/customer-profile/make-primary-address" \ -H "Content-Type: application/json" \ -d '{}'{}{
"code": "rest_forbidden",
"message": "Sorry, you are not allowed to do that.",
"data": {
"status": 401
}
}