POST | /cmd/bets/v2 |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
SlipId | body | string | No | |
Bettor | body | Ref | No | |
Origin | body | Origin | No | |
PlacedAt | body | DateTime | No | |
Bets | body | List<Bet> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | string | Yes | |
Val | form | string | Yes |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Application | form | BettingApp | No | |
IP | form | string | No | |
Organization | form | Ref | No | |
Region | form | Ref | No | |
LocationGroup | form | Ref | No | |
Location | form | Ref | No | |
Device | form | Ref | No | |
Clerk | form | Ref | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Name | form | string | No | |
Version | form | string | No | |
IsSelfService | form | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | string | No | |
OrdinalOfAvailableRoundToAssignTo | form | int | No | |
Content | form | string | No | |
Stake | form | decimal | No | |
Payload | form | Dictionary<string, string> | No |
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 /cmd/bets/v2 HTTP/1.1
Host: s4w2.api.bengabet.webhop.biz
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
slipId: String,
bettor:
{
id: String,
val: String
},
origin:
{
application:
{
name: String,
version: String,
isSelfService: False
},
ip: String,
organization:
{
id: String,
val: String
},
region:
{
id: String,
val: String
},
locationGroup:
{
id: String,
val: String
},
location:
{
id: String,
val: String
},
device:
{
id: String,
val: String
},
clerk:
{
id: String,
val: String
}
},
placedAt: 0001-01-01,
bets:
[
{
id: String,
ordinalOfAvailableRoundToAssignTo: 0,
content: String,
stake: 0,
payload:
{
String: 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 } }