Error Response Format
All error responses follow this format:HTTP Status Codes
Code | Meaning | Description |
---|---|---|
200 | OK | Request succeeded |
400 | Bad Request | Invalid request parameters |
401 | Unauthorized | Invalid or missing API key |
404 | Not Found | Resource doesn’t exist |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Something went wrong on our end |
400 Bad Request Errors
Invalid Amount
Invalid Currency
Missing Return URL
Invalid Return URL
Invalid Metadata
Missing Required Fields
401 Unauthorized Errors
Invalid API Key
- API key doesn’t exist
- API key format is incorrect
- API key was deleted
- Shop is inactive
- Check API key format:
- Verify API key in dashboard:
- Ensure proper authentication header:
Missing API Key
Shop Inactive
404 Not Found Errors
Payment Not Found
- Payment ID is incorrect
- Payment belongs to different shop
- Payment was deleted (rare)
- Verify payment ID format:
- Ensure payment exists:
429 Rate Limit Errors
Rate Limit Exceeded
- Implement exponential backoff:
- Implement request queuing:
- Cache responses:
500 Internal Server Error
Server Error
- Retry the request:
- Log the error and contact support if it persists