Create document
create_documentIssue invoices, proformas, or delivery notices in Oblio with client and product data. Use an idempotency key to prevent duplicate documents.
Instructions
Issue a new fiscal document in Oblio: an invoice (factura), a proforma, or a delivery notice (aviz). Provide the document body (client, series, line items, dates). NOTE: Oblio has no draft state — the document is issued immediately. Pass an idempotencyKey to guard against accidental double-issue on retries.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "<type>",
"data": "<data>"
},
"name": "create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Document body. | |
| type | Yes | Document type: "invoice" (factura), "proforma", or "notice" (aviz). | |
| idempotencyKey | No | Optional caller-supplied key. If the same key was already used in this server process, the previous result is returned instead of issuing a second document. Guards against accidental double-issue on retries. |