← API Index


XUnit (v5)

Alternative Units

Change Note: Added internal Id

# Field Type Description
0 iid int item id reference
1 name string untranslated unit name
2 parts double how many of these alternative units make up ONE base unit of the item (e.g. 3.57 pieces per kg). The price of one alternative unit is therefore item price / parts.
3 type string unit type: S for pices, W for a weighted unit
4 unitid int iternal unit id reference (to units)
5 preferred bool true, if this is the preferred unit among alternatives
6 translatedName string translated unit name (translatable)
7 grams double optional weight in grams (for non standard units like 'spoon'
8 infoOnly bool this unit can not be selected, its just for display (in recipes or orders)
9 pcgid int internal reference

Used in endpoints

Referenced in skills