JSR Tax Advisors logoAPI
Developer APIsReference documentation

Get Unit of Measure Codes


Returns unit of measure code enumeration per UN/ECE Recommendation 20 (with Rec 21 extension). Used in UBL 2.1 as InvoicedQuantity/@unitCode (IBT-130). The API supports the complete code list (thousands of codes).

Usage in document payloads

Send the code as a plain string on each document line — not an object with code/desc:

"document_lines": [
  {
    "name": "Sample Item",
    "quantity": 2.0,
    "unit_code": "EA",
    "price": { "base_amount": 100.0, "base_quantity": 1.0 },
    "classified_tax_category": { "id": "S", "percent": 5.0, "tax_scheme": "VAT" }
  }
]

Use document_lines[].unit_code when creating or updating:

Common codes

CodeName
EAeach
KGMkilogram
LTRlitre
C62one (unit)

Call this endpoint for the full list of valid codes. Invalid values are rejected at validation.

See the right panel for request, response, and JSON examples.