- Codes in the
2xxrange indicate success. - Codes in the
4xxrange indicate a client error (e.g., a required parameter was omitted, validation failed, etc.). - Codes in the
5xxrange indicate an error with PaySway’s servers (these are rare).
4xx errors include an error code to identify the specific issue (e.g., access token is invalid).
Error response
PaySway returns an error response for4xx and 5xx status codes with the following fields:
enum
A unique error code identifying the specific issue. Only included for well-known errors. See the error codes section below for possible values.
string
A human-readable message providing details about the error. Intended for developers and may contain technical information.