Errors
All errors are returned in the ErrorResponse format:
{
"code": "2025",
"detail": "Missing some required field",
"path": "/v2/payment/init",
"timestamp": "2026-01-01 12:00:00"
}
Use the numeric code field, not the detail text.
Error Codes
Authorization & Access
| Code | Description | Resolution |
|---|---|---|
1002 | Access denied | Ensure the JWT token contains the required service_id or provider_id |
1013 | External ID not unique | Use a unique externalId for each payment |
1014 | Provider hierarchy violation | The service is not under the authorized Provider's hierarchy |
1015 | Transaction is locked | Payment is already being processed — retry later |
Payments
| Code | Description | Resolution |
|---|---|---|
2002 | Payment not found | Check the payment id |
2004 | Payment cannot be reverted | Revert is not available for the current payment status |
2005 | External ID not unique (revert) | Use a unique externalId for the revert |
2016 | Payment with this status not found | Payment is not in the expected status for the operation |
2017 | Perform debit failed | Processing error on the bank side |
2021 | Incorrect amount | Amount is outside the allowed range |
2025 | Missing required field | Add the missing required fields |
2031 | Revert time limit exceeded | Revert period expired (sameDayRevertsOnly setting) |
2032 | Revert amount exceeds limit | Revert amount exceeds the available balance |
2035 | Payment is not in HOLD | Capture/void is only available for payments in HOLD status |
2036 | Capture amount exceeds held amount | Capture amount exceeds the authorized amount |
6200 | Insufficient funds | Insufficient funds on the card |
Cards
| Code | Description | Resolution |
|---|---|---|
4006 | Bank code not found | Card BIN not found in GlobalPay directory |
4007 | Card holder not found | No card registered with that token |
4015 | Invalid PAN | Invalid card number |
4016 | Cards with specified bank code blocked | Cards from this bank are blocked |
4019 | Expiry date is incorrect | Invalid card expiry date |
4021 | OTP verification failed | Incorrect OTP code |
4029 | OTP expired or too many attempts | OTP expired or attempts exceeded — re-register the card |
Service & Commission
| Code | Description | Resolution |
|---|---|---|
5036 | Service not found or disabled | Check serviceId and service status |
HTTP Status Codes
| Status | Meaning |
|---|---|
400 | Bad request — check the request body and error code |
401 | Unauthorized — get a new token via /v1/merchant/auth |
403 | Forbidden — no access to the resource |
404 | Resource not found |
500 | Internal server error — contact support |