Find or Create Supplier
resolve_supplierLook up a supplier by registry code, VAT number, IBAN, or name, with option to auto-create a client.
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) | |
| 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. |