Get ticket endpoint

GET `/tickets/{identifier}` endpoint

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

Response fields for quicktip ticket:

AttributeData TypeDescription

id

string

Betstack ticket id

code

string

Betstack ticket code

stake

integer

Ticket amount. Should be in integer format (cents). For example, for stake 30.45 the value should be 3045

currency

string

Currency code in ISO 4217 three letter format

payout

integer

Ticket payout. Should be in integer format (cents). For example, for payout 30.45 the value should be 3045

tax

integer

Player withholding tax. Should be in integer format (cents). For example, for tax 30.45 the value should be 3045

status

string

Ticket Status (see Fields)

result

string

Ticket Result (see Fields)

approved

bool

Ticket approval (see Fields)

source

string

Ticket source (see Fields)

type

string

Ticket Type (see Fields)

atag

string

Optional affilate Tag or Affiliate ID

user_id

string

Betstack user id

created

string

Ticket created datetime

updated

string

Ticket updated datetime

events

list of objects

events id

integer

Event id

event starts

string

Event start datetime

event sport

object

event sport id

integer

Id of sport event

event sport name

string

Name of sport event

event category

object

event category id

integer

Id of sport category

event category name

string

Name of sport category

event league

object

event league id

integer

Id of league

event league name

string

Name of league

event home_team

object

event home_team id

integer

Id of home team

event home_team name

string

Name of home team

event away_team

object

event away_team id

integer

Id of away team

event away_team name

string

Name of away team

event market

object

event market code

string

Code of market

event market name

string

Name of market

event bet

object

event bet code

string

Code of event bet

event bet name

string

Name of event bet

event line

object

event line code

string

Code of the bet line

event line name

string

Name of the bet line

events odds

float

Event odds. Should be in decimal format with 2 digits after comma

event status

string

Status of the event (see Fields)

event result

string

Result of the event (see Fields)

odds

float

Ticket odds

Sample response (status=200) for quicktip ticket:

{
  "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": [
    {
      "id": 100001,
      "starts": "2022-09-04T09:30:53+00:00",
      "sport": {
        "id": 101,
        "name": "Football"
      },
      "category": {
        "id": 102,
        "name": "Europe"
      },
      "league": {
        "id": 103,
        "name": "UEFA Europa League"
      },
      "home_team": {
        "id": 1,
        "name": "FC Zurich"
      },
      "away_team": {
        "id": 2,
        "name": "Arsenal"
      },
      "market": {
        "code": "MRFT",
        "name": "Match Result Full Time"
      },
      "bet": {
        "code": "05",
        "name": "0.5"
      },
      "line": {
        "code": "05",
        "name": "0.5"
      },
      "odds": 1.55,
      "status": "not_started",
      "result": "open"
    }
  ],
  "odds": 7.4
}

Response fields for smartbet ticket are the same as for quicktip ticket, except type field will contain smartbet value. All other fields are the same.

Response fields for quickbet ticket are the same as for quicktip ticket, except type field will contain quickbet value. All other fields are the same.

Response fields for superbet ticket:

AttributeData TypeDescription

id

string

Betstack ticket id

code

string

Betstack ticket code

stake

integer

Ticket amount. Should be in integer format (cents). For example, for stake 30.45 the value should be 3045

currency

string

Currency code in ISO 4217 three letter format

status

string

Ticket Status (see Fields)

result

string

Ticket Result (see Fields)

approved

bool

Ticket approval (see Fields)

source

string

Ticket source (see Fields)

type

string

Ticket Type (see Fields)

atag

string

Optional affilate Tag or Affiliate ID

user_id

string

Betstack user id

created

string

Ticket created datetime

updated

string

Ticket updated datetime

event

object

event id

integer

Event id

event starts

string

Event start datetime

event home_team

string

Name of home team

event away_team

string

Name of away team

bets

list of objects

bets id

integer

Id of bet

bets bet_name

string

Name of bet

bets market_code

string

Code of market

bets market_name

string

Name of market

bets result

string

Bet Result (see Fields)

Sample response (status=200) for superbet ticket:

{
  "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": {
    "id": 100001,
    "starts": "2022-09-04T09:30:53+00:00",
    "home_team": "Lazio",
    "away_team": "FC Bayern Munich"
  },
  "bets": [
    {
      "id": 101,
      "bet_name": "Home",
      "market_code": "FTSFT",
      "market_name": "First Goal Full Time",
      "result": "pending"
    },
    {
      "id": 102,
      "bet_name": "1-0",
      "market_code": "CSHT",
      "market_name": "Correct Score Half Time",
      "result": "lost"
    },
    {
      "id": 103,
      "bet_name": "Yes",
      "market_code": "BTSFT",
      "market_name": "Both Teams to Score Full Time",
      "result": "pending"
    },
    {
      "id": 104,
      "bet_name": "Second",
      "market_code": "HSH",
      "market_name": "Highest Scoring Half",
      "result": "pending"
    },
    {
      "id": 105,
      "bet_name": "Odd",
      "market_code": "OEFT",
      "market_name": "Odd/Even Full Time",
      "result": "pending"
    },
    {
      "id": 106,
      "bet_name": "2-1",
      "market_code": "CSFT",
      "market_name": "Correct Score Full Time",
      "result": "pending"
    }
  ]
}

Response status codes:

Status CodeInterpretation

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": 100,
    "message": "Feature not implemented yet"
}

Error response (status=400):

{
    "code": 102,
    "message": "Ticket with {ticket-id} identifier is not found"
}

Last updated