API Documentation
  • Introduction
  • Getting Started
  • Signature
  • Bet Card API
    • Calculator
      • Finance details
    • Jackpot
      • Get Jackpot Cards
      • Get Jackpot Card by code
      • Pick Jackpot Bets
    • Quicktip
      • Get Quicktip Cards
      • Get Quicktip Card by code
    • Smartbet
      • Get Smartbert cards
      • Get Smartbet Card by code
      • Generate a Smartbet
    • Quickbet
      • Get Quickbet Cards
      • Get Quickbet Card by code
    • Superbet
      • Get Superbet Cards
      • Get Superbet Card by code
  • Bet Engine API
    • Headers
    • Create ticket endpoint
      • Quicktip
      • Smartbet
      • Quickbet
      • Superbet
      • Jackpot
    • Reserve ticket endpoint
      • Quicktip
      • Smartbet
      • Quickbet
      • Superbet
      • Jackpot
    • Paid ticket endpoint
    • Get ticket endpoint
    • Get ticket list endpoint
    • Fields
    • Error codes
  • PAM Platform API
    • Headers
    • Signature
    • Ping
    • Identify
    • Create a ticket
    • Reserve the ticket
    • Update the ticket
    • Close the ticket
    • Refund the ticket
    • Win the ticket
    • Lose the ticket
    • Void the ticket
    • Discard the ticket
    • Rollback the ticket
  • SMS notifications
    • Headers
    • Signature
    • Notification types
      • otp
      • ticket_status
      • bet_result (not supported)
  • API Docs
    • [api /bc] Bet Card
    • [api /be] Bet Engine
Powered by GitBook
On this page
  1. PAM Platform API

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:

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

psp

string

Payment service provider or method used to pay for the ticket. E.g mobile, brite, pawapay

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_create",
    "data": {
        "operator": "acme",
        "ticket_id": "668ef666333180bba97f0c93",
        "ticket_code": "CD4BDD",
        "player_id": "sometokenvalue",
        "psp": "mobile",
        "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
PreviousIdentifyNextReserve the ticket

Last updated 2 months ago

Exercise tax type (see )

Currency code in three letter format

Ticket Type (see )

Fields
Fields
ISO 4217