3.23. Quantity of item
Connection URL
TEST URL | http://nap.dev.icash.bg/clientapi/v1/get-sale-item-qty |
( AL ) PRODUCTION URL | https://v1.icash.al/clientapi/v1/get-sale-item-qty |
( BG ) PRODUCTION URL | https://v5.icash.bg/clientapi/v1/get-sale-item-qty |
POST REQUEST
Param | Description | Field type | Required. |
api_key | API Key | String | YES |
nonce | Nonce | Integer | YES |
signature | Signature | String | YES |
ses | Session indentificator | String | YES |
SaleItemInventoryID | Inventory ID | String(20) | YES |
StoreID | Store ID | Integer | YES |
JSON response on success
Param | Description | Field type | Required |
nonce | Nonce from request | Integer | YES |
status | Request status | Integer
1 – successful |
YES |
data | Result | item | YES |
Structure of type “item”
Param | Description | Field type | Required |
SaleItemInventoryID |
Inventory number | String(20) | NO |
StoreID |
Store ID | Integer | YES |
Qty | Quantity | float | YES |
Example:
{ „nonce“: „1567601227“, „status“: 1, „data“: { „SaleItemInventoryID“: „001172“, „StoreID“: 1, „Qty“: 8 } } |
JSON response on unsuccess
Param | Description | Field type | Required |
nonce | Nonce from request | Integer | YES |
status | Request status | Integer
0 – unsuccess request |
YES |
error_message | Error Description | String | YES |
Example:
{ „nonce“: „1552990901“, „status“: 0, „error_message“: „Session expired“ } |