Skip to main content
PaySway uses standard HTTP response codes to indicate the success or failure of an API request.
  • Codes in the 2xx range indicate success.
  • Codes in the 4xx range indicate a client error (e.g., a required parameter was omitted, validation failed, etc.).
  • Codes in the 5xx range indicate an error with PaySway’s servers (these are rare).
Some 4xx errors include an error code to identify the specific issue (e.g., access token is invalid).

Error response

PaySway returns an error response for 4xx 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.

Error codes

Below is a reference of PaySway error codes, including descriptions and resolution guidance where applicable.

Idempotency errors

Authentication errors

Webhook errors