Introduction
You can use Swagger or Postman to make the calls and test the APIs. Please make sure you are using the right environment as explained in Getting Started. If you are building a marketplace app, your app should be approved and live in the staging or production environments before you can test it.
If your app is not live (you cannot see it in the marketplace) you can contact support@goki.travel.
Make sure you have got the correct credentials and they are included in the request's header. All API calls need to have the header set.
How to read the APIs?
For simplicity, we have removed all the authentication headers in this documentation. And they are explained in the Credentials section.
Handling Errors
All error responses are following the below structure:
Property | Type | Description |
| number | |
| string | Title of the occurred error. |
| string | A message which describes why the error has happened. |
| number | HTTP status code. |
| string | Reason of the error (optional). |
Sample Error
Error Code
General Errors
There are some errors that are common between all APIs.
Authentication error
When your provided authentication tokens are wrong, you will get the following error
Validation Error
When your provided data is wrong (you missed a required field or type of a field is not match with what the API expects) you will get a validation error.
Last updated