Errors
CriptanPay uses conventional HTTP response codes to indicate the success or failure of an API request. All error messages include a type identifier and a human readable message.
Code | Meaning | Example |
---|---|---|
401 | You are not authorized | { "error": {"type": "invalid_authentication", "message": "Your API key is invalid or missing"} |
404 | The resource doesn't exist | { "error": {"type": "resource_not_found", "message": "The resource you request does not exist"} |
500 | Something went wrong with our servers | { "error": {"type": "internal_error", "message": "Something went wrong. Please contact support"} |
caution
CriptanPay is still in beta, so there might be some unexpected behaviours, but we are actively improving and fixing bugs every day. Your feedback is very important for us!