Batch Update Inventory
It is used to batch update the inventory by using request format.
Field
Data Type
Default Value
Description
ItemNumber
string
NA
SKU number.
DeltaQty
decimal
0
Instead of sending a new and old value for inventory an adjustment value can be sent.
OldQty
decimal
0
The original stock level that the client believes the product variant has. This should be sent to avoid a race condition when the item being adjusted is simultaneously sold online.
NewQty
decimal
0
The number of items in stock for this product variant.
LocationDisp
string
NA
Warehouse 3PL location (Provided by the client).
Note: If New/Old Qty and Delta Qty are both provided then New/Old Qty will take priority and Delta Qty will be ignored.
post
Authorizations
AuthorizationstringRequired
Bodyobject[]
DeltaQtynumberRequired
ItemNumberstringRequired
LocationDispstringRequired
NewQtynumberRequired
OldQtynumberRequired
Responses
200
OK
application/json
DatastringOptional
IsForwardRequestbooleanOptional
MessagestringOptional
MessageTitlestring · nullableOptional
ResultbooleanOptional
post/api/xerp/inventory/batchupdateinventory
POST /api/xerp/inventory/batchupdateinventory HTTP/1.1
Host: res.xorosoft.io
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 215
[
{
"DeltaQty": 20,
"ItemNumber": "BC",
"LocationDisp": "MAIN WAREHOUSE - LOCATION-3PL",
"NewQty": 20,
"OldQty": 0
},
{
"DeltaQty": 20,
"ItemNumber": "Raw Item",
"LocationDisp": "MAIN WAREHOUSE - LOCATION-3PL",
"NewQty": 21,
"OldQty": 0
}
]200
OK
{
"Data": "",
"IsForwardRequest": false,
"Message": "Inventory uploaded succesfully",
"MessageTitle": null,
"Result": true
}Last updated
Was this helpful?