Superbet

POST `/be/tickets` endpoint

Create superbet ticket.

Request fields:

AttributeData TypeDescription

operator

string

Name of the operator as registered on the system

token

string

Player identification token

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

atag

string

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

source

string

Ticket source (see Fields)

type

string

superbet Ticket Type (see Fields)

event

integer

Event id

bets

list of integers

Each element is event bet id

Sample request to create superbet ticket:

{
    "operator": "site",
    "token": "sGhx12skwrXsukbZmWh7bkCC9YPEzYQKtKSe9EfCth3Q",
    "stake": 500,
    "currency": "KES",
    "atag": "affiliate-1",
    "source": "mobile",
    "type": "superbet",
    "event": 100001,
    "bets": [101, 102, 103, 104, 105, 106]
}

Response fields:

AttributeData TypeDescription

id

string

Ticket id

code

string

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

superbet Ticket Type (see Fields)

atag

string

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

user_id

string

User ID from PAM

created

string

Ticket created datetime

updated

string

Ticket updated datetime

Sample response (status=200) to superbet ticket:

{
    "id": "6314704d686a9e8e5d68dca6",
    "code": "E36E20",
    "stake": 500,
    "currency": "KES",
    "status": "open",
    "result": "pending",
    "approved": true,
    "source": "mobile",
    "type": "superbet",
    "atag": "affiliate-1",
    "user_id": "1660986605374148608",
    "created": "2022-01-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 (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": 103,
    "message": "Event with `100001` identifier is not found"
}

Error response (status=400):

{
    "code": 107,
    "message": "Event with `100001` identifier is not available for play because it has already started"
}

Last updated