Exchange Items through Warehouse API
This API endpoint allows you to Exchange Items on the Order Warehouse Schedule.
You can exchange the items as per the following rules…
Existing Item Type | Can be ‘Exchanged With’ | |||
---|---|---|---|---|
Serial Item | Non-Serial Item | Serial Kits | Non-Serial Kits | |
Serial Item |
|
|
|
|
Non Serial Item |
|
|
|
|
Serial Kit |
|
|
|
|
Non Serial Kit | Only ‘Child Items’ can be exchanged with peer ‘Child Items’ as per the above rules. |
POST
End Point: \warehouse\orders\schedules\{recordid}\session\{sessionid}\exchange
Sample request payload
{
warehouseschedulelinerecordids:
[
{
"warehouseschedulelinerecordid": "string"
}
],
exchangewith:
[
{
"sku": "string",
"qty": 0,
"keeporiginaldescription": true
}
]
}
Sample response payload
{
"warehouseschedulelines":
[
{
"recordid": "string",
"orderid": "string",
"scheduledatetime": "MM/dd/yyyy HH:mm",
"linenumber": 0,
"levelnumber": 0,
"isformedheader": true,
"status": "Hold",
"action": "Rent",
"productid": "string",
"assetid": "string",
"description": "string",
"isserial": true,
"iskitheader": true,
"shelflocation": "string",
"binnumber": "string",
"orderedquantity": 0,
"filledquantity": 0,
"shippedquantity": 0,
"returnedquantity": 0,
"containerid": "string",
"contractlinerecordid": "string",
"notes": "string"
}
]
}