Creates a new customer. Only name is required. An email address must be unique among your customers.
| Field | Required | Description |
| name | Yes | Name, maximum 255 characters. |
| email | No | Valid email address, unique per customer. |
| phone | No | Phone number. |
| company_name | No | Company name. |
| vat_number | No | VAT number. |
| billing_address | No | Billing address. |
| zip_code, city, country | No | Postal code, city and country. |
| notes | No | Internal notes. |
Request
curl -X POST "https://financial.gyvex.com/api/customer/store" \
-H "Accept: application/json" \
-H "Authorization: Bearer UW_API_SLEUTEL" \
-H "Content-Type: application/json" \
-d '{
"name": "John Doe",
"email": "john.doe@example.com",
"phone": "+31612345678",
"company_name": "Doe Enterprises",
"vat_number": "NL123456789B01",
"billing_address": "Voorbeeldstraat 1",
"zip_code": "1234 AB",
"city": "Amsterdam",
"country": "Nederland"
}'
On success you receive status 201 with the new customer and its id, which you then use as customer_id for invoices and quotes.