Batch Receive
You can receive items at the target site, at end of the Transfer.
For this, first you need to open a warehouse session. This will assign a unique session id.
The response will return affected items with their current warehouse status upon success processing.
Once you are done with your Warehouse Operation you must close the session.
You can start the session only after you have fetched the schedule list.
On closing of warehouse session, system will sync all status changes to the Order.
POST
End Point: /warehouse/batchreturn/session/{sessionID}
Sample Request payload
{
"scandetails":
[
{
"referencenumber": 0,
"assetorproductid": "string",
"qty": 0,
"eventid": "string",
"orderid": "string",
"action": "Return"
"restrictreturn": "true"
}
]
}
If the restrictreturn flag is false
API will allow to receive the assets shipped on any order without restricting it to the specified transfer order in
orderID
field.
If the restrictreturn flag is true
The API will validate that the asset belongs to the transfer order specified in
orderID
field.If it does it will get received
Else, it will return an error indicating that the asset cannot be received under the specified order.
Sample Response Payload
If Returned/ Received Successful.
If Returned/ Received was not Successful.
R2_00018: Not a valid ID.
If Returned/ Received was not Successful.
Error: Item was not dispatched.
If Returned/ Received was not Successful.
Error: Item is not out on any Order.
If Returned/ Received was not Successful.
Warning: Item is filled on other Order.
If Returned/ Received was not Successful.
Error: Item is damaged.
If Returned/ Received was not Successful.
Error: Cannot return a Sold Item.
If Returned/ Received was not Successful.
Error: Entered item is not a Non-Serial Item.
If Returned/ Received was not Successful.
Error: For Non-Serial Items providing Event ID or Order ID is Mandatory.
If Returned/ Received was not Successful.
Error: Invalid Product ID or Asset ID..
If Returned/ Received was not Successful.
Warning: Detected [EXCESSQTY] excess quantities! You scanned [SCANNEDQTY] and we could return only [RETURNEDQTY].
f Returned/ Received was not Successful.
Warning: Detected [EXCESSQTY] excess quantities! You scanned [SCANNEDQTY] and we could receive only [RECEIVEDQTY].
If Returned/ Received was not Successful.
R2_00711: Oops! We were unable to perform the Operation
If Returned/ Received was not Successful.
R2_00744: Stored procedure execution failed.
If Returned/ Received was not Successful.
R2_00853: Invalid Quantity.
If Returned/ Received was not Successful.
Invalid request parameters
If Returned/ Received was not Successful.
Warning: Order is in use. Please close and reopen to proceed.
If Returned/ Received was not Successful.
R2_01258: Warehouse Operation Failed. Please try again.
If Returned/ Received was not Successful.
Error: Asset is not out on any Order.
If Returned/ Received was not Successful.
R2_02026: Too many inputs. Only one of the attributes - ‘Event ID’ or ‘Order ID' was expected.
If Returned/ Received was not Successful.
R2_02027: Session ID does not belong to the Current User.
If Returned/ Received was not Successful.
R2_02028: Invalid EventID.
If Returned/ Received was not Successful.
R2_02029: Invalid OrderID.
If Returned/ Received was not Successful.
R2_02032: Action ‘[Action]’ is not supported. Please refer to the documentation to know the list actions supported.
If Returned/ Received was not Successful.
Warning: Item not found to Receive.
If Returned/ Received was not Successful.
Error: Received failed. Item is planned to be received in [TO_TOSite] through [TO_ID].