[PE] Bulk Upload Manual

This manual explains how to issue electronic documents in Peru by uploading a file with the Brinta bulk template. It covers the steps in the dashboard, the general rules that apply to every row, and links to one guide per document type.

Supported document types

DocumentInvoice Document TypeInvoice TypeGuide
Factura Electrónica (01)invoicedebitFactura
Boleta de Venta Electrónica (03)ticketdebitBoleta
Nota de Crédito Electrónica (07)credit notecreditCredit and debit notes
Nota de Débito Electrónica (08)debit notedebitCredit and debit notes
📘

Series and number

You send the series and the number of every document in Invoice Serie and Invoice Number. See Series and Numbering.

1. Steps to upload a file

  1. Go to Invoicing → Outgoing → Bulk Uploads. In the left menu, expand Invoicing, then Outgoing, and click Bulk Uploads.
  2. Click "Create Invoice". A window opens to choose the creation method.
  3. Select "Bulk Upload". Choose the option on the left (cloud icon with an arrow). It lets you upload many documents at once from a file.
  4. Select the adapter. In Select adapter, choose the Peru adapter enabled for your company and click Next.
  5. Upload the file. Upload the completed template as a CSV file. You can follow the result of each document in the upload detail.

2. Template

Request the Peru template from your Account Executive (AE) and fill it in following the format of each column.

The template has two tabs:

  • Invoices: the columns to fill in. Header colors tell you when a column is mandatory:
    • Dark blue: mandatory.
    • Light blue: optional, or mandatory only in some cases (for example only for credit and debit notes). Each guide says which.
  • Instrucciones: a short description of each column, in Spanish.

When the file is complete, save it as CSV UTF-8 (comma delimited) before uploading.

❗️

Clean the template before uploading

The "Invoices" tab ships with example rows. Delete them before you add your own rows, so the file only contains your documents.

3. Rules for every row

TopicRuleExample
Header namesKeep the column headers exactly as in the template. Do not rename, translate or merge them.Buyer Legal Name
Fixed valuesAlways lowercase.invoice, credit note, business
Datesyyyy-mm-dd. Format the cell as text so Excel does not change it.2026-11-03
AmountsNumeric cells, dot as decimal separator, no thousands separator.1000.75
RatesDecimal, not a percentage.0.18 for 18%
CountryISO 3166-1 alpha-2 code.PE, US
CurrencyPEN or USD. For any currency other than PEN, also fill in Invoice Exchange Rate.PEN
StateISO 3166-2 code. See the table below.PE-LIM
Series4 characters. Facturas and their notes start with F. Boletas and their notes start with B.F001, B001, FC01
NumberThe correlative of the document in its series, from 1 to 99999999, with no leading zeros.12346, not 00012346
Several itemsOne row per item. Rows with the same Invoice External ID make up one document. Fill in the document and buyer columns on the first row of each document.
IssuerThe issuer value given to you during onboarding. It identifies which of your companies issues the document.

Peru department codes

DepartmentCodeDepartmentCode
AmazonasPE-AMALimaPE-LIM
ÁncashPE-ANCLoretoPE-LOR
ApurímacPE-APUMadre de DiosPE-MDD
ArequipaPE-AREMoqueguaPE-MOQ
AyacuchoPE-AYAPascoPE-PAS
CajamarcaPE-CAJPiuraPE-PIU
CallaoPE-CALPunoPE-PUN
CuscoPE-CUSSan MartínPE-SAM
HuancavelicaPE-HUVTacnaPE-TAC
HuánucoPE-HUCTumbesPE-TUM
IcaPE-ICAUcayaliPE-UCA
JunínPE-JUN
La LibertadPE-LAL
LambayequePE-LAM

For buyers abroad, use the ISO 3166-2 code of their state or province (for example US-NY).

4. Common errors

ErrorCauseHow to fix it
Value not accepted for a fixed fieldInvoice, Credit Note, Business written with capital letters.Use lowercase: invoice, credit note, business.
Wrong dateDate in dd/mm/yyyy or mm/dd/yyyy, or Excel turned it into a number.Use yyyy-mm-dd and format the cell as text.
Date rejected by SUNATThe issue date is more than 3 days before, or more than 2 days after, the day the document reaches SUNAT.Use a current issue date.
Wrong stateDepartment name (Lima) instead of its code.Use the ISO code: PE-LIM.
Wrong amount1.000,75 instead of 1000.75, or the cell is formatted as text.Dot for decimals, no thousands separator, numeric cell.
Wrong IGV18 instead of 0.18, or the IGV amount does not match amount × rate.Send the rate as a decimal and check the IGV amount.
Wrong numberLeading zeros (00012346), or a series and number already used.Send the number with no leading zeros, and use each series and number only once.
Factura rejected for buyerThe buyer is not identified with a RUC, or the RUC does not exist.Use RUC with 11 digits for facturas. Use a boleta for buyers without RUC.
Missing unit of measureItem Unit Code is empty in a factura, boleta or debit note.Fill in the unit code. See Units of Measure.
Extra documents or errors from empty-looking rowsExample rows were left in the file.Delete everything except your own rows.

5. Checking the result

  1. Go to Invoicing → Outgoing → Bulk Uploads and open the upload with the eye icon.
  2. Download the report. The last columns show the error message for each failed row.
  3. Fix only the failed rows and upload them again in a new file.

For questions about this process, contact the Brinta team.


Did this page help you?