Create lot-specific conversions
post
/fscmRestApi/resources/11.13.18.05/generateLotUnitOfMeasureConversions
Request
Header Parameters
-
Metadata-Context: string
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version: string
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
ConversionFactor: number
Calculated rate of conversion to convert a FromUOM value to the ToUOM value. For example, you can have a FromUOM of Dozen and a ToUOM of Each. The calculated rate for the conversion factor would be 12.
-
FromQuantity: number
Default Value:
1Value of a quantity to be converted from the FromUOM unit to the ToUOM unit. The default value is 1. If the value of FromQuantity is greater than 1, then the ToQuantity attribute will be populated with the calculated quantity. -
FromUOM: string
Name of the unit of measure the conversion is from. This attribute is required.
-
InputDateTime: string
Date and time used to construct the conversion factor. If not provided, the current date and time are used.
-
ItemId: string
Value that uniquely identifies the inventory item for this conversion calculation. This attribute is required.
-
LotNumber: string
Value that uniquely identifies the inventory lot for this conversion calculation. This attribute is required.
-
OrganizationId: string
Value that uniquely identifies the inventory organization for this conversion calculation. This attribute is required.
-
PrecisionFlag: boolean
Default Value:
trueContains one of the following values: true or false. If true, then the conversion calculations will be rounded to the precision stored as the value of profile option INV_QUANTITY_DECIMAL_PRECISION, that has a default value of 5. If false, then no precision is used to round the calculated value. The default value is false. -
ReturnMessage: string
Message that includes details about errors that occurred during the calculation of the conversion factor. The errors mostly occur due to missing conversions for the specified item.
-
ReturnMessageCode: string
Value of the error message if the ReturnStatus is false and the conversion failed to calculate.
-
ReturnStatus: string
Status of whether the conversion factor was successfully created based on the input values for FromUOM and ToUOM and the optional item identifier. Contains one of the following values: true or false. If true, then the conversion factor was successfully calculated. If false, then the conversion failed to calculate.
-
ToQuantity: number
Value of the FromQuantity multiplied by the conversion factor using precision, if requested.
-
ToUOM: string
Name of the unit of measure the conversion is being made to. This attribute is required.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Root Schema : generateLotUnitOfMeasureConversions-item-response
Type:
Show Source
object-
ConversionFactor: number
Calculated rate of conversion to convert a FromUOM value to the ToUOM value. For example, you can have a FromUOM of Dozen and a ToUOM of Each. The calculated rate for the conversion factor would be 12.
-
FromQuantity: number
Default Value:
1Value of a quantity to be converted from the FromUOM unit to the ToUOM unit. The default value is 1. If the value of FromQuantity is greater than 1, then the ToQuantity attribute will be populated with the calculated quantity. -
FromUOM: string
Name of the unit of measure the conversion is from. This attribute is required.
-
InputDateTime: string
Date and time used to construct the conversion factor. If not provided, the current date and time are used.
-
ItemId: string
Value that uniquely identifies the inventory item for this conversion calculation. This attribute is required.
-
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
LotNumber: string
Value that uniquely identifies the inventory lot for this conversion calculation. This attribute is required.
-
OrganizationId: string
Value that uniquely identifies the inventory organization for this conversion calculation. This attribute is required.
-
PrecisionFlag: boolean
Default Value:
trueContains one of the following values: true or false. If true, then the conversion calculations will be rounded to the precision stored as the value of profile option INV_QUANTITY_DECIMAL_PRECISION, that has a default value of 5. If false, then no precision is used to round the calculated value. The default value is false. -
ReturnMessage: string
Message that includes details about errors that occurred during the calculation of the conversion factor. The errors mostly occur due to missing conversions for the specified item.
-
ReturnMessageCode: string
Value of the error message if the ReturnStatus is false and the conversion failed to calculate.
-
ReturnStatus: string
Status of whether the conversion factor was successfully created based on the input values for FromUOM and ToUOM and the optional item identifier. Contains one of the following values: true or false. If true, then the conversion factor was successfully calculated. If false, then the conversion failed to calculate.
-
ToQuantity: number
Value of the FromQuantity multiplied by the conversion factor using precision, if requested.
-
ToUOM: string
Name of the unit of measure the conversion is being made to. This attribute is required.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.