POST Stock On Hand
https://jerrytest.ewe.com.au/eweApi/ewe/api/getStock
You can use get stock API to pull the up-to-date inventory details.
Request
Attribute | Type | Required | Description |
---|---|---|---|
USERNAME | string | Required | Jerry username |
APIPASSWORD | string | Required | API password |
UPCItems | list | Required | UPC array |
UPCItems
Attribute | Type | Required | Description |
---|---|---|---|
UPC | string | Required | Barcode |
SKU | string | Optional | Stock Keeping Unit |
Request Example
Content-Type application/javascript
Batch query
{
"USERNAME": "DUMMY DUCK",
"APIPASSWORD": "xxxxxxxxxxxxxx",
"UPCItems": [
{
"UPC": "9887263221",
"SKU": ""
},
{
"UPC": "1000003",
"SKU": ""
}
]
}
Full query (set UPC and SKU to all)
{
"USERNAME": "DUMMY DUCK",
"APIPASSWORD": "xxxxxxxxxxxxxx",
"UPCItems": [
{
"UPC": "all",
"SKU": "all"
}
]
}
Response
Attribute | Type | Description |
---|---|---|
Payload | array | Valid data load. The payload type varies according to the request |
Status | integer | See Status Codes |
Message | string | Text messages. If a complex error occurs, make a brief explanation |
Payload
Attribute | Type | Description |
---|---|---|
SkuNameC | string | SKU name in Chinese |
SkuNameE | string | SKU name in English |
Brand | string | Brand |
Spec | string | Specification |
UPC | string | Barcode |
Stock | integer | Products with good condition |
LockStock | integer | Defective products |
AllStock | integer | Total stock |
SKU | string | SKU |
Status Codes
Status Code | Type | Description |
---|---|---|
0 | SUCCESS | Successful |
1 | FAILURE | Failed |
Response Example
{
"Payload": [
{
"SkuNameC": "Shoes",
"SkuNameE": "Shoes",
"Brand": "Nike",
"Spec": "each",
"UPC": "9887263221",
"Stock": 6,
"LockStock": 0,
"AllStock": 6,
"SKU": "Shoes"
},
{
"SkuNameC": "Pillow",
"SkuNameE": "Pillow",
"Brand": "",
"Spec": "",
"UPC": "1000003",
"SKU": "Pillow"
}
],
"Status": 0,
"Message": "Succeed! "
}