Update customer
Update an existing customer's information.
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.
Response Body
application/json
application/json
application/json
curl -X PUT "https://your-site.com/wp-json/fluent-cart/v2/customers/0" \ -H "Content-Type: application/json" \ -d '{}'{
"customer": {
"id": 0,
"user_id": "string",
"contact_id": "string",
"email": "user@example.com",
"first_name": "string",
"last_name": "string",
"status": "active",
"purchase_value": "string",
"purchase_count": "string",
"ltv": "string",
"first_purchase_date": "2019-08-24T14:15:22Z",
"last_purchase_date": "2019-08-24T14:15:22Z",
"aov": "string",
"notes": "string",
"uuid": "string",
"country": "string",
"city": "string",
"state": "string",
"postcode": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"selected_labels": [
0
],
"full_name": "string",
"photo": "http://example.com",
"country_name": "string",
"formatted_address": {
"country": "string",
"state": "string",
"city": "string",
"postcode": "string",
"address_1": "string",
"address_2": "string",
"type": "string",
"name": "string",
"first_name": "string",
"last_name": "string",
"full_name": "string",
"email": "user@example.com",
"company_name": "string",
"label": "string",
"phone": "string",
"full_address": "string"
},
"user_link": "http://example.com",
"labels": [
{
"id": 0,
"value": "string",
"color": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
]
}
}{
"code": "rest_forbidden",
"message": "Sorry, you are not allowed to do that.",
"data": {
"status": 401
}
}{
"code": "fluent_cart_entity_not_found",
"message": "Order not found",
"data": {
"status": 404
}
}