Betting.WebApi

<back to all web services

GetLocationTotalsReport

The following routes are available for this service:
All Verbs/qry/reports/locationTotals
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


class WinningsKind(IntEnum):
    ALL = 0
    PAID_OUT = 1
    PENDING_PAYOUT = 2


class DeviceType(IntEnum):
    CLERK_SERVICED_KIOSK = 0
    PERSONAL_ONLINE = 1
    SELF_SERVICE_KIOSK = 2
    UNKNOWN = -1


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetLocationTotalsReport:
    format: Optional[str] = None
    period_from: datetime.datetime = datetime.datetime(1, 1, 1)
    period_to: datetime.datetime = datetime.datetime(1, 1, 1)
    winnings_kind: Optional[WinningsKind] = None
    device_type: Optional[DeviceType] = None

Python GetLocationTotalsReport DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /qry/reports/locationTotals HTTP/1.1 
Host: api.sbbet.ath.cx 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"format":"String","periodFrom":"0001-01-01T00:00:00.0000000Z","periodTo":"0001-01-01T00:00:00.0000000Z","winningsKind":0,"deviceType":0}