Starnet.MontenegroTaxationAuthority.WebApi

<back to all web services

ReportBetPayouts

The following routes are available for this service:
POST/bets/payout

export enum BetSource
{
    Landbase = 0,
    Web = 1,
}

export class TransactionDtoBase
{
    public transaction_id: string;
    public transaction_time: string;
    public transaction_amount: number;
    public game_name: string;
    public betting_place_id: string;
    public betting_terminal_id: string;
    public jmbg: string;
    public passport_number: string;
    public source: BetSource;
    public identification_document_country: string;
    public identification_document_type: string;

    public constructor(init?: Partial<TransactionDtoBase>) { (Object as any).assign(this, init); }
}

export enum WinType
{
    Regular = 0,
    Cashback = 1,
    Cashout = 2,
}

export interface IBetEvent
{
}

export class WinDto extends TransactionDtoBase
{
    public bet_transaction_id: string;
    public ticket_id: string;
    public win_odds: number;
    public win_type: WinType;
    public bonus: number;
    public cancel: boolean;
    public canceled_events: RecordList<IBetEvent>;

    public constructor(init?: Partial<WinDto>) { super(init); (Object as any).assign(this, init); }
}

export class ReportBetPayouts
{
    public betPayouts: RecordList<WinDto>;

    public constructor(init?: Partial<ReportBetPayouts>) { (Object as any).assign(this, init); }
}

export class RecordList<T> extends Array<T>
{

    public constructor(init?: Partial<RecordList<T>>) { super(); (Object as any).assign(this, init); }
}

TypeScript ReportBetPayouts DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /bets/payout HTTP/1.1 
Host: api.sbbet-prod-mnta.webhop.biz 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"betPayouts":[{"bet_transaction_id":"String","ticket_id":"String","win_odds":0,"win_type":0,"bonus":0,"cancel":false,"canceled_events":[{}],"transaction_id":"String","transaction_time":"0001-01-01T00:00:00.0000000Z","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: application/json
Content-Length: length

{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}