Skip to main content

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​

CodeDescriptionResolution
1002Access deniedEnsure the JWT token contains the required service_id or provider_id
1013External ID not uniqueUse a unique externalId for each payment
1014Provider hierarchy violationThe service is not under the authorized Provider's hierarchy
1015Transaction is lockedPayment is already being processed — retry later

Payments​

CodeDescriptionResolution
2002Payment not foundCheck the payment id
2004Payment cannot be revertedRevert is not available for the current payment status
2005External ID not unique (revert)Use a unique externalId for the revert
2016Payment with this status not foundPayment is not in the expected status for the operation
2017Perform debit failedProcessing error on the bank side
2021Incorrect amountAmount is outside the allowed range
2025Missing required fieldAdd the missing required fields
2031Revert time limit exceededRevert period expired (sameDayRevertsOnly setting)
2032Revert amount exceeds limitRevert amount exceeds the available balance
2035Payment is not in HOLDCapture/void is only available for payments in HOLD status
2036Capture amount exceeds held amountCapture amount exceeds the authorized amount
6200Insufficient fundsInsufficient funds on the card

Cards​

CodeDescriptionResolution
4006Bank code not foundCard BIN not found in GlobalPay directory
4007Card holder not foundNo card registered with that token
4015Invalid PANInvalid card number
4016Cards with specified bank code blockedCards from this bank are blocked
4019Expiry date is incorrectInvalid card expiry date
4021OTP verification failedIncorrect OTP code
4029OTP expired or too many attemptsOTP expired or attempts exceeded — re-register the card

Service & Commission​

CodeDescriptionResolution
5036Service not found or disabledCheck serviceId and service status

HTTP Status Codes​

StatusMeaning
400Bad request — check the request body and error code
401Unauthorized — get a new token via /v1/merchant/auth
403Forbidden — no access to the resource
404Resource not found
500Internal server error — contact support