cURL
curl --request POST \ --url https://api.crevio.co/v1/customers \ --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" }
Creates a new customer record
API key in the format: Bearer {api_token}
Show child attributes
Customer created
lead
free
paid
Total spend in cents
Tags associated with the customer
Was this page helpful?