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.
Endpoint
Section titled “Endpoint”POST /api/credit-notes
Authentication
Section titled “Authentication”Authorization: Bearer sk_live_YOUR_API_KEY or Authorization: Bearer JWT_TOKEN
Request body
Section titled “Request body”{ "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" } ]}Additional fields (beyond Factura fields)
Section titled “Additional fields (beyond Factura fields)”| Field | Type | Required | Description |
|---|---|---|---|
referenceDocumentId | string | Yes | Original document series-correlative (e.g., F001-00000001) |
referenceDocumentType | string | Yes | Original document type code (01 for Factura, 03 for Boleta) |
responseCode | string | Yes | SUNAT credit note reason code (see below) |
responseDescription | string | Yes | Description of the reason |
Credit note reason codes
Section titled “Credit note reason codes”| Code | Description |
|---|---|
01 | Anulacion de la operacion |
02 | Anulacion por error en el RUC |
03 | Correccion por error en la descripcion |
04 | Descuento global |
05 | Descuento por item |
06 | Devolucion total |
07 | Devolucion por item |
08 | Bonificacion |
09 | Disminucion en el valor |
10 | Otros conceptos |
All other fields (series, customer, items, etc.) follow the same schema as Facturas.
Response
Section titled “Response”Success (201 Created)
Section titled “Success (201 Created)”{ "id": "cm3ghi789", "documentId": "20123456789-07-F001-00000001", "status": "ACCEPTED", "cdrResponseCode": "0", "cdrDescription": "La Nota de Credito numero F001-00000001, ha sido aceptada", "ticket": null}Series format
Section titled “Series format”- Use
Fprefix when the credit note references a Factura - Use
Bprefix when the credit note references a Boleta