Customers
Create a customer
Customers
Create a customer
Creates a customer.
POST
/
v1
/
customers
curl --request POST \
--url https://api.amberflow.io/v1/customers \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"name": "John Doe",
"email": "john@example.com",
"language": "en-US",
"group_id": "grp_LtPXpq5Agg1YBa0Y"
}'
{
"id": "cus_sT1gLxE0pV0kafKv",
"created_at": "2024-09-23T12:00:00.000Z",
"name": "John Doe",
"email": "john@example.com",
"language": "en-US",
"group_id": "grp_hfc0LgNhTBuWS1j0"
}
Authorizations
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
curl --request POST \
--url https://api.amberflow.io/v1/customers \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"name": "John Doe",
"email": "john@example.com",
"language": "en-US",
"group_id": "grp_LtPXpq5Agg1YBa0Y"
}'
{
"id": "cus_sT1gLxE0pV0kafKv",
"created_at": "2024-09-23T12:00:00.000Z",
"name": "John Doe",
"email": "john@example.com",
"language": "en-US",
"group_id": "grp_hfc0LgNhTBuWS1j0"
}