Errors
Every error answers with a non-2xx HTTP status and this body:
{ "success": false, "message": "Invalid access key or secret key" }{ "status": false, "message": "Invalid access key or secret key" }Show message in your logs. Decide what to do from the HTTP status, and for 400 and 409 from the message.
| HTTP | Meaning | Retry? |
|---|---|---|
| 400 | A field is missing or invalid. | No: fix the request. |
| 401 | Wrong or missing access key or secret key. | No: check your keys. |
| 403 | The transaction belongs to another merchant, or the request came from somewhere not allowed. | No. |
| 404 | No such transaction, or no such endpoint. | No. |
| 409 | Conflicts with the current state: the orderId was used with different details, new payments are paused, or the pay-in can't take a UTR any more. | No. |
| 415 | The body isn't JSON: send Content-Type: application/json. | No: fix the request. |
| 500 | Something failed on our side (Something went wrong). | Yes, with backoff. Pay-in creation is safe to retry with the same orderId. |
Messages #
| Message | HTTP | Where |
|---|---|---|
Access key is required / Secret key is required | 400 | pay-ins |
orderId is required, userId is required, webhookUrl is required, redirectUrl is required | 400 | create |
transactionId is required, utrNumber is required | 400 | status, UTR |
Invalid amount | 400 | create, payouts |
A valid HTTPS URL is required | 400 | create, payouts |
Invalid UTR number | 400 | UTR |
This payment is already accepted | 400 | UTR |
A payment has already been accepted with this UTR number | 400 | UTR |
Invalid request / Expected a JSON object | 400 | any |
Invalid access key or secret key | 401 | any |
Access key and secret key are required | 401 | payouts |
Transaction does not belong to this merchant | 403 | status, UTR |
Transaction not found | 404 | status, UTR |
Order ID already used with different details | 409 | create, payouts |
New payments are paused for this merchant | 409 | create |
Payment cannot be submitted in this state | 409 | UTR |
Expected JSON | 415 | any POST |
Something went wrong | 500 | any |