| POST | /bets/place |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| BetPlacements | body | RecordList<BetDto> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| min_odds | form | decimal | No | |
| max_odds | form | decimal | No | |
| min_win | form | decimal | No | |
| max_win | form | decimal | No | |
| min_bonus | form | decimal | No | |
| max_bonus | form | decimal | No | |
| max_payout | form | decimal | No | |
| promo_amount | form | decimal | No | |
| ticket_id | form | string | No | |
| ticket | form | TicketDto | No | |
| bet_type | form | BetType | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| transaction_id | form | string | No | |
| transaction_time | form | DateTime | No | |
| transaction_amount | form | decimal | No | |
| game_name | form | string | No | |
| betting_place_id | form | string | No | |
| betting_terminal_id | form | string | No | |
| jmbg | form | string | No | |
| passport_number | form | string | No | |
| source | form | BetSource | No | |
| identification_document_country | form | string | No | |
| identification_document_type | form | string | No |
| Name | Value | |
|---|---|---|
| Landbase | 0 | |
| Web | 1 |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| sy | form | string | No | |
| nc | form | int | No | |
| ac | form | decimal | No | |
| e | form | RecordList<RecordList<IBetEvent>> | No |
| Name | Value | |
|---|---|---|
| Real | 0 | |
| Promo | 1 |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /bets/place HTTP/1.1
Host: api.prod-mnta.webhop.biz
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
betPlacements:
[
{
min_odds: 0,
max_odds: 0,
min_win: 0,
max_win: 0,
min_bonus: 0,
max_bonus: 0,
max_payout: 0,
promo_amount: 0,
ticket_id: String,
ticket:
{
sy: String,
nc: 0,
ac: 0,
e:
[
[
{
}
]
]
},
bet_type: 0,
transaction_id: String,
transaction_time: 0001-01-01,
transaction_amount: 0,
game_name: String,
betting_place_id: String,
betting_terminal_id: String,
jmbg: String,
passport_number: String,
source: 0,
identification_document_country: String,
identification_document_type: String
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}