Jackpot (coming soon)

POST `/be/tickets` endpoint

Not supported yet.

Create jackpot ticket.

Request fields:

AttributeData TypeDescription

operator

string

Name of the operator as registered on the system

stake

integer

Ticket amount. Should be in decimal format with 2 digits after comma

currency

string

Currency code in ISO 4217 three letter format

source

string

Ticket source (see Fields)

atag

string

Optional affilate Tag or Affiliate ID. If parameter is present then it is added to the ticket_create PAM API call.

type

string

Ticket Type (see Fields)

token

string

Player identification token

odds_diff

float

Specifies the max odds deviation when we still accept the request and create the ticket.

When the value is set to zero it means we don't allow any odds difference during ticket creation and will respond with "Ticket odds changed" Error response

coupon_id

string

Coupon id for Jackpot

id

ObjectId

Ticket id

code

string

Ticket code

events

list

events id

integer

Event id

events bet

integer

Event bet id

events odds

float

Event odds at time of ticket submission. Should be in decimal format with 2 digits after comma

tax

integer

Player withholding tax. Should be in decimal format with 2 digits after comma

payout

integer

Ticket payout. Should be in decimal format with 2 digits after comma

status

string

Ticket Status (see Fields)

result

string

Ticket Result (see Fields)

approved

bool

Ticket approval (see Fields)

user_id

string

Betstack User ID

created

string

Ticket created datetime

updated

string

Ticket updated datetime

Sample request to create jackpot ticket:

{
    "operator": "site",
    "stake": 25,
    "currency": "KES",
    "source": "SMS",
    "atag": "afiliate-1",
    "type": "jackpot",
    "token": "sGhx12skwrXsukbZmWh7bkCC9YPEzYQKtKSe9EfCth3Q", 
    "coupon_id": 455,
    "bets": [101, 102, 102, 101, 101, 101, 102]
}

Response fields:

AttributeData TypeDescription

operator

string

Name of the operator as registered on the system

stake

integer

Ticket amount. Should be in decimal format with 2 digits after comma

currency

string

Currency code in ISO 4217 three letter format

source

string

Ticket source (see Fields)

atag

string

Optional affilate Tag or Affiliate ID. If parameter is present then it is added to the ticket_create PAM API call.

type

string

Ticket Type (see Fields)

token

string

Player identification token

odds_diff

float

Specifies the max odds deviation when we still accept the request and create the ticket.

When the value is set to zero it means we don't allow any odds difference during ticket creation and will respond with "Ticket odds changed" Error response

coupon_id

string

Coupon id for Jackpot

id

ObjectId

Ticket id

code

string

Ticket code

events

list

events id

integer

Event id

events bet

integer

Event bet id

events odds

float

Event odds at time of ticket submission. Should be in decimal format with 2 digits after comma

tax

integer

Player withholding tax. Should be in decimal format with 2 digits after comma

payout

integer

Ticket payout. Should be in decimal format with 2 digits after comma

status

string

Ticket Status (see Fields)

result

string

Ticket Result (see Fields)

approved

bool

Ticket approval (see Fields)

user_id

string

Betstack User ID

created

string

Ticket created datetime

updated

string

Ticket updated datetime

Sample response to jackpot ticket:

Response: 200
{
    "id": "6314704d686a9e8e5d68dca6", 
    "code": "A12A42", 
    "stake": 25,
    "currency": "KES",
    "tax" : 50000,
    "payout": 500000,
    "status": "new",
    "result": "pending",
    "approved": true,
    "source": "SMS",
    "type": "jackpot",
    "atag": "affiliate-1",
    "user_id": "1660986605374148608", 
    "created": "2022-09-04T09:30:53", 
    "updated": "2022-09-04T09:30:53"
}

Response status codes:

Status CodeInterpretation

200

OK - Everything worked as expected

400

Bad Request. Please check error code in response body

403

Forbidden. You do not have access for such request

422

Validation Error. Please check response body for more details

Error response examples:

Response status code: 400 
{
    "code": 101,
    "message": "Could not create ticket. Event 390815 is not available"
}

Response status code: 400 
{
    "code": 102,
    "message": "Odds changed"
}

Here is a list of all error codes - Error codes.

Last updated