Skip to content

Notas de Credito (07)

Notas de Credito (credit notes) are used to partially or fully reverse a previously emitted Factura or Boleta. They reference the original document and specify the reason for the correction.

POST /api/credit-notes

Authorization: Bearer sk_live_YOUR_API_KEY or Authorization: Bearer JWT_TOKEN

{
"series": "F001",
"correlative": 1,
"issueDate": "2026-02-21",
"currencyCode": "PEN",
"referenceDocumentId": "F001-00000001",
"referenceDocumentType": "01",
"responseCode": "01",
"responseDescription": "Anulacion de la operacion",
"customer": {
"identityType": "6",
"identityNumber": "20100047218",
"name": "Empresa Cliente SAC",
"address": "Av. Javier Prado 1234, San Isidro"
},
"items": [
{
"code": "SRV-001",
"description": "Servicio de consultoria (anulacion)",
"quantity": 1,
"unitCode": "ZZ",
"unitPrice": 1000.00,
"igvType": "10"
}
]
}
FieldTypeRequiredDescription
referenceDocumentIdstringYesOriginal document series-correlative (e.g., F001-00000001)
referenceDocumentTypestringYesOriginal document type code (01 for Factura, 03 for Boleta)
responseCodestringYesSUNAT credit note reason code (see below)
responseDescriptionstringYesDescription of the reason
CodeDescription
01Anulacion de la operacion
02Anulacion por error en el RUC
03Correccion por error en la descripcion
04Descuento global
05Descuento por item
06Devolucion total
07Devolucion por item
08Bonificacion
09Disminucion en el valor
10Otros conceptos

All other fields (series, customer, items, etc.) follow the same schema as Facturas.

{
"id": "cm3ghi789",
"documentId": "20123456789-07-F001-00000001",
"status": "ACCEPTED",
"cdrResponseCode": "0",
"cdrDescription": "La Nota de Credito numero F001-00000001, ha sido aceptada",
"ticket": null
}
  • Use F prefix when the credit note references a Factura
  • Use B prefix when the credit note references a Boleta