Error Codes
This page documents all error codes returned by the TxnCheck API, along with their meanings and recommended solutions.Error Response Format
All errors follow a consistent JSON format:HTTP Status Codes
Authentication Errors
Missing API Key
Invalid API Key
Merchant Deactivated
Invalid Signature
Expired Timestamp
Authorization Errors
Method Not Allowed
IP Not Whitelisted
Payment Errors
Insufficient Balance
Validation Errors
Invalid Mobile Number
Invalid VPA Format
VPA Array Size
Resource Errors
Request Not Found
Rate Limit Errors
Rate Limit Exceeded
Request Status Error Classes
When a verification request fails, theerror field contains details:
Example Failed Request
Server Errors
Internal Server Error
Error Handling Best Practices
Log All Errors
Log error responses with request IDs for debugging
Retry with Backoff
Implement exponential backoff for 429 and 5xx errors
Validate Before Sending
Validate inputs client-side before API calls
Handle Gracefully
Show user-friendly messages, not raw API errors
