ff1aeb3fda8b
Accept a received invoice (SII event)
Registers an acceptance event for a received invoice with the SII (Registro de Aceptación/Reclamo). Cardda submits the event synchronously using the company's own approved SII credential, then persists the outcome on the fiscal invoice.
Action codes
action_code is optional; when omitted it defaults to ACD. If provided, it must be one of the accept codes:
| Code | Meaning |
|---|---|
| ACD | Aceptación del contenido del documento. |
| ERM | Otorga recibo de mercaderías o servicios. |
| ERG | Recibo de mercaderías / servicios (variante). |
Idempotency
The event is reserved under a row lock: the invoice moves to sii_event_state: submitting, then submitted on success. A second call while an event is already in flight or recorded returns 409.
Requires the erp_tradables_manage permission on the invoice's own company (checked against the invoice, not the company-id header).
Path parameters
Composite id of the fiscal invoice, "#{issuer_id}-#{document_type}-#{number}" (e.g. 76123456-7-33-1234). This is a string, not a UUID.
Parameters
Request body
Example request
{
"action_code": "ACD"
}Response
The updated fiscal invoice (including sii_event_state, sii_event_status and sii_event_at) plus the raw sii_event_result from the SII.