3.11. Change prices/params per store
Connection URL
TEST URL | http://nap.dev.icash.bg/clientapi/v1/edit-sale-item-by-store |
( AL ) PRODUCTION URL | https://v1.icash.al/clientapi/v1/edit-sale-item-by-store |
( BG ) PRODUCTION URL | https://v5.icash.bg/clientapi/v1/edit-sale-item-by-store |
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 number | String(20) | YES/YES |
StoreID | Store ID | Integer | YES |
SaleItemSellPrice | Sell price | DECIMAL(14,6) | YES |
SaleItemForbidSupplements | Forbid for delivery | ENUM(0,1)
Default 0 |
No |
SaleItemForbidSales | Forbid for sale | ENUM(0,1)
Default 0 |
No |
SaleItemForbidRefund | Forbid for return | ENUM(0,1)
Default 0 |
No |
JSON response on success
Param | Description | Field type | Required |
nonce | Nonce from request | Integer | YES |
status | Request status | Integer
1 – successful |
YES |
data | Result | String (“OK”) | YES |
Example:
{ „nonce“: „1553004726“, „status“: 1, „data“: „OK“ } |
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“: „1553003970“, „status“: 0, „error_message“: „SaleItemInventoryID is mandatory“ } |