Create Units of Measure Usages
You may want to define stocking unit of measures (UOM) at the organization level, subinventory level, or both. You can use the unitOfMeasureUsages resource to create units of measure usages within your organization. Using this resource you can store the same item in multiple stocking UOM or automatically default the stocking UOM when performing inventory transactions. In addition to creating units of measure usages, use this resource to view, update, and delete units of measures usages.
Here's a typical application processing flow for the scenarios:
-
You create units of measure usages at the organization level
-
You create units of measure usages at the subinventory level
-
You view existing units of measure usages
-
You update existing units of measure usages
-
You delete existing units of measure usages
Create Unit of Measure Usage for an Item
In this scenario, you create a unit of measure usages for an item at the inventory organization and subinventory level.
Example URL
Use this resource URL format.
POST
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/unitOfMeasureUsages"
Example Request
Here's an example of the request body in JSON format.
{ "OrganizationCode": "V1", "Item": "INV-101", "Subinventory": "ABCSUB01", "UnitOfMeasure": "Box of 5" }
Example Response
Here's an example of the response body in JSON format.
{ "UOMUsageId": 300100182825083, "CreatedBy": "WHSE_MGR_ALL_INV_ORGS", "CreationDate": "2019-06-07T23:25:36+00:00", "LastUpdatedBy": "WHSE_MGR_ALL_INV_ORGS", "LastUpdateDate": "2019-06-07T23:25:36.093+00:00", "OrganizationId": 204, "OrganizationCode": "V1", "OrganizationName": "Vision Operations", "ItemId": 663914, "Item": "INV-101", "ItemDescription": "Lot Item", "Subinventory": "ABCSUB01", "UOMUsageTypeCode": "STOCKING", "UOMUsageType": "Stocking", "UOMCode": "BX5", "UnitOfMeasure": "Box of 5", "links": [ { "rel": "self", "href": "https://servername/fscmRestApi/resources/version/unitOfMeasureUsages/300100182825083", "name": "unitOfMeasureUsages", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel": "canonical", "href": "https://servername/fscmRestApi/resources/version/unitOfMeasureUsages/300100182825083", "name": "unitOfMeasureUsages", "kind": "item" } ] }