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.
Subscription | Inventory Control, Order Entry, or Purchasing |
---|---|
User ype | Business, CRM, Employee, Warehouse |
Permissions | List, View Units of Measure |
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.
Subscription | Inventory Control, Order Entry, or Purchasing |
---|---|
Configuration | Inventory Control, Order Entry, Purchasing must be enabled for custom units of measure to add, edit, or delete units of measure. |
User ype | Business |
Permissions | List, View, Add Units of Measure |
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.
Subscription | Inventory Control, Order Entry, or Purchasing |
---|---|
User ype | Business, CRM, Employee, Warehouse |
Permissions | List, View Units 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.
Subscription | Inventory Control, Order Entry, or Purchasing |
---|---|
Configuration | Inventory Control, Order Entry, or Purchasing must be enabled for custom units of measure to add, edit, or delete units of measure. |
User ype | Business |
Permissions | List, View, Edit Units of Measure |
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.
Subscription | Inventory Control, Order Entry, or Purchasing |
---|---|
Configuration | Inventory Control, Order Entry, or Purchasing must be enabled for custom units of measure to add, edit, or delete unit of measure groups. |
User ype | Business |
Permissions | List, View, Delete Units of Measure |
key required | string System-assigned unique key for the unit of measure. Example: 135 |
No Content
Bad Request
{- "ia::error": {
- "code": "invalidRequest",
- "message": "Malformed URL",
- "supportId": "sQrM9%7EYdh5oDEWVb80mrn9xuHjoAAAABBQ",
- "details": [
- {
- "code": "invalidRequest",
- "message": "The content type is not valid",
- "correction": "TODO"
}
]
}
}
Queries an object for filtered data.
object | string Object type to query, in the form Example: "inventory-control/unit-of-measure" | ||||||||
fields | Array of strings List of fields to include in the response. Can be any combination of these:
Example: ["key","id","max:vendor.creditLimit"] | ||||||||
Array of equal (object) or not equal (object) or less than (object) or (less than or equal (object)) or greater than (object) or (greater than or equal (object)) or in (object) or not in (object) or between (object) or not between (object) or contains (object) or does not contain (object) or starts with (object) or does not start with (object) or ends with (object) or does not end with (object) Filter conditions to select the objects to return based on their field values. You use operators and conditions to build your filter, such as Example: [{"$eq":{"status":"active"}},{"$gt":{"totalDue":"1000"}},{"$contains":{"name":"Acme"}}] | |||||||||
Array Any of: Field value must be equal to this specified value. For date fields, you can use these macro values that are relative to the current date or the
These are most useful for queries that you want to save and use repeatedly, such as for views or reports. Just change the For example,
| |||||||||
filterExpression | string Default: "and" Logical operators to apply when there are multiple filter conditions. The conditions in the Shortcuts:
Example: "(1 and 2) or 3" | ||||||||
| |||||||||
Array of objects Set the order of the results by specifying field names to sort by and whether they should be in ascending or descending order. Example: [{"totalDue":"asc"},{"lastPaymentMadeDate":"desc"}] | |||||||||
Array
| |||||||||
start | integer First record of the result set to include in the response. Example: 1 | ||||||||
size | integer Number of records to include in the response. Example: 100 |
OK
Bad Request
{- "object": "inventory-control/unit-of-measure",
- "filters": [
- {
- "$eq": {
- "isBase": true
}
}
], - "fields": [
- "key",
- "id",
- "href"
], - "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "key": "7",
- "id": "Days",
- "href": "/objects/inventory-control/unit-of-measure/7"
}, - {
- "key": "13",
- "id": "Each",
- "href": "/objects/inventory-control/unit-of-measure/13"
}, - {
- "key": "85",
- "id": "Gigabytes",
- "href": "/objects/inventory-control/unit-of-measure/85"
}, - {
- "key": "16",
- "id": "Inch",
- "href": "/objects/inventory-control/unit-of-measure/16"
}, - {
- "key": "24",
- "id": "Ounce",
- "href": "/objects/inventory-control/unit-of-measure/24"
}, - {
- "key": "61",
- "id": "Seconds",
- "href": "/objects/inventory-control/unit-of-measure/61"
}, - {
- "key": "43",
- "id": "Square Inch",
- "href": "/objects/inventory-control/unit-of-measure/43"
}, - {
- "key": "30",
- "id": "Teaspoon",
- "href": "/objects/inventory-control/unit-of-measure/30"
}
], - "ia::meta": {
- "totalCount": 8,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}