Unfill the given asset or item already filled on a given order or in a container.
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 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/orders/{recordID}/session/{sessionID}/unfill
     
 
 
Sample request payload
        
        CODE
    
    {
 "scandetails":
               [
                {
                 "referencenumber": 0,
                 "warehouseschedulelinerecordid": "string",
                 "assetorproductid": "string",
                 "qty": 0,
                 "containerid": "string"
                }
               ]
} 
  
Sample Response Payload
If Scan is Successful.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
  "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"
    }
  ],
  "scanresults": [
    {
      "referencenumber": 0,
      "faultCode": 0,
      "faultString": "string",
      "hint": "string"
    }
  ]
}
 If Scan is not Successful. 
R2_00018: Not a valid ID.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
  "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"
    }
  ],
  "scanresults": [
    {
      "referencenumber": 0,
      "faultCode": 0,
      "faultString": "string",
      "hint": "string"
    }
  ]
}
 If Scan is not Successful. 
R2_00067: Order is in use. Try later.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
  "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"
    }
  ],
  "scanresults": [
    {
      "referencenumber": 0,
      "faultCode": 0,
      "faultString": "string",
      "hint": "string"
    }
  ]
}
 If Scan is not Successful. 
R2_00279: Physical Inventory count is in Progress.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
  "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"
    }
  ],
  "scanresults": [
    {
      "referencenumber": 0,
      "faultCode": 0,
      "faultString": "string",
      "hint": "string"
    }
  ]
}
 If Scan is not Successful. 
R2_00306: Invalid Container ID.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
  "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"
    }
  ],
  "scanresults": [
    {
      "referencenumber": 0,
      "faultCode": 0,
      "faultString": "string",
      "hint": "string"
    }
  ]
}
 If Scan is not Successful. 
If any error is found in request while processing it.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
  "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"
    }
  ],
  "scanresults": [
    {
      "referencenumber": 0,
      "faultCode": 0,
      "faultString": "string",
      "hint": "string"
    }
  ]
}
 If Scan is not Successful. 
Invalid request parameters.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
 "faultCode": 0,
 "faultString": "string",
 "faultdetails":
   {
    "additionalProp1": {},
    "additionalProp2": {},
    "additionalProp3": {}
  }
}
 If Scan is not Successful. 
Unable to process request because of some invalid details in request.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
 "faultCode": 0,
 "faultString": "string",
 "faultdetails":
   {
    "additionalProp1": {},
    "additionalProp2": {},
    "additionalProp3": {}
  }
}
 If Scan is not Successful. 
Internal Error. Message will be contextual.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
 "faultCode": 0,
 "faultString": "string",
 "faultdetails":
   {
    "additionalProp1": {},
    "additionalProp2": {},
    "additionalProp3": {}
  }
}
 If Scan is not Successful. 
recordID is incorrect. Please Check.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
 "faultCode": 0,
 "faultString": "string",
 "faultdetails":
   {
    "additionalProp1": {},
    "additionalProp2": {},
    "additionalProp3": {}
  }
}
 If Scan is not Successful. 
SessionID is incorrect. Please Check.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
 "faultCode": 0,
 "faultString": "string",
 "faultdetails":
   {
    "additionalProp1": {},
    "additionalProp2": {},
    "additionalProp3": {}
  }
}
 If Scan is not Successful. 
R2_01258: Warehouse Operation Failed. Please try again.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
 "faultCode": 0,
 "faultString": "string",
 "faultdetails":
   {
    "additionalProp1": {},
    "additionalProp2": {},
    "additionalProp3": {}
  }
}
 If Scan is not Successful. 
R2_01259: Order is unlocked. Please close and reopen to proceed.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
  "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"
    }
  ],
  "scanresults": [
    {
      "referencenumber": 0,
      "faultCode": 0,
      "faultString": "string",
      "hint": "string"
    }
  ]
}
 If Scan is not Successful. 
R2_01319: Order is in use for Filling/ Shipping/ Receiving in Warehouse.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
  "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"
    }
  ],
  "scanresults": [
    {
      "referencenumber": 0,
      "faultCode": 0,
      "faultString": "string",
      "hint": "string"
    }
  ]
}
 If Scan is not Successful. 
R2_01969: This task belongs to the unsupported schedule type .
Your 'Request' is responded with the following payload
        
        CODE
    
    {
 "faultCode": 0,
 "faultString": "string",
 "faultdetails":
   {
    "additionalProp1": {},
    "additionalProp2": {},
    "additionalProp3": {}
  }
}
 If Scan is not Successful. 
R2_01999: Invalid Scan. A valid value is expected for one of these attributes - 'warehouseschedulelinerecordid' or 'assetorproductid', or 'containerid'.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
  "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"
    }
  ],
  "scanresults": [
    {
      "referencenumber": 0,
      "faultCode": 0,
      "faultString": "string",
      "hint": "string"
    }
  ]
}
 If Scan is not Successful. 
R2_02000: Invalid Scan. Only one of the value from - 'warehouseschedulelinerecordid' or 'assetorproductid', or 'containerid' is expected.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
  "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"
    }
  ],
  "scanresults": [
    {
      "referencenumber": 0,
      "faultCode": 0,
      "faultString": "string",
      "hint": "string"
    }
  ]
}
 If Scan is not Successful. 
R2_02023: No valid Item(s) found to Un-fill
Your 'Request' is responded with the following payload
        
        CODE
    
    {
  "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"
    }
  ],
  "scanresults": [
    {
      "referencenumber": 0,
      "faultCode": 0,
      "faultString": "string",
      "hint": "string"
    }
  ]
}
 If Scan is not Successful. 
R2_02024: No valid Item(s) found to Un-fill in this Container.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
  "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"
    }
  ],
  "scanresults": [
    {
      "referencenumber": 0,
      "faultCode": 0,
      "faultString": "string",
      "hint": "string"
    }
  ]
}
 If Scan is not Successful. 
R2_02025: Some of the Item(s) in this Container could not be Un-filled.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
  "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"
    }
  ],
  "scanresults": [
    {
      "referencenumber": 0,
      "faultCode": 0,
      "faultString": "string",
      "hint": "string"
    }
  ]
}
 If Scan is not Successful. 
R2_02030: You will not be able to update this Asset, since it is being modified by another User.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
  "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"
    }
  ],
  "scanresults": [
    {
      "referencenumber": 0,
      "faultCode": 0,
      "faultString": "string",
      "hint": "string"
    }
  ]
}
 If Scan is not Successful. 
R2_02031: You will not be able to update this Item, since it is being modified by another User.
Your 'Request' is responded with the following payload
        
        CODE
    
    {
  "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"
    }
  ],
  "scanresults": [
    {
      "referencenumber": 0,
      "faultCode": 0,
      "faultString": "string",
      "hint": "string"
    }
  ]
}