Sector 24

Notas crédito-débito

Ajustes sobre una factura original. Requiere layout y referencia a la factura.

Qué debes enviar

  • layout: nota_credito_debito | nota_fiscal_credito_debito
  • referenceInvoiceId

Ejemplo con SDK

index.ts
1const nota = await supay.invoices.emit({
2 pointOfSaleId: POS_ID,
3 invoiceType: "credit_note",
4 sector: "24",
5 layout: "nota_credito_debito",
6 referenceInvoiceId: FACTURA_ORIGINAL_ID,
7 customer: { documentType: "ci", documentNumber: "9971522", name: "Ramiro" },
8 items: [{ sku: "PROD-001", quantity: 1, price: 1250 }],
9});

¿Otro sector? Usa `supay.invoices.sectors()` para listar los 51 perfiles con sus campos `data` exactos y construye el formulario dinámico desde ahí.