[NI] Factura de Crédito

document_type: "invoice", invoice_type: "debit"

Same as the Factura de Contado, with a due date.

How Crédito is set

Send invoice_due_date later than invoice_date. The invoice becomes Crédito and the PDF adds:

  • "Vencimiento" (the due date) and "Plazo" in days (due date minus invoice date);
  • the legend "Esta factura de crédito se cancela únicamente con recibo oficial de caja emitido por el vendedor."

Contado and Crédito invoices share the same series and numbering.

Payload

{
  "supplier_company_id": "{{company_id}}",
  "invoice_type": "debit",
  "document_type": "invoice",
  "invoice_date": "2026-11-20",
  "invoice_due_date": "2026-12-20",
  "currency": "NIO",
  "e_invoice": true,
  "buyer": {
    "company": {
      "legal_name": "Comercial Muestra, S.A.",
      "type": "business",
      "address": { "address_line_1": "Rotonda El Güegüense 1 c. al oeste", "city": "Managua", "country": "NI" },
      "tax_registrations": [ { "number": "J0310000000002", "type": "RUC", "level": "country", "location": "NI" } ]
    }
  },
  "items": [
    {
      "item_external_id": "PRD-014",
      "name": "Varilla corrugada 3/8\" x 6 m",
      "quantity": 120,
      "unit_amount": 168.50,
      "amount": 20220,
      "categories": [ { "list": "unit", "code": "Unidad" } ],
      "taxes": [ { "name": "IVA", "type": "VAT", "rate": 0.15, "rate_type": "percentage", "amount": 3033, "taxable_amount": 20220 } ]
    }
  ]
}

Everything else (buyer, taxes, what the PDF shows, voiding) works as in the Factura de Contado.


Did this page help you?