Starnet.MontenegroTaxationAuthority.WebApi

<back to all web services

ReportBetPlacements

The following routes are available for this service:
POST/bets/place
namespace Starnet.MontenegroTaxationAuthority.WebApi.ServiceModel

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    type BetSource =
        | Landbase = 0
        | Web = 1

    [<AllowNullLiteral>]
    type TransactionDtoBase() = 
        member val transaction_id:String = null with get,set
        member val transaction_time:DateTime = new DateTime() with get,set
        member val transaction_amount:Decimal = new Decimal() with get,set
        member val game_name:String = null with get,set
        member val betting_place_id:String = null with get,set
        member val betting_terminal_id:String = null with get,set
        member val jmbg:String = null with get,set
        member val passport_number:String = null with get,set
        member val source:BetSource = new BetSource() with get,set
        member val identification_document_country:String = null with get,set
        member val identification_document_type:String = null with get,set

    [<AllowNullLiteral>]
    type TicketDto() = 
        member val sy:String = null with get,set
        member val nc:Int32 = new Int32() with get,set
        member val ac:Decimal = new Decimal() with get,set
        member val e:RecordList<RecordList<IBetEvent>> = null with get,set

    type BetType =
        | Real = 0
        | Promo = 1

    [<AllowNullLiteral>]
    type BetDto() = 
        inherit TransactionDtoBase()
        member val min_odds:Decimal = new Decimal() with get,set
        member val max_odds:Decimal = new Decimal() with get,set
        member val min_win:Decimal = new Decimal() with get,set
        member val max_win:Decimal = new Decimal() with get,set
        member val min_bonus:Decimal = new Decimal() with get,set
        member val max_bonus:Decimal = new Decimal() with get,set
        member val max_payout:Decimal = new Decimal() with get,set
        member val promo_amount:Decimal = new Decimal() with get,set
        member val ticket_id:String = null with get,set
        member val ticket:TicketDto = null with get,set
        member val bet_type:BetType = new BetType() with get,set

    [<AllowNullLiteral>]
    type ReportBetPlacements() = 
        member val BetPlacements:RecordList<BetDto> = null with get,set

    [<AllowNullLiteral>]
    type RecordList<T>() = 
        inherit ResizeArray<T>()

F# ReportBetPlacements 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 /bets/place HTTP/1.1 
Host: api.prod-mnta.webhop.biz 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"betPlacements":[{"min_odds":0,"max_odds":0,"min_win":0,"max_win":0,"min_bonus":0,"max_bonus":0,"max_payout":0,"promo_amount":0,"ticket_id":"String","ticket":{"sy":"String","nc":0,"ac":0,"e":[[{}]]},"bet_type":0,"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/jsonl
Content-Length: length

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