3.17 Add discount to operation
Connection URL
TEST URL | http://nap.dev.icash.bg/clientapi/v1/set-operation-discount |
( AL ) PRODUCTION URL | https://v1.icash.al/clientapi/v1/set-operation-discount |
( BG ) PRODUCTION URL | https://v5.icash.bg/clientapi/v1/set-operation-discount |
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 |
OperationID | Operation ID | Integer | YES |
Discount | Discount in % | DECIMAL(4,2)
0 – 99.99 |
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 | String (“OK”) | YES |
Example:
{ „nonce“: „1553076764“, „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“: „1553076763“, „status“: 0, „error_message“: „Wrong value for OperationID“ } |