FISCALISTO / API
SAT rejections: withholdings
What each Reten20 code SAT or the PAC rejects a Retenciones 2.0 certificate with means, and what to change in POST /v1/retentions.
The withholding and payment information certificate is built from POST /v1/retentions: you send the withholding key, who you withheld from, the period, the amounts and the withheld taxes, and Fiscalisto builds the document, the totals, the seal and the complements. Fiscalisto checks almost all these codes before stamping and answers invoice_invalid with the field to change; if one still comes back from SAT, this is what it means.
{
"error": {
"type": "invoice_error",
"code": "invoice_rejected",
"sat_code": "RETEN20120",
"doc_url": "https://fiscalisto.com/docs/api/rechazos-retenciones#reten20120",
"request_id": "req_…"
}
}Every code
The explanation of each code, with what to change in your request, is on the Spanish page, one section per code: doc_url in the error links straight to it. The codes are SAT's and the section anchors are the code in lowercase (#reten20126), so you can build the link from sat_code on your own.
Was this page helpful?