The Integration Platform APIs follow industry standards for Restful API design wherever possible.
Request parameters
pageSizespecifies number of results to be included in each results page. Unless otherwise specified, thepageSizevalue must be between 1,000 to 100,000 and default to 2,000 when skipped or ifnullwas provided.cursoris used to navigate to the next page by passing in thenextPageCursorfrom previous request (see below).
Response properties
nextPageCursoris returned when the response contains more results than what was specified in thepageSize.
Request headers
correlationidis used to simplify diagnostic problems. When possible, clients should always include acorrelationidHTTP header when sending requests.
Response headers
vista-trace-idis generated by the Integration Platform.vista-correlation-idwill have the value of the originalcorrelationidrequest header if provided, otherwise it will be generated by the Integration Platform.retry-afterindicates the number of seconds to wait before retrying (see rate limiting).
Request body content should have a Content-Type of application/json.
curl --location 'https://integration.app.vista.co/api/v1/film-management/films?startDateTime=2024-01-01T00%3A00%3A00Z' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1Ni...- Dates are serialised using the standard
ISO 8601format. - Dates may or may not return time zone information depending on the purpose of the date.
- Time zone offsets are returned where the time zone itself is relevant, otherwise dates are returned in UTC time.
| Scenario | Date Type | Example Date |
|---|---|---|
| Film release date | Business Day | 2014-01-17 |
| Showtime start time | Time zone relevant instant | 2023-10-25T17:45:00+13:00 |
| Order expiry date | Time zone agnostic instant | 2023-10-25T03:36:31+00:00 |
| Code | Name | Details |
|---|---|---|
| 400 | Bad Request | The request contains invalid data and/or conflicts with a business rule. |
| 401 | Unauthorized | Request has not been authenticated. |
| 403 | Forbidden | Identity of request does not have access to requested endpoint/functionality. |
| 404 | Not Found | The requested resource on the URL has not been found. |
| 429 | Too Many Requests | Rate limit exceeded for request. |
| 500 | Internal Server Error | An unexpected exception has occurred within API application. |
| 502 | Bad Gateway | A downstream call from the API has failed unexpectedly. |
| 504 | Gateway Timeout | A downstream call from the API has timed out. |
Errors returned from the API follow the Problem Details standard. e.g.
{
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "One or more validation errors occurred.",
"status": 400,
"detail": "An attempt was made to call the API but 1 validation error occurred.",
"instance": "/api/v1/film-management/films",
"traceId": "00-2857e95315f8ba24cd57202b749f2b1a-697f80c46c0d79ae-01",
"errors": {
"InvalidParameter": [
"Request page size must not be a negative."
]
}
...
}NOTE
When reporting errors, please ensure you also provide the response header values vista-correlation-id and vista-trace-id.