Send an invoice to e-Factura (SPV)
oblio_send_einvoice_to_spvDestructive
SEND an issued invoice to ANAF e-Factura (SPV). Irreversible: a document accepted by ANAF cannot be withdrawn from this API. Needs confirm: true and the user's approval. Not retried: check the status with oblio_list_invoices (with_einvoice_status) before repeating. Returns text, sent and a code (-1 not sent, 2 errors, 0 processing, 1 sent). POST /api/docs/einvoice.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cif | Yes | CIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090. | |
| number | Yes | Document number within the series, digits only (0055 and 55 are the same). | |
| confirm | No | Must be true. Set it only after the user has confirmed this exact action in this conversation. | |
| series_name | Yes | Document series name (from oblio_list_series), for example FCT. |