# Jackpot

`identifier` - this could be either ticket id or ticket code.

Response fields for `jackpot` ticket:

<table><thead><tr><th width="234">Attribute</th><th width="133">Data Type</th><th>Description</th></tr></thead><tbody><tr><td>id</td><td>string</td><td>Betstack ticket id</td></tr><tr><td>code</td><td>string</td><td>Betstack ticket code</td></tr><tr><td>psp</td><td>string or null</td><td>Optional payment service provider or method used to pay for the ticket. E.g mobile, brite, pawapay</td></tr><tr><td>price</td><td>integer</td><td>Ticket price. Should be in integer format (cents). For example, for price <code>35.00</code> the value will be <code>3500</code></td></tr><tr><td>stake</td><td>integer</td><td>Ticket amount. Should be in integer format (cents). For example, for stake <code>30.45</code> the value should be <code>3045</code></td></tr><tr><td>currency</td><td>string</td><td>Currency code in <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO 4217</a> three letter format</td></tr><tr><td>gross_payout</td><td>integer</td><td>Ticket gross payout. Should be in integer format (cents). For example, for gross payout <code>30.45</code> the value should be <code>3045</code></td></tr><tr><td>net_payout</td><td>integer</td><td>Ticket net payout. Should be in integer format (cents). For example, for net payout <code>30.45</code> the value should be <code>3045</code></td></tr><tr><td>wht_amount</td><td>integer</td><td>Player withholding tax amount. Should be in integer format (cents). For example, for withholding tax amount <code>30.45</code> the value should be <code>3045</code></td></tr><tr><td>wht</td><td>float</td><td>Player withholding tax percentage. For example, for withholding tax percentage <code>20.0%</code> the value should be <code>20.0</code></td></tr><tr><td>ext_amount</td><td>integer</td><td>Ticket exercise tax amount. Should be in integer format (cents). For example, for exercise tax amount <code>1.25</code> the value will be <code>125</code></td></tr><tr><td>ext</td><td>float</td><td>Ticket exercise tax percentage. For example, for exercise tax percentage <code>12.5%</code> the value should be <code>12.5</code></td></tr><tr><td>ext_type</td><td>string</td><td>Exercise tax type (see <a data-mention href="/pages/X7kpzRZfS4vnwo3UUQLa">/pages/X7kpzRZfS4vnwo3UUQLa</a>)</td></tr><tr><td>status</td><td>string</td><td>Ticket Status (see <a data-mention href="/pages/X7kpzRZfS4vnwo3UUQLa">/pages/X7kpzRZfS4vnwo3UUQLa</a>)</td></tr><tr><td>result</td><td>string</td><td>Ticket Result (see <a data-mention href="/pages/X7kpzRZfS4vnwo3UUQLa">/pages/X7kpzRZfS4vnwo3UUQLa</a>)</td></tr><tr><td>approved</td><td>bool</td><td>Ticket approval (see <a data-mention href="/pages/X7kpzRZfS4vnwo3UUQLa">/pages/X7kpzRZfS4vnwo3UUQLa</a>)</td></tr><tr><td>source</td><td>string</td><td>Ticket source (see <a data-mention href="/pages/X7kpzRZfS4vnwo3UUQLa">/pages/X7kpzRZfS4vnwo3UUQLa</a>)</td></tr><tr><td>type</td><td>string</td><td>Ticket Type (see <a data-mention href="/pages/X7kpzRZfS4vnwo3UUQLa">/pages/X7kpzRZfS4vnwo3UUQLa</a>). Will always contain <code>jackpot</code></td></tr><tr><td>atag</td><td>string or null</td><td>Optional affiliate Tag or Affiliate ID</td></tr><tr><td>rtag</td><td>string or null</td><td>Optional referral Tag or referral ID</td></tr><tr><td>aff_instant_comm_amt</td><td>int or null</td><td>Optional instant commission amount of affiliate user (in cents). Actual value may be only in smartbet, jackpot and superbet tickets</td></tr><tr><td>aff_instant_comm_pct</td><td>float or null</td><td>Optional instant commission percentage of affiliate user. Actual value may be only in smartbet, jackpot and superbet tickets</td></tr><tr><td>user_id</td><td>string</td><td>Betstack user id</td></tr><tr><td>psp</td><td>string</td><td>Payment service provider or payment method name</td></tr><tr><td>created</td><td>string</td><td>Ticket created datetime, UTC. Format - <code>2024-01-28T14:33:01.000000</code></td></tr><tr><td>operator_time_starts</td><td>string</td><td>Ticket created datetime, operator timezone. Format - <code>2024-01-28T14:33:01.000000</code></td></tr><tr><td>updated</td><td>string</td><td>Ticket updated datetime, UTC. Format - <code>2024-01-28T14:33:01.000000</code></td></tr><tr><td>operator_time_updated</td><td>string</td><td>Ticket updated datetime, operator timezone. Format - <code>2024-01-28T14:33:01.000000</code></td></tr><tr><td>events</td><td>list of objects</td><td></td></tr><tr><td>events id</td><td>integer</td><td>Event id</td></tr><tr><td>event starts</td><td>string</td><td>Event start datetime, UTC. Format - <code>2024-01-28T14:33:01.000000</code></td></tr><tr><td>event opetator_time_starts</td><td>string</td><td>Event start datetime, operator timezone. Format - <code>2024-01-28T14:33:01.000000</code></td></tr><tr><td>event sport</td><td>object</td><td></td></tr><tr><td>event sport id</td><td>integer</td><td>Id of sport event</td></tr><tr><td>event sport name</td><td>string</td><td>Name of sport event</td></tr><tr><td>event category</td><td>object</td><td></td></tr><tr><td>event category id</td><td>integer</td><td>Id of sport category</td></tr><tr><td>event category name</td><td>string</td><td>Name of sport category</td></tr><tr><td>event league</td><td>object</td><td></td></tr><tr><td>event league id</td><td>integer</td><td>Id of league</td></tr><tr><td>event league name</td><td>string</td><td>Name of league</td></tr><tr><td>event home_team</td><td>object</td><td></td></tr><tr><td>event home_team id</td><td>integer</td><td>Id of home team</td></tr><tr><td>event home_team name</td><td>string</td><td>Name of home team</td></tr><tr><td>event away_team</td><td>object</td><td></td></tr><tr><td>event away_team id</td><td>integer</td><td>Id of away team</td></tr><tr><td>event away_team name</td><td>string</td><td>Name of away team</td></tr><tr><td>event market</td><td>object</td><td></td></tr><tr><td>event market code</td><td>string</td><td>Code of market </td></tr><tr><td>event market name</td><td>string</td><td>Name of market</td></tr><tr><td>event bet</td><td>object</td><td></td></tr><tr><td>event bet code</td><td>string</td><td>Code of event bet</td></tr><tr><td>event bet name</td><td>string</td><td>Name of event bet</td></tr><tr><td>event line</td><td>object</td><td></td></tr><tr><td>event line code</td><td>string</td><td>Code of the bet line</td></tr><tr><td>event line name</td><td>string</td><td>Name of the bet line</td></tr><tr><td>events odds</td><td>float</td><td>Event odds. Should be in decimal format with 2 digits after comma</td></tr><tr><td>event status</td><td>string</td><td>Status of the event (see <a data-mention href="/pages/X7kpzRZfS4vnwo3UUQLa">/pages/X7kpzRZfS4vnwo3UUQLa</a>)</td></tr><tr><td>event result</td><td>string</td><td>Result of the event (see <a data-mention href="/pages/X7kpzRZfS4vnwo3UUQLa">/pages/X7kpzRZfS4vnwo3UUQLa</a>)</td></tr><tr><td>betcard_code</td><td>string</td><td>Betcard code</td></tr><tr><td>prize</td><td>integer</td><td>Betcard prize</td></tr><tr><td>bonus_prizes</td><td>list of integers</td><td>Betcard bonus prizes</td></tr></tbody></table>

