StarPay SGH

Errors

StarPay SGH uses standard HTTP status codes. 2xx means success; 4xx means something in the request needs fixing.

CodeMeaning
200Success
401Missing, invalid, or inactive API key
404Resource not found, or doesn't belong to your account
422Validation failed — see errors in the response body
429Too many requests — you've hit the rate limit
500Something 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." }