API Errors
Understand and troubleshoot common Notch Pay API errors
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
Authentication Errors
Resource Errors
Validation Errors
Rate Limiting & Server Errors
Payment-Specific Errors
Transfer-Specific Errors
Troubleshooting Tips
Check Request Format
Ensure your request is properly formatted and includes all required parameters. Use the API reference to verify the correct format.
Verify Authentication
Make sure you’re using the correct API key and that it’s properly included in the Authorization
header.
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.
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.
Review Logs
Check your application logs for any additional information about the request that might help identify the issue.
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.