Skip to content

Tickets API

Goran Nikic edited this page Feb 12, 2018 · 1 revision

The Tickets API will return a the tickets currently in our system

List All Tickets

GET /tickets Returns a Paged Result containing the list of Tickets.

Filters

  • "ticket_code" - String - "oc-014ojishff" - WHERE OPERATION
  • "user_id" - String - The owner of the ticket - WHERE OPERATION
  • "venue_id" - String - The venue which this sold/generated this ticket - WHERE OPERATION
  • "scheduled_id" - Numeric - The screening id - WHERE OPERATION
  • "status" - Numeric - 0 if the ticket has not been claimed yet, 1 if the ticket has been claimed - WHERE OPERATION

Get a Ticket By ID

GET /tickets/get/:id

Response

{
    "status": "OK",
    "code": 200,
    "messages": "common.SUCCESSFUL_REQUEST",
    "data": {
        "rows_per_page": 1,
        "total_rows": 1166,
        "rows": [
            {
                "id": 418,
                "venue_id": 9,
                "user_id": 77,
                "scheduled_id": 9,
                "purchased_by": null,
                "movie_id": 5503,
                "ticket_code": "OC-0079330fa8c06e3a7af18ee76aab7ed5",
                "price": 10,
                "created_at": "2016-02-02 16:43:56",
                "paid": 1,
                "transaction": null,
                "status": 0
            }
        ]
    }
}

Clone this wiki locally