Error handling

Erroneous responses to each API call is aligned with standard HTTP responses. The following is a sample of each standard erroneous response.

400 - Incorrect Data Provided

{
  "code": 400,
  "message": "Provided data is incorrect",
  "details": []
}

401 - Unauthorised API Call

{
  "code": 401,
  "message": "Unauthorized",
  "details": []
}

403 - Insufficient Access Rights

{
  "code": 403,
  "message": "You do not have correct access rights",
  "details": []
}

Successful execution responses are returned with 200 status code - samples are available in the detailed description of each API.

409 - Duplicate Request

{
  "code": 409,
  "message": "duplicate transaction with id: Id Provided and key: api",
  "details": []
}