Reserve the ticket

Is used when player reserves a ticket (betslip). It creates a not wagered ticket. Once the player pays for the ticket its status is changed to open. 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:

Attribute
Data Type
Description

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

price

integer

Ticket price. Should be in integer format (cents). For example, for price 35.00 the value will be 3500

stake

integer

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

wht_amount

integer

Player withholding tax amount. Should be in integer format (cents). For example, for withholding tax amount 4.55 the value will be 455

wht

float

Player withholding tax percentage. For example, for withholding tax percentage 20.0% the value should be 20.0

ext_amount

integer

Ticket exercise tax amount. Should be in integer format (cents). For example, for exercise tax amount 1.25 the value will be 125

ext

float

Ticket exercise tax percentage. For example, for exercise tax percentage 12.5% the value should be 12.5

ext_type

string

gross_payout

integer

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

net_payout

integer

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

currency

string

atag

string

Affilate Tag or Affiliate ID

ticket_type

string

Sample request:

{
    "action": "ticket_reserve",
    "data": {
        "operator": "acme",
        "ticket_id": "668ef666333180bba97f0c93",
        "ticket_code": "CD4BDD",
        "player_id": "sometokenvalue",
        "price": 500,
        "stake": 444,
        "wht_amount": 240,
        "wht": 10.0,
        "ext_amount": 56,
        "ext": 12.5,
        "ext_type": "inclusive",
        "gross_payout": 2842,
        "net_payout": 2602,
        "currency": "USD",
        "atag": "atag_value",
        "ticket_type": "quickbet",
    },
}

Sample response:

Response: 200
Doesn't require any payload

Last updated