[CR] Unit of Measure Codes
Hacienda unit of measure codes (UnidadMedida) for e-invoice items in Costa Rica. Source: Hacienda electronic invoicing v4.4, unit of measure tables for services and goods.
How to send it
Send the Hacienda code in the item's categories[] with list = "unit":
"categories": [
{ "list": "CABYS", "code": "8313100000100" },
{ "list": "unit", "code": "Sp" }
]- Required on every item. Without it the document is rejected (
AP0067 Missing required property, expected: unitMeasurement). - Send the code as Hacienda publishes it (
kg,m2). Brinta adapts the spelling when needed. - The unit decides whether the line is a service or goods. A unit from the services table is a service; any other unit is goods. This drives the services and goods totals.
- On credit and debit notes that reference the original item (
original_item_id), the unit is taken from it.
Services
code | Unit |
|---|---|
Al | Alquiler de uso habitacional |
Alc | Alquiler de uso comercial |
Cm | Comisiones |
I | Intereses |
Os | Otro tipo de servicio |
Sp | Servicios Profesionales |
Spe | Servicios Personales |
St | Servicios técnicos |
d | Día |
h | Hora |
min | Minuto |
s | Segundo |
Goods
Codes marked ⚠ are not accepted yet (error AP0079). Avoid them for now.
code | Unit |
|---|---|
Unid | Unidad |
kg | Kilogramo |
g ⚠ | Gramo |
t ⚠ | Tonelada |
L | Litro |
ml | Mililitro |
Gal | Galón |
m ⚠ | Metro |
cm ⚠ | Centímetro |
mm | Milímetro |
km | Kilómetro |
ln | Pulgada |
m2 | Metro cuadrado |
m3 | Metro cúbico |
Oz | Onzas |
Kw | Kilovatios |
Otros | Se debe indicar la descripción de la medida a utilizar |
1 | Uno (índice de refracción) |
°C | grado Celsius |
º | Grado |
1/m | 1 por metro |
A | Ampere |
A/m | Ampere por metro |
A/m2 | Ampere por metro cuadrado |
B | Bel |
Bq | Becquerel |
C | Coulomb |
C/kg | Coulomb por kilogramo |
C/m2 | Coulomb por metro cuadrado |
C/m3 | Coulomb por metro cúbico |
cd | Candela |
cd/m2 | Candela por metro cuadrado |
eV | Electronvolt |
F | Farad |
F/m | Farad por metro |
Gy | Gray |
Gy/s | Gray por segundo |
H | Henry |
H/m | Henry por metro |
Hz | Hertz |
J | Joule |
J/(kg·K) | Joule por kilogramo kelvin |
J/(mol·K) | Joule por mol Kelvin |
J/K | Joule por kelvin |
J/kg | Joule por kilogramo |
J/m3 | Joule por metro cúbico |
J/mol | Joule por mol |
K | Kelvin |
kat | Katal |
kat/m3 | Katal por metro cúbico |
lm | Lumen |
lx | Lux |
m/s | Metro por segundo |
m/s2 | Metro por segundo cuadrado |
mol | Mol |
Mol/m3 | Mol por metro cúbico |
N | Newton |
N/m | Newton por metro |
N-m | Newton metro |
Np | Neper |
Pa | Pascal |
Pa-s | Pascal segundo |
rad | Radián |
rad/s | Radián por segundo |
rad/s2 | Radián por segundo cuadrado |
S | Siemens |
sr | Estereorradián |
Sv | Sievert |
T | Tesla |
u ⚠ | Unidad de masa atómica unificada |
ua | Unidad astronómica |
V | Volt |
V/m | Volt por metro |
W | Watt |
W/(m·K) | Watt por metro kelvin |
W/(m2·sr) | Watt por metro cuadrado estereorradián |
W/m2 | Watt por metro cuadrado |
W/sr | Watt por estereorradián |
Wb | Weber |
Ω | Ohm |
Updated 4 days ago
Did this page help you?
