Starnet.MontenegroTaxationAuthority.WebApi

<back to all web services

ReportBetPayouts

The following routes are available for this service:
POST/bets/payout
"use strict";
/** @typedef {number} */
export var BetSource;
(function (BetSource) {
    BetSource[BetSource["Landbase"] = 0] = "Landbase"
    BetSource[BetSource["Web"] = 1] = "Web"
})(BetSource || (BetSource = {}));
export class TransactionDtoBase {
    /** @param {{transaction_id?:string,transaction_time?:string,transaction_amount?:number,game_name?:string,betting_place_id?:string,betting_terminal_id?:string,jmbg?:string,passport_number?:string,source?:BetSource,identification_document_country?:string,identification_document_type?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    transaction_id;
    /** @type {string} */
    transaction_time;
    /** @type {number} */
    transaction_amount;
    /** @type {string} */
    game_name;
    /** @type {string} */
    betting_place_id;
    /** @type {string} */
    betting_terminal_id;
    /** @type {string} */
    jmbg;
    /** @type {string} */
    passport_number;
    /** @type {BetSource} */
    source;
    /** @type {string} */
    identification_document_country;
    /** @type {string} */
    identification_document_type;
}
/** @typedef {number} */
export var WinType;
(function (WinType) {
    WinType[WinType["Regular"] = 0] = "Regular"
    WinType[WinType["Cashback"] = 1] = "Cashback"
    WinType[WinType["Cashout"] = 2] = "Cashout"
})(WinType || (WinType = {}));
export class WinDto extends TransactionDtoBase {
    /** @param {{bet_transaction_id?:string,ticket_id?:string,win_odds?:number,win_type?:WinType,bonus?:number,cancel?:boolean,canceled_events?:RecordList<IBetEvent>,transaction_id?:string,transaction_time?:string,transaction_amount?:number,game_name?:string,betting_place_id?:string,betting_terminal_id?:string,jmbg?:string,passport_number?:string,source?:BetSource,identification_document_country?:string,identification_document_type?:string}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /** @type {string} */
    bet_transaction_id;
    /** @type {string} */
    ticket_id;
    /** @type {number} */
    win_odds;
    /** @type {WinType} */
    win_type;
    /** @type {number} */
    bonus;
    /** @type {boolean} */
    cancel;
    /** @type {RecordList<IBetEvent>} */
    canceled_events;
}
export class ReportBetPayouts {
    /** @param {{betPayouts?:RecordList<WinDto>}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {RecordList<WinDto>} */
    betPayouts;
}
/** @typedef T {any} */
export class RecordList extends Array {
    constructor(init) { super(init); Object.assign(this, init) }
}

JavaScript ReportBetPayouts DTOs

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

HTTP + CSV

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.prod-mnta.webhop.biz 
Accept: text/csv
Content-Type: text/csv
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: text/csv
Content-Length: length

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