API End Points

API Response Codes API Reference

Response Codes

Every HTTP Request to the MarketHub Api will return a response code.
You will need to check each response to ensure that the request has performed the operation successfully.
The codes returned by the API are as follows:

  • 200 - Sucess Status
    The request was accepted and processed successfully.
    The request may however have database errors so make sure you check the Error Code return
    in the request response. See Error Codes for more information.
  • 400 — Bad Request
    The operation could not be completed due to malformed syntax.
  • 400 — Bad Request
    Missing or incorrect credentials in the header so the request has been rejected.
  • 401 — Unauthorized
    Missing or incorrect credentials in the header so the request has been rejected.
  • 422 — Unprocessable Entity
    The request could not be completed possibly due to missing or incorrect parameters or data.
  • 500 — Internal Server Error
    There was an internal issue process the request on the MarketHub servers. The message will not have been processed and will have been lost so you will need to resubmit the request.
When implementing a client to call the MarketHub API, you should cater for each of the above response codes and
resend a request based on the response codes received or alternatively log the messages on the client end.
;