List Units of Measure
Query Parameters
Filter by active status
Filter by decimal support (true = allows decimals, false = integer only)
Items per page
Response
Example Response
Create Unit of Measure
Request Body
Unique UOM code (max 20 chars, e.g., KG, L, PZA)
Full name (max 100 chars, e.g., Kilogramo, Litro)
Display symbol (max 10 chars, e.g., kg, L, pz)
Decimal places (0-6). For integer-only units, use 0.
Allow decimal quantities. Set to false for countable items (pieces, bottles, etc.)
Active status
Response
Returns the created UOM object with status201.
Errors
422- Validation error (duplicate code, invalid precision)403- Insufficient permissions
Get Unit of Measure
Path Parameters
Unit of measure ID
Response
Returns the UOM object with all fields.Errors
404- UOM not found
Update Unit of Measure
Path Parameters
Unit of measure ID
Request Body
All fields are optional. Only provided fields will be updated.UOM code (must be unique)
Full name
Display symbol
Decimal places (0-6)
Allow decimals
Active status
Response
Returns the updated UOM object with status200.
Errors
404- UOM not found422- Validation error403- Insufficient permissions
Delete Unit of Measure
Path Parameters
Unit of measure ID
Response
Errors
404- UOM not found409- Cannot delete - UOM is in use by item variants403- Insufficient permissions
List UOM Conversions
Query Parameters
Filter by source UOM ID
Filter by target UOM ID
Filter by active status
Items per page
Response
Example Response
Reading Conversion Factors:
A factor of 1000 from KG to GR means: 1 KG = 1000 GRTo convert the other direction, use the reciprocal: 1 GR = 0.001 KG
Create UOM Conversion
Request Body
Source UOM ID (must exist)
Target UOM ID (must exist, must differ from source)
Conversion factor (must be > 0). Formula:
to_qty = from_qty × factorAcceptable variance (0-1). For example, 0.02 means ±2% variance is acceptable in conversions.
Active status
Response
Returns the created conversion with source and target UOM details. Status201.
Errors
422- Validation error (invalid UOM IDs, negative factor, same from/to UOM)403- Insufficient permissions
Delete UOM Conversion
Path Parameters
UOM conversion ID
Response
Errors
404- Conversion not found403- Insufficient permissions
Understanding UOM Conversions
Conversion Direction
Conversions are directional. A conversion from KG to GR (factor 1000) allows:- Converting KG → GR (multiply by 1000)
- Converting GR → KG (divide by 1000, reciprocal)
Conversion Chains
The system can chain conversions:- If you have KG → GR and GR → MG
- The system can convert KG → MG by multiplying factors: 1000 × 1000 = 1,000,000
Precision and Rounding
- The system respects the
precisionfield of the target UOM - For example, if converting to a UOM with precision=2, the result is rounded to 2 decimal places
- Use
toleranceto define acceptable rounding variance
Use in Stock Movements
When registering stock movements, you can enter quantities in any UOM that has a conversion path to the variant’s base UOM:- Variant base UOM: KG
- You enter: 500 GR
- Conversion: KG → GR (factor 1000)
- System converts: 500 ÷ 1000 = 0.5 KG
- Stock updated: +0.5 KG
Best Practices
Standard UOM Codes
Standard UOM Codes
Use standardized codes for consistency:
- Weight:
KG,GR,MG,TON,LB,OZ - Volume:
L,ML,GAL,PT,QT - Length:
M,CM,MM,KM,IN,FT - Count:
PZA,CAJA,PAQ,DOC
Precision Guidelines
Precision Guidelines
- Weight/Volume ingredients: precision = 3 (0.001 kg = 1 gram)
- Count items (bottles, pieces): precision = 0 (integer only)
- Currency/prices: precision = 2 (cents)
Conversion Setup
Conversion Setup
Define conversions from smaller to larger units:
- GR → KG (factor 0.001) instead of KG → GR
- ML → L (factor 0.001) instead of L → ML
Testing Conversions
Testing Conversions
After creating conversions, test them by registering a small opening balance with alternate UOMs. Verify the converted quantity matches expectations.