Errors
StarPay SGH uses standard HTTP status codes. 2xx means success; 4xx means something in the request needs fixing.
| Code | Meaning |
|---|---|
| 200 | Success |
| 401 | Missing, invalid, or inactive API key |
| 404 | Resource not found, or doesn't belong to your account |
| 422 | Validation failed — see errors in the response body |
| 429 | Too many requests — you've hit the rate limit |
| 500 | Something went wrong on our end |
Authentication error
{ "message": "Invalid or inactive API key." }
Validation error
{
"message": "The amount field is required.",
"errors": {
"amount": ["The amount field is required."]
}
}
Not found
{ "status": false, "message": "Transaction not found." }