import_create
Start an import of invoices from a spreadsheet. Send the file as text: content with the CSV (header in the first line, columns such as cnpj_prestador, tomador_documento, tomador_nome, tomador_email, descricao, valor, codigo_servico, data_competencia), or content_base64 with an .xlsx. Up to 2,000 rows and 1 MB here (bigger files: POST /v1/imports). Reading is asynchronous: the import starts as "processing" and becomes "ready" for review; nothing is issued until the rows are emitted. The issuing company comes from the CNPJ column or from company_id.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "import_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | The CSV text | |
| file_name | No | Defaults to import.csv, or import.xlsx with content_base64 | |
| company_id | No | UUID of the company that issues rows without a CNPJ | |
| content_base64 | No | An .xlsx file encoded in base64 (CSV in `content` is preferred) |