Just sharing some info about REST endpoint: … v1/Erp.BO.OrderAllocSvc/AutoReserve
to auto reserve a Transfer Order. I already use this same endpoint to auto reserve regular orders to the PartAlloc–it’s as if the user was going through Fulfillment Workbench to reserve-- and it appears you can also use it to reserve transfer orders.
This is the payload (remove the inline comments to get an actual legit payload):
{
"ds": {
"SlimOrderAlloc": [
{
"Company": "SD",
"DemandType": "Transfer",
"DoNotShipAfterDate": null,
"DoNotShipBeforeDate": null,
"FulfillmentSeq": 0,
"JobNum": "",
"AssemblySeq": 0,
"MtlSeq": 0,
"OrderLine": 0,
"OrderNum": 0,
"OrderRelNum": 0,
"ReservePriorityOverride": 0,
"SelectedForAction": true,
"TFOrdNum": "013951", /* <--- transfer order here -- it's a string*/
"TFOrdLine": 4, /* <--- transfer order line here --- it's an int */
"RowMod": "A"
}
]
},
"cIPWhseList": "WARHOUSENAME", /* set this to your warehouse*/
"cWhseType": "all" /* I always set is as 'all' I don't know what any other options are*/
}
However make sure in your POST headings you set the correct plant. I found that I was getting an error about “invalid site” if I didn’t set the plant.
Maybe this can help someone else too struggling with auto reservations via REST.