Represents the various units of measurement known as UnitsOfMeasurements in the API context and used for defining product quantities in the product interface.
Each unit of measurement is associated with a specific Product Category and includes metadata such as Abbreviation, Number of Decimals, and Name to provide detailed descriptions for quantities.
The units of measurement are crucial for ensuring accuracy in product inventory and pricing calculations.
UnitsOfMeasurements
This feature is currently under development and, although not available in the current version, its preliminary documentation is provided to give you a preview of the enhancements that will be included in an upcoming update.
HTTP | Operation | Type | Object |
---|---|---|---|
Query | unitsOfMeasurements filtered by id Why? |
||
Query | unitsOfMeasurements |
Description
Header
Key | Value |
---|---|
Authorization |
Bearer Current access Token How to find? |
X-TenantId |
Current tenant id How to find? |
X-OrganizationId |
Current organization Id How to find? |
x-api-key |
Primary or secondary subscription key of your app How to find? |
unitsOfMeasurements
Fields | Type | Description |
---|---|---|
id |
UUID | Id |
active | Boolean | Indicates if active |
category |
|
Product Category |
unitOfMeasurementDetails |
Unit of measurement Detail | Fields of Unit of Measurement Detail |
|
UUID | Unit of Measurement Detail ID |
|
Integer | Number of decimals |
|
|
Enum for Name and Abbreviations |
unitOfMeasurementDetailsId | UUID | Unit of Measurement Detail ID |
Info
- Active:
Enables or disables the use of a unit of measurement.
This setting can be configured from the Settings interface in Sage Active. - Category:
Indicates whether a unit of measurement is available for a Product-type item, a Service-type item, or both.
This setting can also be configured from the Settings interface. - UnitOfMeasurementDetails:
Represents the details of a unit of measurement, including the fieldsid
,numberOfDecimals
, andname
. These values are non-editable.
The number of decimals specifies the precision for quantities entered in sales documents. -
Name - Abbreviations:
As the API returns enumeration values but does not return their localized translations, unitsOfMeasurements does not return the abbreviations, which, like the unit labels, are localizations of the enumerations.
Below are the English abbreviations values for each unit:- NOT_UNIT:
- CUBIC_METRE: m³
- DAY: DAYS
- GRAM: G
- HOUR: HR
- KILOGRAM: KG
- KILOMETRE: KM
- LITRE: L
- METRE: M
- MILLIGRAM: MG
- MILLILITRE: ML
- MONTH: MONTHS
- NIGHT: NIGHTS
- PACK: PACKS
- PERCENTAGE: %
- SQUARE_METRE: M²
- TONNE: T
- UNIT: UNITS