What value needs to be passed for "DemandSourceLineNumber" while creating the TO Reservation
Summary:
Hi Experts,
Hope you all are doing well.
we have one business requirement to create reservation once the Transfer Order gets created in Oracle. We found below REST API to achieve the business requirement. But we are getting the error "The value of the attribute {DEMANDSOURCELINENUMBER=<>} isn't valid" . We are passing TransferOrderLineNumber here and still getting the issue.
API - /fscmRestApi/resources/11.13.18.05/inventoryReservations
Payload -
{
"OrganizationCode": "<SourceOrganizationCode>",
"ItemNumber": "<ItemNumber>",
"DemandSourceType": "Transfer order",
"DemandSourceHeaderNumber": <TransferOrderNumber>,
"DemandSourceLineNumber": <TransferOrderLineNumber>,
"SupplySourceType": "On hand",
"SubinventoryCode": "<SubinventoryCode>",
"PrimaryReservationQuantity": 1,
"PrimaryUOMCode": "Ea",
"ReservationQuantity": 1,
"ReservationUOMCode": "Ea"
}
Need your immediate help to resolve this issue.
What value needs to be passed under "DemandSourceLineNumber" field while creating the reservation for the TransferOrder?