For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update Inventory

It is used to 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
Body
DeltaQtynumberOptional
ItemNumberstringOptional
LocationDispstringOptional
NewQtynumberOptional
OldQtynumberOptional
Responses
200

OK

application/json
DatastringOptional
IsForwardRequestbooleanOptional
MessagestringOptional
MessageTitlestring · nullableOptional
ResultbooleanOptional
post/api/xerp/inventory/updateinventory
POST /api/xerp/inventory/updateinventory HTTP/1.1
Host: res.xorosoft.io
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 102

{
  "DeltaQty": 35,
  "ItemNumber": "BC",
  "LocationDisp": "MAIN WAREHOUSE - LOCATION-3PL",
  "NewQty": 0,
  "OldQty": 0
}
200

OK

{
  "Data": "",
  "IsForwardRequest": false,
  "Message": "Inventory uploaded succesfully",
  "MessageTitle": null,
  "Result": true
}

Last updated

Was this helpful?