FCHubFCHub.co

Set primary address

Set an address as the primary address for a customer.

POST
/customers/{customer_id}/address/make-primary

Authorization

applicationPassword
AuthorizationBasic <token>

WordPress Application Password authentication. Generate one at wp-admin > Users > Application Passwords. Use as Basic Auth with username:application_password (base64-encoded).

In: header

Path Parameters

customer_id*integer

Customer ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

address_id?integer

Address ID to set as primary

Response Body

application/json

application/json

curl -X POST "https://your-site.com/wp-json/fluent-cart/v2/customers/0/address/make-primary" \  -H "Content-Type: application/json" \  -d '{}'
{
  "message": "string"
}