Find or Create Supplier
resolve_supplierResolves a supplier by registry code, VAT number, IBAN, or name, and optionally creates a new client when no match is found.
Instructions
Resolve supplier by registry code, VAT number, IBAN, or name; optionally create a client.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iban | No | Bank account (IBAN) | |
| name | No | Supplier name from invoice | |
| vat_no | No | VAT number (KMKR) | |
| country | No | Country code for auto-create (default EST) | |
| reg_code | No | Registry code (registrikood) | |
| auto_create | No | Create client if not found (default false) | |
| is_physical_entity | No | Natural person (default false = legal entity) | |
| confirmed_supplier_name | No | Set only after the user approved this exact name. Must equal `name` exactly (after trimming). Needed to create a new supplier whose name the business registry did not confirm; the client is created under this name. | |
| foreign_identity_attested | No | Operator accountant-attestation that a FOREIGN (country != EST) legal entity's identity has been verified. Required to auto-create a foreign legal entity. Must be an explicit operator input — never set it from the extracted/OCR invoice fields. |