[PE] Credit Note (07)

What is a Nota de Crédito?

A Nota de Crédito Electrónica (SUNAT code 07) voids, returns, discounts or corrects a factura or boleta already issued. It always references the original document.

FieldValue
document_typecredit note
invoice_typecredit
invoice_serie4 characters, starting with F for a note on a factura, B for a note on a boleta
invoice_numberCorrelative of the note itself, 1 to 99999999
reasonvoid, return or discount (table below)
e_invoicetrue
⚠️

invoice_serie and invoice_number belong to the note

They identify the credit note, not the document it modifies. The original is referenced with original_invoice_id (or the alternatives below). The series letter must match the original: F for a factura, B for a boleta.


reason: credit note type

reasonUse it for
voidVoid the whole document (Anulación de la operación)
returnGoods returned
discountA discount granted after the sale

Field by Field

Root Level

Referencing the original document

Send one of:

FieldWhen
original_invoice_idThe original was issued through Brinta: its Brinta ID.
original_invoice_external_idThe original was issued through Brinta: its ID in your system.
relations[] with document_type (invoice or ticket), invoice_serie and invoice_numberThe original was not issued through Brinta.

Brinta takes the original's type (factura or boleta), series and number from the reference.

invoice_date, currency, additional_info

Same as on the Factura (01). Use the same currency as the original.

buyer

Don't send it. Brinta takes the buyer from the original document.

items[]

  • void: don't send items. Brinta voids the whole original document.
  • return or discount: send only the items returned or discounted. Each one points to its line on the original with original_item_id (the Brinta ID of that item), plus name, amount and taxes[] for the amount being credited.

Credit notes don't carry percepción.


Examples

Void a boleta (void)

{
  "invoice_type": "credit",
  "document_type": "credit note",
  "invoice_due_date": "2026-11-03",
  "currency": "PEN",
  "e_invoice": true,
  "reason": "void",
  "invoice_serie": "B002",
  "invoice_number": 123,
  "original_invoice_id": "{{original_invoice_id}}",
  "supplier_company_id": "{{company_id}}"
}

Return of one item (return)

{
  "invoice_type": "credit",
  "document_type": "credit note",
  "invoice_due_date": "2026-11-03",
  "currency": "PEN",
  "e_invoice": true,
  "reason": "return",
  "invoice_serie": "B001",
  "invoice_number": 123,
  "original_invoice_id": "{{original_invoice_id}}",
  "supplier_company_id": "{{company_id}}",
  "items": [
    {
      "original_item_id": "{{original_item_id}}",
      "amount": 1000,
      "name": "Item Name",
      "taxes": [
        {
          "amount": 180,
          "name": "IGV",
          "type": "VAT",
          "rate": 0.18,
          "rate_type": "percentage",
          "description": "Impuesto General a las Ventas",
          "adds_to_final_amount": true
        }
      ]
    }
  ]
}

A discount note has the same structure as the return one, with "reason": "discount".


Did this page help you?