Sample response (status=200) for `jackpot` ticket:

```json
{
    "id": "66e393ea19adab3ab258cb34",
    "code": "4AAFE4",
    "psp": null,
    "price": 500,
    "stake": 444,
    "currency": "USD",
    "gross_payout": 0,
    "net_payout": 0,
    "wht_amount": 0,
    "wht": 20,
    "ext_amount": 56,
    "ext": 12.5,
    "ext_type": "inclusive",
    "status": "open",
    "result": "pending",
    "approved": true,
    "source": "desktop",
    "type": "jackpot",
    "atag": "atag_value",
    "rtag": null,
    "aff_instant_comm_amt": 89,
    "aff_instant_comm_pct": 20,
    "user_id": "sometokenvalue",
    "psp": "mobile",
    "created": "2024-09-13T01:22:50.507000",
    "operator_time_created": "2024-09-13T01:22:50.507000",
    "updated": "2024-09-13T01:22:50.532000",
    "operator_time_updated": "2024-09-13T01:22:50.532000",
    "events": [
        {
            "id": 317299,
            "starts": "2024-09-14T10:00:00.000000",
            "operator_time_starts": "2024-09-14T10:00:00.000000",
            "sport": {
                "id": 10000,
                "name": "Football"
            },
            "category": {
                "id": 1410000,
                "name": "Kenya"
            },
            "league": {
                "id": 11130000,
                "name": "KPL"
            },
            "home_team": {
                "id": 1062240000,
                "name": "Nairobi City Stars"
            },
            "away_team": {
                "id": 1069080000,
                "name": "Bidco United"
            },
            "market": {
                "code": "MRFT",
                "name": "Match Result Full Time"
            },
            "bet": {
                "code": "1",
                "name": "Home"
            },
            "line": null,
            "odds": 2.35,
            "status": "not_started",
            "result": "open"
        },
        {
            "id": 317298,
            "starts": "2024-09-13T21:45:00.000000",
            "operator_time_starts": "2024-09-13T21:45:00.000000",
            "sport": {
                "id": 10000,
                "name": "Football"
            },
            "category": {
                "id": 2280000,
                "name": "Venezuela"
            },
            "league": {
                "id": 16720000,
                "name": "Primera Division"
            },
            "home_team": {
                "id": 1103400000,
                "name": "Metropolitanos FC"
            },
            "away_team": {
                "id": 104407,
                "name": "Portuguesa"
            },
            "market": {
                "code": "DCFT",
                "name": "Double Chance Full Time"
            },
            "bet": {
                "code": "12",
                "name": "Home/Away"
            },
            "line": null,
            "odds": 1.22,
            "status": "not_started",
            "result": "open"
        },
        {
            "id": 317297,
            "starts": "2024-09-14T10:00:00.000000",
            "operator_time_starts": "2024-09-14T10:00:00.000000",
            "sport": {
                "id": 10000,
                "name": "Football"
            },
            "category": {
                "id": 2060000,
                "name": "South Korea"
            },
            "league": {
                "id": 15120000,
                "name": "K3 League"
            },
            "home_team": {
                "id": 1087600000,
                "name": "Ulsan Citizen"
            },
            "away_team": {
                "id": 1087580000,
                "name": "Hwaseong"
            },
            "market": {
                "code": "DCFT",
                "name": "Double Chance Full Time"
            },
            "bet": {
                "code": "12",
                "name": "Home/Away"
            },
            "line": null,
            "odds": 1.2,
            "status": "not_started",
            "result": "open"
        }
    ],
    "betcard_code": "ABC123",
    "prize": 10000,
    "bonus_prizes": [
        2000,
        1500,
        1000
    ]
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.betstack.io/bet-engine-api/get-ticket-endpoint/jackpot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
