cURL
curl --request PATCH \ --url http://localhost:3000/api/canary/customers/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "metadata": { "customField": "value", "orderId": "12345" } } '
{ "statusCode": 400, "message": [ "Invalid input data" ], "error": "Bad Request" }
Updates a customer’s details such as email or metadata
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The unique identifier of the customer
Customer update details
Optional custom metadata
{ "customField": "value", "orderId": "12345"}
The email address of the customer
The full name of the customer
Customer updated successfully