curl --request POST \
--url https://api.clientbox.co/api/1.1/wf/create-customer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"first_name": "Sophie",
"last_name": "de Vries",
"email": "[email protected]",
"company_name": "Tech B.V."
}
'{
"id": "cust_12345",
"name": "Jan Jansen",
"email": "[email protected]"
}Voegt een nieuwe klant toe aan je ClientBox database.
Let op: Het e-mailadres moet uniek zijn. Als het al bestaat, krijg je een 409 Conflict error terug.
curl --request POST \
--url https://api.clientbox.co/api/1.1/wf/create-customer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"first_name": "Sophie",
"last_name": "de Vries",
"email": "[email protected]",
"company_name": "Tech B.V."
}
'{
"id": "cust_12345",
"name": "Jan Jansen",
"email": "[email protected]"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
De voornaam van de klant.
"Sophie"
De achternaam van de klant.
"de Vries"
Het zakelijke e-mailadres. Wordt gebruikt voor communicatie.
Optioneel: Bedrijfsnaam.
"Tech B.V."
Klant succesvol aangemaakt.
Was this page helpful?