Click-API – Error
EXAMPLES OF RESPONSES
The service provider returns a response in JSON format with the following parameters:
In case of a successful operation
# | Parameter name | Data type | Description |
---|---|---|---|
1 | error | int | Operation status code. If successful, the operation code must be equal to “0” |
2 | error_note | varchar | Description of the status |
3 | click_trans_id | int | Payment ID in CLICK system |
4 | merchant_trans_id | varchar | Payment ID in Online Store systems |
5 | merchant_prepare_id или merchant_confirm_id |
int | Payment ID in the billing system of the supplier for confirmation |
In case of an error with the operation
# | Parameter name | Data type | Description |
---|---|---|---|
1 | error | int | Operation status code. If successful, the operation code must be equal to “0” |
2 | error_note | varchar | Description of the status |
ERRORS RETURNED BY CLICK SYSTEM
# | error | error_note | Description |
---|---|---|---|
1 | 0 | Success | |
2 | < 0 | Description of the error | When receiving a negative error code, the supplier should cancel the payment in the billing system and return the error code -9 |
ERRORS RETURN BY SUPPLIERS SYSTEM
# | error | error_note | Description |
---|---|---|---|
1 | 0 | Success | Successful request |
2 | -1 | SIGN CHECK FAILED! | Signature verification error |
3 | -2 | Incorrect parameter amount | Invalid payment amount |
4 | -3 | Action not found | The requested action is not found |
5 | -4 | Already paid | The transaction was previously confirmed (when trying to confirm or cancel the previously confirmed transaction) |
6 | -5 | User does not exist | Do not find a user / order (check parameter merchant_trans_id) |
7 | -6 | Transaction does not exist | The transaction is not found (check parameter merchant_prepare_id) |
8 | -7 | Failed to update user | An error occurred while changing user data (changing account balance, etc.) |
9 | -8 | Error in request from click | The error in the request from CLICK (not all transmitted parameters, etc.) |
10 | -9 | Transaction cancelled | The transaction was previously canceled (When you attempt to confirm or cancel the previously canceled transaction) |