Create a ticket

Is used when player creates a ticket (betslip). It takes money out of player's account. In case of not successful response a ticket_discard action will be called. In case of not successful call of ticket_discard action, call should be repeated after 30 mins.

Request fields:

AttributeData TypeDescription

operator

string

Name of the operator as registered on the system

ticket_id

string

Ticket identification number

ticket_code

string

Ticket code

player_id

string

Player identification number or code

stake

integer

Ticket amount. Should be in integer format (cents). For stake 33.45 the value will be 3345

tax

integer

Player withholding tax. Should be in integer format (cents). If you have player withholding tax equals to 4.55 then tax value should be 455

payout

integer

Ticket payout. Should be in integer format (cents). For payout 30.45 the value will be 3045

currency

string

Currency code in ISO 4217 three letter format

atag

string

Affilate Tag or Affiliate ID

ticket_type

string

Ticket Type (see Fields)

Sample request:

{
    "action": "ticket_create", 
    "data": {
        "operator": "operator-code",
        "ticket_id": "1330556611374148608",
        "ticket_code": "A61C53",
        "player_id": "1660986605374148608",
        "stake": 500,
        "tax": 100,
        "payout": 1500,
        "currency": "KES",
        "atag": "affiliate-1",
        "ticket_type": "quicktip"
    }
}

Sample response:

Response: 200
Doesn't require any payload

Last updated