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.
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. |