Get ticket list endpoint

GET `/be/tickets` endpoint

Request URL parameters:

Parameter
Data Type
Description

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",
        "price": 2000,
        "stake": 1800,
        "currency": "USD",
        "gross_payout": 12000,
        "net_payout": 10000,
        "wht_amount": 1300,
        "wht": 0.0,
        "ext_amount": 200,
        "ext": 10.0,
        "ext_type": "inclusive",
        "status": "open",
        "result": "pending",
        "approved": true,
        "source": "desktop",
        "type": "quicktip",
        "atag": "atag_value",
        "user_id": "1660986605374148608",
        "created": "2022-09-04T09:30:53.000000",
        "operator_time_created": "2022-09-04T11:30:53.000000",
        "updated": "2022-09-04T09:30:53.000000",
        "operator_time_updated": "2022-09-04T11:30:53.000000",
        "events": [...],
        "odds": 7.4
    },
    {
        "id": "6314704d686a9e8e5d68dca6",
        "code": "E36E20",
        "price": 2000,
        "stake": 1800,
        "gross_payout": 0,
        "net_payout": 0,
        "wht_amount": 0,
        "wht": 0.0,
        "ext_amount": 200,
        "ext": 10.0,
        "ext_type": "inclusive",
        "currency": "USD",
        "status": "resulted",
        "result": "lost",
        "approved": true,
        "source": "desktop",
        "type": "superbet",
        "atag": "atag_value",
        "user_id": "1660986605374148608",
        "created": "2022-09-04T09:30:53.000000",
        "operator_time_created": "2022-09-04T11:30:53.000000",
        "updated": "2022-09-04T09:30:53.000000",
        "operator_time_updated": "2022-09-04T11:30:53.000000",
        "event": {...},
        "bets": [...]
    },
    ...
]

Response status codes:

Status Code
Interpretation

200

OK - Everything worked as expected

400

Bad Request. Please check error code in response body (see Error codes)

403

Forbidden. You do not have access for such request

422

Validation Error. Please check response body for more details

Error response (status=400):

{
    "code": 112,
    "message": "Operator with `{operator-id}` name is not found"
}

Last updated