POST | /bets/cancel |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
BetCancelations | body | List<BetCancelation> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | string | No | |
Origin | form | Origin | No | |
BetCanceledAt | form | DateTime | No | |
PaymentOrigin | form | PaymentOrigin | No | |
PayinRecap | form | PayinRecap | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Device | form | Reference | No | |
Location | form | Reference | No | |
LocationGroup | form | Reference | No | |
Organization | form | Reference | No | |
ProductInstance | form | ProductInstanceRef | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | string | No | |
Value | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | string | No | |
Name | form | string | No | |
Product | form | ProductReference | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | string | No | |
Value | form | string | No | |
Category | form | ProductCategory | No | |
ProductProvider | form | Reference | No |
Name | Value | |
---|---|---|
Sportsbook | 0 | |
RNG | 1 |
Name | Value | |
---|---|---|
POS | 0 | |
SMS | 1 | |
Internet | 2 |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Payin | form | decimal | No | |
TaxAmount | form | decimal | No | |
Stake | form | decimal | 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 /bets/cancel HTTP/1.1
Host: tafbihapi.mozzart.ath.cx
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
betCancelations:
[
{
id: String,
origin:
{
device:
{
id: String,
value: String
},
location:
{
id: String,
value: String
},
locationGroup:
{
id: String,
value: String
},
organization:
{
id: String,
value: String
},
productInstance:
{
id: String,
name: String,
product:
{
id: String,
value: String,
category: 0,
productProvider:
{
id: String,
value: String
}
}
}
},
betCanceledAt: 0001-01-01,
paymentOrigin: 0,
payinRecap:
{
payin: 0,
taxAmount: 0,
stake: 0
}
}
]
}
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 } }