Retener renta e IVA de una factura de servicios
Un documento de sustento, con su base de renta y su retención de IVA.
POST /v1/ec/withholdings
Authorization: Bearer fb_sandbox_…
Idempotency-Key: retencion-118802
{
"supplier": {
"identification_type": "ruc",
"identification": "1792233445001",
"name": "TRANSPORTES ANDES CÍA. LTDA.",
"email": "cobros@andes.ec"
},
"support_documents": [
{
"document_type": "factura",
"number": "001-001-000118802",
"issue_date": "2026-09-25",
"authorization_number": "2509202601179223344500110010010001188021234567811",
"tax_support": "01",
"subtotal": "771.00",
"total": "886.65",
"taxes": [
{
"type": "iva",
"rate": "iva_15",
"base": "771.00",
"value": "115.65"
}
],
"withholdings": [
{
"tax": "renta",
"code": "312",
"base": "771.00"
},
{
"tax": "iva",
"rate": "iva_30",
"base": "115.65"
}
],
"payments": [
{
"method": "otros_sistema_financiero"
}
]
}
]
}