Details for a unit of measure included in a unit of measure group. Sage Intacct places related units of measure into groups. For example, the Count group includes related units of measure such as each, pair, and dozen. For more information, see About unit of measure groups.
Returns a collection with a key, ID, and link for each unit of measure. This operation is mostly for use in testing; use the query service to find units of measure that meet certain criteria and to specify the properties that you want in the response.
OK
Bad Request
{- "ia::result": [
- {
- "key": "135",
- "id": "GigaBytes",
- "href": "/objects/inventory-control/unit-of-measure/135"
}, - {
- "key": "136",
- "id": "KiloBytes",
- "href": "/objects/inventory-control/unit-of-measure/136"
}, - {
- "key": "137",
- "id": "MegaBytes",
- "href": "/objects/inventory-control/unit-of-measure/137"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Create one or more custom units of measure within an existing unit of measure group.
id required | string Unique identifier for this unit of measure. Example: "Hours" | ||
required | object Name of the unit of measure group that includes this unit. | ||
| |||
conversionFactor required | number <= 30 characters Number of base units for this unit of measure. Example: 2.5 | ||
abbreviation | string Unique abbreviation for this unit of measure. Example: "HR" | ||
numberOfDecimalPlaces | integer <= 1 characters Allowed number of decimal places for this unit of measure. should be integer less than 4 Example: 2 |
Created
Bad Request
{- "id": "GigaBytes",
- "abbreviation": "GB",
- "numberOfDecimalPlaces": 0,
- "parent": {
- "key": "17"
}, - "conversionFactor": 1024
}
{- "ia::result": {
- "key": "135",
- "href": "/objects/unit-of-measure/135"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified unit of measure.
key required | string System-assigned unique key for the unit of measure. Example: 135 |
OK
Bad Request
{- "ia::result": {
- "key": "135",
- "id": "GigaBytes",
- "abbreviation": "GB",
- "parent": {
- "key": "17",
- "id": "ComputerStorage",
- "href": "/objects/inventory-control-unit-of-measure/17"
}, - "conversionFactor": 1024,
- "numberOfDecimalPlaces": 0,
- "isBase": false,
- "audit": {
- "createdDateTime": "2021-09-15T16:46:11Z",
- "modifiedDateTime": "2021-09-15T16:46:11Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "href": "/objects/inventory-control/unit-of-measure/135"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing custom unit of measure by setting field values. Any fields not provided remain unchanged. Units of measure already in use cannot be modified.
key required | string System-assigned unique key for the unit of measure. Example: 135 |
abbreviation | string Unique abbreviation for this unit of measure. Example: "HR" | ||
numberOfDecimalPlaces | integer <= 1 characters Allowed number of decimal places for this unit of measure. should be integer less than 4 Example: 2 | ||
object Name of the unit of measure group that includes this unit. | |||
| |||
conversionFactor | number <= 30 characters Number of base units for this unit of measure. Example: 2.5 |
OK
{- "abbreviation": "GB"
}
{- "ia::result": {
- "key": "135",
- "href": "/objects/inventory-control/unit-of-measure/135"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a unit of measure. Units of measure that are provided with Sage Intacct and included in default unit of measure groups such as Time, Area, and Count cannot be deleted. Only custom units of measure that are not in use can be deleted.
key required | string System-assigned unique key for the unit of measure. Example: 135 |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}