We’re excited to announce that the latest information is now available on our new site, the Ginesys One Wiki!. Visit the site for up-to-date resources and insights. We look forward to continuing to support you there!
We’re excited to announce that the latest information is now available on our new site, the Ginesys One Wiki!. Visit the site for up-to-date resources and insights. We look forward to continuing to support you there!
POST Inventory
.This call allows you to change the stock of a certain SKU.
End Point
https://app.browntape.com/0.1/skus/edit.json
Parameters
?username =XXXXXXXXXX
&auth_string=YYYYYYYYY
&adjust_pending =true/false (optional)
&adjust_back_orders=true/false (optional)
Post Parameter
{
data: [
{
"custom_code": "XYZ",
"stock": 23,
"warehouse_id": 1297(optional),
"hsn_code": 1234,
"brand": "Arrow"
},
{
"custom_code": "LMN",
"stock": 22,
"warehouse_id": 1341(optional),
"hsn_code": 1234,
"brand": "USPA"
},
{
"custom_code": "ABC",
"stock": 27,
"warehouse_id": 1234(optional),
"hsn_code": 1234,
"brand": "Raymond"
}
]
}
Note :
If adjust_pending parameter set to true, Browntape will deduct the pending_dispatch_stock before saving the stock. If set to false, then the stock will be stored as is.
If adjust_back_orders param is set to true, BT will deduct the open back orders (Myntra & Jabong) for that SKU before saving the stock.
Pending Dispatch Stock corresponds to the stock deducted for the orders received for a particular custom_code and those orders are pending to be shipped.
Eg:
SNo | custom_code | Current BT stock | Pending Dispatch Stock | API Stock | Adjust_Pending | Final Stock |
---|---|---|---|---|---|---|
1 | ABC_210 | 80 | 0 | 100 | TRUE | 100 |
2 | ABC_123 | 50 | 0 | 100 | FALSE | 100 |
3 | ABC_456 | 70 | 10 | 100 | TRUE | 90 |
4 | ABC_789 | 30 | 10 | 100 | FALSE | 100 |
Stock field should be numeric (only) and cannot be empty
Response
{
"success": "true",
"message": [
{
"XYZ": "Stock reset to 23"
},
{
"LMN": "Stock reset to 22"
},
{
"ABC": "Stock reset to 27"
}
],
"Skus": "3 Skus update successfully"
}