3.19 Add payment to operation
Connection URL
TEST URL | http://nap.dev.icash.bg/clientapi/v1/add-operation-payment |
( AL ) PRODUCTION URL | https://v1.icash.al/clientapi/v1/add-operation-payment |
( BG ) PRODUCTION URL | https://v5.icash.bg/clientapi/v1/add-operation-payment |
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 |
PayTypeID | Indentificator на метоYES на плащаNo | Integer | YES |
PaymentSum | Сума | DECIMAL(10,2) | YES |
* – ако няма SaleItemID Required трябва YES има SaleitemInventoryID и обратно
JSON response on success
Param | Description | Field type | Required |
nonce | Nonce from request | Integer | YES |
status | Request status | Integer
1 – successful |
YES |
data | Result (result) | String (“OK”) | YES |
Indentificator на плащаNoто ( PaymentID) | Integer | YES |
Example:
{ „nonce“: „1553075920“, „status“: 1, „data“: { „result“: „OK“, „PaymentID“: „804“ } } |
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“: „1553075918“, „status“: 0, „error_message“: „Wrong value for OperationID“ } |