Error codes
Elite Neo Bank APIs use standard HTTP status codes along with structured API responses to indicate request status, authentication issues, validation failures, transaction errors, and system-level failures. Merchants should always validate:- HTTP status codes
- API response codes
- Response messages
- Transaction status values
Standard Error Response Format
HTTP Status Codes
Authentication Errors
401 Unauthorized
Occurs when API authentication fails.Possible Reasons
- Invalid API key
- Incorrect signature
- Expired timestamp
- Missing authentication headers
Example Response
Invalid Wallet ID
403 Forbidden
Occurs when wallet credentials do not belong to the selected environment.Possible Reasons
- Sandbox wallet used in production
- Production wallet used in Sandbox
- Invalid merchant wallet
Example Response
Transaction Not Found
404 Not Found
Occurs when the requested transaction or order does not exist.Possible Reasons
- Invalid order ID
- Invalid payout order ID
- Transaction does not exist
- Incorrect merchant credentials
Example Response
Validation Errors
400 Bad Request
Occurs when request payload validation fails.Possible Reasons
- Missing required parameters
- Invalid JSON payload
- Incorrect request structure
- Invalid data format
Example Response
Insufficient Wallet Balance
422 Unprocessable Entity
Occurs when payout wallet balance is insufficient.Possible Reasons
- Wallet balance too low
- Transfer amount exceeds available funds
Example Response
Duplicate Transaction Errors
409 Conflict
Occurs when duplicate transaction references are used.Possible Reasons
- Duplicate
order_id - Duplicate
payout_order_id - Repeated payout initiation
Example Response
Rate Limit Errors
429 Too Many Requests
Occurs when API request limits are exceeded.Possible Reasons
- Excessive API traffic
- Aggressive retry loops
- Burst request patterns
Example Response
Internal Server Errors
500 Internal Server Error
Occurs when an unexpected server-side failure happens.Possible Reasons
- Temporary infrastructure issue
- Banking partner downtime
- Internal processing error
Example Response
Service Unavailable
503 Service Unavailable
Occurs during temporary maintenance or service interruptions.Possible Reasons
- Scheduled maintenance
- Banking partner downtime
- Temporary service outage
Example Response
Recommended Error Handling Workflow
- Validate HTTP status code
- Read API response message
- Log request and response
- Retry processing carefully if applicable
- Verify transaction status using APIs
- Avoid duplicate transaction creation
Retry Recommendations
Retry only for temporary errors such as:Logging Recommendations
Merchants should log:- Request payloads
- API responses
- Signature generation logs
- Webhook payloads
- Retry attempts
- Transaction references
- Debugging
- Reconciliation
- Compliance audits
- Issue tracking
Security Recommendations
- Never expose secret keys
- Always use HTTPS
- Validate webhook signatures
- Generate fresh timestamps
- Regenerate signatures for every retry
Best Practices
- Handle all API errors gracefully
- Avoid aggressive retry loops
- Use idempotent transaction IDs
- Verify transaction status server-side
- Maintain detailed transaction logs
