API Errors
This guide helps you understand and troubleshoot common errors you might encounter when using the Notch Pay API.
Error Response Format
Common Error Codes
Validation Errors
Payment-Specific Errors
- Payment Creation
- Payment Processing
Invalid Amount
Invalid Amount
Currency Issues
Currency Issues
error
Transfer-Specific Errors
Insufficient Balance
Insufficient Balance
error
Troubleshooting Tips
1
Check Request Format
Ensure your request is properly formatted and includes all required parameters. Use the API reference to verify the correct format.
2
Verify Authentication
Make sure you’re using the correct API key and that it’s properly included in the
Authorization header.3
Inspect Error Messages
Pay attention to the specific error message and the
errors object in the response, which often contains detailed information about what went wrong.4
Check Environment
Ensure you’re using the right environment (test or live) for your needs. Test API keys won’t work in the live environment and vice versa.
5
Review Logs
Check your application logs for any additional information about the request that might help identify the issue.
6
Contact Support
If you’re still having trouble, contact Notch Pay support with:
- The full error response
- Your request details (excluding sensitive information like API keys)
- Any steps you’ve already taken to troubleshoot
Error Handling Best Practices
Implement Retry Logic
For transient errors (like network issues or rate limiting), implement retry logic with exponential backoff.
Graceful Error Handling
Present user-friendly error messages to your customers while logging detailed error information for debugging.
For more detailed information about specific API endpoints and their potential errors, refer to the documentation for each endpoint.
Need more help? Contact our support team with details about the error you’re encountering.