Emitir una factura
Precios y cantidades como texto decimal. El IVA y los totales los calculamos nosotros.
POST /v1/ec/invoices
Authorization: Bearer fb_sandbox_…
Idempotency-Key: pedido-1041
{
"buyer": {
"identification_type": "cedula",
"identification": "1712345675",
"name": "María José Andrade",
"email": "maria@example.ec"
},
"lines": [
{
"description": "Juego de brocas",
"quantity": "2",
"unit_price": "36.00",
"taxes": [
{
"type": "iva",
"rate": "iva_15"
}
]
}
],
"payments": [
{
"method": "tarjeta_credito"
}
]
}201 Created
{
"id": "0f6c8f4e-…",
"number": "001-001-000000042",
"status": "pending",
"total": "82.80"
}