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).
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
400The action_code is not valid for an accept event. Body:
{ "error": "Invalid action_code for accept. Allowed: ACD, ERM, ERG" }.
Upstream SII validation errors are also passed through with the SII's own
status (400/401/403) and body.
401Unauthorized — missing/invalid token, company-id header not set, or the caller lacks erp_tradables_manage on the invoice's company.
404Fiscal invoice not found. Body: { "message": "Resource not found" }.
409The invoice already has an SII event in flight or recorded. Body:
{ "error": "Invoice already has SII event" }.
412The invoice''s company has no approved SII credential whose RUT matches the
company identifier. Body:
{ "error": "No approved SII credentials for this company" }.
