ff1aeb3fda8b
Reject a received invoice (SII event)
Registers a rejection 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 RCD. If provided, it must be one of the reject codes:
| Code | Meaning |
|---|---|
| RCD | Reclamo al contenido del documento. |
| RFP | Reclamo por falta parcial de mercaderías. |
| RFT | Reclamo por falta total de mercaderías. |
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": "RCD"
}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.