[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

codeUnit
AlAlquiler de uso habitacional
AlcAlquiler de uso comercial
CmComisiones
IIntereses
OsOtro tipo de servicio
SpServicios Profesionales
SpeServicios Personales
StServicios técnicos
dDía
hHora
minMinuto
sSegundo

Goods

Codes marked ⚠ are not accepted yet (error AP0079). Avoid them for now.

codeUnit
UnidUnidad
kgKilogramo
g ⚠Gramo
t ⚠Tonelada
LLitro
mlMililitro
GalGalón
m ⚠Metro
cm ⚠Centímetro
mmMilímetro
kmKilómetro
lnPulgada
m2Metro cuadrado
m3Metro cúbico
OzOnzas
KwKilovatios
OtrosSe debe indicar la descripción de la medida a utilizar
1Uno (índice de refracción)
°Cgrado Celsius
ºGrado
1/m1 por metro
AAmpere
A/mAmpere por metro
A/m2Ampere por metro cuadrado
BBel
BqBecquerel
CCoulomb
C/kgCoulomb por kilogramo
C/m2Coulomb por metro cuadrado
C/m3Coulomb por metro cúbico
cdCandela
cd/m2Candela por metro cuadrado
eVElectronvolt
FFarad
F/mFarad por metro
GyGray
Gy/sGray por segundo
HHenry
H/mHenry por metro
HzHertz
JJoule
J/(kg·K)Joule por kilogramo kelvin
J/(mol·K)Joule por mol Kelvin
J/KJoule por kelvin
J/kgJoule por kilogramo
J/m3Joule por metro cúbico
J/molJoule por mol
KKelvin
katKatal
kat/m3Katal por metro cúbico
lmLumen
lxLux
m/sMetro por segundo
m/s2Metro por segundo cuadrado
molMol
Mol/m3Mol por metro cúbico
NNewton
N/mNewton por metro
N-mNewton metro
NpNeper
PaPascal
Pa-sPascal segundo
radRadián
rad/sRadián por segundo
rad/s2Radián por segundo cuadrado
SSiemens
srEstereorradián
SvSievert
TTesla
u ⚠Unidad de masa atómica unificada
uaUnidad astronómica
VVolt
V/mVolt por metro
WWatt
W/(m·K)Watt por metro kelvin
W/(m2·sr)Watt por metro cuadrado estereorradián
W/m2Watt por metro cuadrado
W/srWatt por estereorradián
WbWeber
ΩOhm

Did this page help you?