Get ticket list endpoint

GET `/tickets` endpoint

Request URL parameters:

ParameterData TypeDescription

limit

integer

Optional. Default = 10. Number of tickets to return

user_id

string

Optional. If presented - does filtration by ticket user_id field

skip_types

list of TicketType

Optional. List of Ticket Type (see Fields). If presented - does filtration by ticket type field. Excludes tickets with types from skip_type parameter. If you want to exclude tickets with multiple types - pass types like this: ...&skip_types=superbet&skip_types=jackpot&...

Response for this endpoint is a list of objects. Each object represents separate ticket. For each ticket type response fields are the same as in Get ticket endpoint.

Sample response (status=200):

[
    {
        "id": "6314704d686a9e8e5d68dca6",
        "code": "E36E20",
        "stake": 2025,
        "currency": "USD",
        "payout": 10000,
        "tax": 1300,
        "status": "open",
        "result": "pending",
        "approved": true,
        "source": "desktop",
        "type": "quicktip",
        "atag": "atag_value",
        "user_id": "1660986605374148608",
        "created": "2022-09-04T09:30:53+00:00",
        "updated": "2022-09-04T09:30:53+00:00",
        "events": [...],
        "odds": 7.4
    },
    {
        "id": "6314704d686a9e8e5d68dca6",
        "code": "E36E20",
        "stake": 2025,
        "currency": "USD",
        "status": "resulted",
        "result": "lost",
        "approved": true,
        "source": "desktop",
        "type": "superbet",
        "atag": "atag_value",
        "user_id": "1660986605374148608",
        "created": "2022-09-04T09:30:53+00:00",
        "updated": "2022-09-04T09:30:53+00:00",
        "event": {...},
        "bets": [...]
    },
    ...
]

Response status codes:

Status CodeInterpretation

200

OK - Everything worked as expected

403

Forbidden. You do not have access for such request

422

Validation Error. Please check response body for more details

Last updated