Superbet
POST `/be/tickets` endpoint
Create superbet 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 |
|
event | integer | Event id |
bets | list of integers | Each element is event bet id |
Sample request to create superbet
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 |
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 |
Sample response (status=200) to superbet
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