Troubleshooting Guide

This guide helps you resolve common issues when integrating with the Paycrest API.

Common Issues

Error Codes Reference

4xx Client Errors

  • 400: Bad Request - Invalid parameters
  • 401: Unauthorized - Invalid API key
  • 403: Forbidden - Insufficient permissions
  • 404: Not Found - Resource doesn’t exist
  • 429: Too Many Requests - Rate limit exceeded

5xx Server Errors

  • 500: Internal Server Error
  • 502: Bad Gateway
  • 503: Service Unavailable
  • 504: Gateway Timeout

Rate Limits

Paycrest implements rate limiting to ensure fair usage. Limits vary by endpoint and account tier.

Unauthenticated

  • 20 requests/second
  • Applies to requests without a valid API key

Authenticated

  • 500 requests/second
  • Applies to requests with a valid API key

Testing & Debugging

1

Enable Debug Logging

Add debug headers to see detailed request/response information:

curl -X POST "https://api.paycrest.io/v1/sender/orders" \
  -H "API-Key: YOUR_API_KEY" \
  -H "X-Debug: true" \
  -H "Content-Type: application/json" \
  -d '{"amount": "10", ...}'
2

Check API Status

Monitor API status and performance:

  • Monitor response times and error rates
  • Set up alerts for critical endpoints
  • Join our Telegram community for real-time updates
3

Contact Support

If you’re still experiencing issues:

Best Practices

Error Handling

  • Always check response status codes
  • Implement exponential backoff for retries
  • Log errors with context for debugging
  • Handle network timeouts gracefully

Security

  • Store API keys securely (use environment variables)
  • Verify webhook signatures
  • Use HTTPS for all API calls
  • Rotate API keys regularly

Performance

  • Cache supported currencies and institutions
  • Use webhooks instead of polling
  • Implement connection pooling
  • Monitor rate limits

Monitoring

  • Track order success/failure rates
  • Monitor response times
  • Set up alerts for critical failures
  • Log important events for audit trails

Getting Help

This troubleshooting guide covers the most common issues. For specific problems not covered here, please contact our support team with detailed information about your use case and any error messages you’re seeing.