Errors

You might encounter errors while using Payshiga’s API. These errors are:

Missing API keys

Status Code: 401 Bad Request

The response will include an error message indicating an issue with the request parameters, in this case, the API keys. Here’s how it’ll look

{
  "success": false,
  "statusCode": 401,
  "message": "Request is missing api key",
  "timestamp": "2021-09-01T00:00:00.000Z",
  "path": ""
}

Internal Server Error

Status Code: 500 Internal Server Error

The response will indicate that an unexpected error occurred on the server. Here’s how it’ll look

{
  "success": false,
  "statusCode": 500,
  "message": "Internal server error",
  "timestamp": "2021-09-01T00:00:00.000Z",
  "path": ""
}