Quicktip
POST `/be/tickets` endpoint
Create quicktip ticket.
Request fields:
Attribute | Data Type | Description |
---|---|---|
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 |
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 |
source | string | Ticket source (see Fields) |
type | string |
|
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 |
events | list of objects | |
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 |
Sample request to create quicktip
ticket:
Response fields:
Attribute | Data Type | Description |
---|---|---|
id | string | Ticket id |
code | string | Ticket code |
stake | integer | Ticket amount. Should be in integer format (cents). For example, for stake |
currency | string | Currency code in ISO 4217 three letter format |
payout | integer | Ticket payout. Should be in integer format (cents). For example, for payout |
tax | integer | Player withholding tax. Should be in integer format (cents). For example, for tax |
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 |
|
atag | string | Optional affiliate Tag or Affiliate ID. If parameter is present then it is added to the |
user_id | string | User ID from PAM |
created | string | Ticket created datetime |
updated | string | Ticket updated datetime |
odds | float | Product of odds for all events for ticket |
Sample response (status=200) to quickbet
ticket:
Response status codes:
Status Code | Interpretation |
---|---|
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):
Error response (status=400):
Last updated