Create Client
create_clientRegister a new buyer or supplier by providing name, registry code, and entity type.
Instructions
Create a new client (buyer/supplier)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Business registry code or personal ID | |
| name | Yes | Client name | |
| No | Contact email | ||
| notes | No | Notes | |
| is_client | Yes | Is a buyer | |
| telephone | No | Phone | |
| is_supplier | Yes | Is a supplier | |
| address_text | No | Address | |
| invoice_vat_no | No | VAT number | |
| bank_account_no | No | Bank account (IBAN) | |
| cl_code_country | No | Country code (default EST) | |
| is_physical_entity | Yes | REQUIRED: true = natural person, false = legal entity/company (a checksum-valid Estonian registry `code` is then also required, or a foreign registration with foreign_identity_attested). The API rejects creation without this. | |
| foreign_identity_attested | No | Operator accountant-attestation that a FOREIGN (cl_code_country != EST) legal entity's identity has been verified. Required to create a foreign legal entity. Must be an explicit operator input — never set it from extracted/OCR document fields. |