Error Codes
In case of an error our API will return the error in the following format:
{
"errors": [
{
"message": "movie not found",
"path": [
"movie"
],
"extensions": {
"code": "MOVIE_NOT_FOUND"
}
}
],
"data": null
}
The error code can be found on errors[0].extensions.code
. Below are the some of the error codes our API may return:
Error Code | Description | Thrown In |
---|---|---|
SHOWTIME_NOT_FOUND | The showtime cannot be found. | createMovieOrderSession |
EXPIRED_SHOWTIME | The showtime has expired. | createMovieOrderSession, reserveSeats |
INTERNAL_ERROR | Internal server error. | createMovieOrderSession, reserveSeats, releaseSeats, createMovieOrder |
CINEMA_UNDER_MAINTENANCE | The cinema is under maintenance. | createMovieOrderSession |
CINEMA_NOT_FOUND | The cinema cannot be found. | createMovieOrder |
INVALID_SEAT_TO_RESERVE | The specified seat keys is invalid. | reserveSeats |
ORDER_SESSION_NOT_FOUND | The order session cannot be found. | createMovieOrder |
ORDER_SESSION_EXPIRED | The order session has expired. | createMovieOrder |
ORDER_NOT_FOUND | The order cannot be found. | confirmMovieOrder |
PAYMENT_NOT_FOUND | The payment cannot be found. | confirmMovieOrder |
UNABLE_TO_CONFIRM_BOOKING | The booking cannot be confirmed. | confirmMovieOrder |