Create a client
senta_create_clientWRITE: create a new client (company) in the practice. A name (title) is required; the other fields depend on the practice's own client form. Returns the new client with its id. Check senta_search_clients first so you do not create a duplicate. POST /api/clients.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| web | No | ||
| town | No | ||
| title | Yes | Client name (Senta's `title`). | |
| No | |||
| address1 | No | ||
| address2 | No | ||
| contacts | No | Contacts: firstname, lastname, email, mobile, shareholding. | |
| district | No | ||
| postcode | No | ||
| telephone | No | ||
| clienttype | No | Type, e.g. "Partnership". | |
| vatservice | No | Whether the VAT service applies. | |
| clientstate | No | State, e.g. "Prospect" or "Client" (the practice's own states). | |
| businessarea | No | Business area, e.g. "Veterinary". | |
| extra_fields | No | Other fields configured by the practice (Settings > Forms > Edit Client), keyed by Senta's internal field name. | |
| paymentmethod | No | Payment method, e.g. "Monthly". |