Create a customer
Adds a customer under Relaties, Klanten.
POST https://cotlet.dev/api/v1/snelstart/customers
write
Creates the customer card and returns its ID. SnelStart refuses names shorter than four characters, and Web cannot import customers or store price agreements. It sends nothing and reaches no one, so it does not ask for confirmation.
Parameters
| Name | Type | Description |
|---|---|---|
| name string required | string | Customer name, at least 4 characters. |
| email string | string | Email address for invoices. |
| vat_number string | string | VAT number, entered under company details. |
Request
curl -X POST https://cotlet.dev/api/v1/snelstart/customers \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Jane Doe"}' result = client.call("snelstart", "create_customer", {"name":"Jane Doe"}) const result = await cotlet.call('snelstart', 'create_customer', {"name":"Jane Doe"}); cotlet call snelstart create_customer --data '{"name":"Jane Doe"}' Example response
{
"customer_id": "cus_9a03",
"name": "Bakker Logistics",
"email": "ap@bakker.example",
"vat_number": "NL987654321B01"
}