🔠 Table of codes

The following are the codes to be used on mexican operations. Use the navigation on your right to quickly move to different id.

All request to the API should be made using the first column ID. External codes are to be considered only for reference purposes.

country_id

country_idname
83PERÚ
1SENEGAL
2GAMBIA
3GUINEA-BISSAU
4GUINEA
5SIERRA LEONA
6LIBERIA
7COSTA DE MARFIL
8GHANA
9TOGO
10NIGERIA
11SUDAFRICA
12BOTSWANA
13LESOTHO
14MALAWI
15ZIMBABWE
16ZAMBIA
17COMORAS
18MAURICIO
19MADAGASCAR
20MOZAMBIQUE
21SWAZILANDIA
22SUDAN
23EGIPTO
24LIBIA
25TUNEZ
26ARGELIA
27MARRUECOS
28CABO VERDE
29CHAD
30NIGER
31ALTO VOLTA
32MALI
33MAURITANIA
34TANZANIA
35UGANDA
36KENIA
37SOMALIA
38ETIOPIA
39ANGOLA
40BURUNDI
41RWANDA
42REP.DEM. CONGO
43CONGO
44GABON
45S.TOM.PRINCIPE
46GUINEA ECUATRL
47REP.CENT.AFRIC.
48CAMERUN
49BENIN
50TERR.BRIT.EN AF
51TER.ESPAN.EN AF
52TERR.FRAN.EN AF
53BOPHUTHATSWANA
54DJIBOUTI
55SEYCHELLES
56VIENDA
57NAMIBIA
58SUDAN DEL SUR
59BURKINA FASO
60CISKEY
61ERITREA
62ISLAS MARSHALL
63SAHARAUI
64TRANSKEI
65VENEZUELA
66COLOMBIA
67TRINID.Y TOBAGO
68BARBADOS
69JAMAICA
70REP.DOMINICANA
71BAHAMAS
72HAITI
73CUBA
74PANAMA
75COSTA RICA
76NICARAGUA
77EL SALVADOR
78HONDURAS
79GUATEMALA
80MEXICO
81GUYANA
82ECUADOR
84BRASIL
85BOLIVIA
86PARAGUAY
87URUGUAY
88ARGENTINA
89U.S.A.
90CANADA
91TERR.BRIT.EN AM
92TERR.FRAN.EN AM
93TER.HOLAN.EN AM
94TERR.D/DINAMARC
95DOMINICA
96GRANADA
97SANTA LUCIA(ISL
98S.VTE.Y GRANAD.
99SURINAM
100BELICE
101ANTIGUA Y BBUDA
102SNT.KIT & NEVIS
103ANGUILA
104ARUBA
105BERMUDAS
106ISLAS VIRG.BRIT
107ISLAS CAYMAN
108ANTILLAS NEERLANDESA
109TURCAS Y CAICOS
110ISLAS VIRGENES (ESTADOS UNIDOS DE AMERICA)
111MARTINICA
112PUERTO RICO
113MONSERRAT
114GROENLANDIA
115JORDANIA
116ARABIA SAUDITA
117KUWAIT
118OMAN
119CHIPRE
120ISRAEL
121IRAK
122AFGANISTAN
123IRAN
124SIRIA
125LIBANO
126QATAR
127BAHREIN
128SRI LANKA
129CAMBODIA
130LAOS
131INDIA
132BHUTAN
133THAILANDIA
134NEPAL
135BANGLADESH
136YEMEN
137YEMEN DEL SUR
138PAKISTAN
139VIETNAM
140MYANMAR (EX BIRMANIA)
141ISLAS MALDIVAS
142INDONESIA
143MALASIA
144TAIWAN (FORMOSA)
145JAPON
146SINGAPUR
147COREA DEL SUR
148COREA DEL NORTE
149FILIPINAS
150CHINA
151MONGOLIA
152EMIR.ARAB.UNID.
153HONG KONG
154TER.PORTUG.E/AS
155BRUNEI
156MACAO
157REPUBLICA DE YEMEN
158FIJI
159NAURU
160ISLAS TONGA
161SAMOA OCC.
162NUEVA ZELANDIA
163AUSTRALIA
164TERR.BRIT.EN AU
165TERR.FRAN.EN AU
166T.NORTEAM.EN AU
167PPUA.NVA.GUINEA
168VANUATU
169KIRIBATI
170MICRONESIA
171ISLAS SALOMON
172TUVALU
173PALAU
174NIUE
175POLINESIA FRANCESA
176NUEVA CALEDONIA
177ISLAS MARIANAS DEL NORTE
178GUAM
179TIMOR ORIENTAL
180ISLAS COOK
181PORTUGAL
184ITALIA
185FRANCIA
186IRLANDA
187DINAMARCA
188SUIZA
189AUSTRIA
190REINO UNIDO
191SUECIA
192FINLANDIA
193NORUEGA
194BELGICA
195HOLANDA
196ISLANDIA
197ESPAÑA
198ALBANIA
199RUMANIA
200GRECIA
202TURQUIA
203MALTA
204SANTA SEDE
205ANDORRA
207BULGARIA
208POLONIA
209CHECOESLOVAQUIA
210HUNGRIA
211LUXEMBURGO
212LIECHTENSTEIN
213MONACO
214SAN MARINO
215ARMENIA
216AZERBAIJAN
217BELARUS
218BOSNIA HEZGVINA
219REPUBLICA CHECA
220REP.ESLOVACA
221REPUBLICA DE SERBIA
222CROACIA
223ESLOVENIA
224ESTONIA
225GEORGIA
226KAZAJISTÁN
227KIRGISTÁN
228LETONIA
229LITUANIA
230MACEDONIA
231MOLDOVA
232TAYIKISTÁN
233TURKMENISTÁN
234UCRANIA
235UZBEKISTÁN
236MONTENEGRO
237RUSIA
238ALEMANIA
240GIBRALTAR
241GUERNSEY
242ISLA DE MAN
243JERSEY
244GILBRALTAR
245COMB.Y LUBRIC.
246RANCHO DE NAVES
247PESCA EXTRA
248ORIG.O DEST. NO
249ZF.IQUIQUE
250DEPOSITO FRANCO
251ZF.PARENAS
252ZF.ARICA-ZF IND
253CHILE
254NAC.REPUTADA
255OTROS(PAIS DESCONOCIDO)

currency_id

currency_idnameexternal_code
7SolPEN
5Dolar USAUSD
38EuroEUR

tax_id_type

tax_id_typename
PE-RUCRegistro único contribuyente peruano

document_type_id

document_type_idNamereceived_issued_flagExternal Code
96Factura emitida101
97Boleta de venta emitida103
98Nota de crédito emitida107
99Nota de débito emitida108
100Guia de remisión para remitente emitida109
101Guia de remisión para Transportista emitida131
102Factura recibida001
103Boleta de venta recibida003
104Nota de crédito recibida007
105Nota de débito recibida008
107Guia de remisión para remitente recibida009
108Guia de remisión para Transportista recibida031
109Comprobante de retención emitido120
110Comprobante de retención recibido120

tax_type_id

tax_type_idnametax_typevalueexternal_code
412IGV 16%216,00001000
413IGV 18%218,00001000
414IGV 0%20,00009997
415ISC Alcohol 20%220,00002000
416ISC Alcohol 50%250,00002000
417ISC Bebidas azucaradas 17%217,00002000
418ISC Cigarrillos30,00002000
419ISC Combustibles30,00002000
420ISC Vehículos 10%210,00002000
421ISC Vehículos 20%220,00002000
422ISC Vehículos Otros30,00002000
423ISC Bebidas azucaradas 25%225,00002000
424ISC Alcohol30,00002000
425Exportación20,00009995
426Operaciones gratuitas20,00009996
427Operaciones exoneradas20,00009997
428Operaciones inafectas20,00009998
429Otros conceptos de pago30,00009999

Notes: tax_type values: 1 = fixed value in money 2 = fixed percentage 3 = variable value in money to be defined by user as part of the request

tax_value: Positive numbers will add to the final amount, while negative values are retentions and will decrease the final amount

operation_type

Operation types are used on the additional >> pe_header field

operation_typeNameDescription
0101Internal SaleSale of goods or services within the national territory.
0200Export of GoodsExport operations exempt from Value Added Tax (VAT).
0301Advance PaymentsAdvance payments for goods or services to be delivered or provided in the future.
0401Operations by IntermediariesSales in consignment or other operations carried out through intermediaries.
1001Transaction Subject to DetraccionTransactions where the detraction system is applied to ensure tax compliance.
2001Transaction Subject to PerceptionSales subject to the VAT perception system, where the buyer advances a portion of the tax.
3001Transaction Subject to RetentionOperations where the buyer acts as a withholding agent for VAT.
4001VAT-Exempt TransactionSales of goods or services exempt from VAT as per regulations.
5001Transaction with VAT and ISCTransactions where both VAT (Value Added Tax) and ISC (Selective Consumption Tax) are applied.
9999OtherAtypical or specific operations not classified under standard categories.

unit_measure

unit_measurename
CAJACaja
CMCentimetros
CM2Centimetros cuadrados
GRGramo
KGKilogramos
KWHKilowatt Hora
LTLitro
LTSLitros
MTSMetros
MT2Metros cuadrados
MT3Metros cúbicos
PARPar
PACKPack
PLGPulgadas
TONToneladas
UFUnidad de fomento
UNUnidad
BOXBox
PLTPallets
CONTContenedor
PCSPiezas
PARTPartes
TRAYBandejas
SETSet
RMResma
PLIEPliego
HRSHoras

account certification_status

certification_statusnamecustomer_action_requiredexplanation
0Account createdYesThe account was created, but no certificate has been uploaded
21Tax situationYesThe SUNAT is not allowing the process to continue. Check status details and take action.
22InactiveYesThere is a problem on the certification process that the customer hasn’t resolved
23Scheduled for eliminationYesThis account is scheduled for elimination
70Ready to be activatedNoThe information was succesfully received and we are ready to activate invoices.
71On hold: Declaration paused by clientYesThe declaration process is paused due to a request or action by the client.
72On hold: Declaration paused due to tax issueYesThe declaration process is paused due to a tax-related issue identified by the SUNAT. Check status details and take action.
80Invoice certificationNoThe account is certified to issue invoices.