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
- /api/assortment13
- /api/item1
- /api/items20
- /api/items21
- /api/items22
- /api/items23
- /api/order27
- /api/order28
- /api/order29
- /api/search2