Starnet.MontenegroTaxationAuthority.WebApi

<back to all web services

ReportBetPlacements

The following routes are available for this service:
POST/bets/place
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Starnet.MontenegroTaxationAuthority.WebApi.ServiceModel;
using Starnet.Common;
using Starnet.MontenegroTaxationAuthority.Common;

namespace Starnet.Common
{
    public partial class RecordList<T>
        : List<T>
    {
    }

}

namespace Starnet.MontenegroTaxationAuthority.Common
{
    public partial class BetDto
        : TransactionDtoBase
    {
        public virtual decimal min_odds { get; set; }
        public virtual decimal max_odds { get; set; }
        public virtual decimal min_win { get; set; }
        public virtual decimal max_win { get; set; }
        public virtual decimal min_bonus { get; set; }
        public virtual decimal max_bonus { get; set; }
        public virtual decimal max_payout { get; set; }
        public virtual decimal promo_amount { get; set; }
        public virtual string ticket_id { get; set; }
        public virtual TicketDto ticket { get; set; }
        public virtual BetType bet_type { get; set; }
    }

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

    public enum BetType
    {
        Real = 0,
        Promo = 1,
    }

    public partial class TicketDto
    {
        public virtual string sy { get; set; }
        public virtual int nc { get; set; }
        public virtual decimal ac { get; set; }
        public virtual RecordList<RecordList<IBetEvent>> e { get; set; }
    }

    public partial class TransactionDtoBase
    {
        public virtual string transaction_id { get; set; }
        public virtual DateTime transaction_time { get; set; }
        public virtual decimal transaction_amount { get; set; }
        public virtual string game_name { get; set; }
        public virtual string betting_place_id { get; set; }
        public virtual string betting_terminal_id { get; set; }
        public virtual string jmbg { get; set; }
        public virtual string passport_number { get; set; }
        public virtual BetSource source { get; set; }
        public virtual string identification_document_country { get; set; }
        public virtual string identification_document_type { get; set; }
    }

}

namespace Starnet.MontenegroTaxationAuthority.WebApi.ServiceModel
{
    public partial class ReportBetPlacements
    {
        public virtual RecordList<BetDto> BetPlacements { get; set; }
    }

}

C# ReportBetPlacements 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/place HTTP/1.1 
Host: api.sbbet-prod-mnta.webhop.biz 
Accept: application/json
Content-Type: application/json
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: application/json
Content-Length: length

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