Create a client
smartaccounts_create_clientDestructive
Add a new client (purchasesales/clients:add). Search first with smartaccounts_list_clients so a client is not created twice. Returns clientId and the generated referenceNumber. This creates a real accounting record in the company's books. This server cannot edit or delete it; correct it in SmartAccounts. It never retries: if a reply is unclear, look in SmartAccounts before calling again. The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | ||
| name | Yes | Client name. | |
| No | Contact email. | ||
| phone | No | Contact phone. | |
| county | No | ||
| vat_pc | Yes | The client's default VAT code (the vatPc of smartaccounts_list_vat_rates), for example 20. | |
| comment | No | Internal comment. | |
| country | No | 2-letter ISO country code, for example EE. | |
| address1 | No | ||
| address2 | No | ||
| reg_code | No | Company registry code. | |
| vat_number | No | VAT registration number. | |
| postal_code | No | ||
| bank_account | No | Bank account number (IBAN). | |
| invoice_due_days | No | Default invoice due date in days. |