cURL
curl --request PATCH \ --url https://api.crevio.co/v1/customers/{prefix_id} \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "customer": { "email": "jsmith@example.com", "name": "<string>", "firstName": "<string>", "lastName": "<string>", "customerType": "lead" } } '
{ "id": 123, "email": "jsmith@example.com", "name": "<string>", "firstName": "<string>", "lastName": "<string>", "customerType": "lead", "prefixId": "<string>", "ordersCount": 123, "totalSpend": 123, "tags": [ { "id": 123, "name": "<string>" } ], "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }
Updates an existing customer record
API key in the format: Bearer {api_token}
The resource prefix ID
Show child attributes
Customer updated
lead
free
paid
Total spend in cents
Tags associated with the customer
Was this page helpful?