Starnet.MontenegroTaxationAuthority.WebApi

<back to all web services

ReportBetPlacements

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

Namespace Global

    Namespace Starnet.Common

        Public Partial Class RecordList(Of T)
            Inherits List(Of T)
        End Class
    End Namespace

    Namespace Starnet.MontenegroTaxationAuthority.Common

        Public Partial Class BetDto
            Inherits TransactionDtoBase
            Public Overridable Property min_odds As Decimal
            Public Overridable Property max_odds As Decimal
            Public Overridable Property min_win As Decimal
            Public Overridable Property max_win As Decimal
            Public Overridable Property min_bonus As Decimal
            Public Overridable Property max_bonus As Decimal
            Public Overridable Property max_payout As Decimal
            Public Overridable Property promo_amount As Decimal
            Public Overridable Property ticket_id As String
            Public Overridable Property ticket As TicketDto
            Public Overridable Property bet_type As BetType
        End Class

        Public Enum BetSource
            Landbase = 0
            Web = 1
        End Enum

        Public Enum BetType
            Real = 0
            Promo = 1
        End Enum

        Public Partial Class TicketDto
            Public Overridable Property sy As String
            Public Overridable Property nc As Integer
            Public Overridable Property ac As Decimal
            Public Overridable Property e As RecordList(Of RecordList(Of IBetEvent))
        End Class

        Public Partial Class TransactionDtoBase
            Public Overridable Property transaction_id As String
            Public Overridable Property transaction_time As Date
            Public Overridable Property transaction_amount As Decimal
            Public Overridable Property game_name As String
            Public Overridable Property betting_place_id As String
            Public Overridable Property betting_terminal_id As String
            Public Overridable Property jmbg As String
            Public Overridable Property passport_number As String
            Public Overridable Property source As BetSource
            Public Overridable Property identification_document_country As String
            Public Overridable Property identification_document_type As String
        End Class
    End Namespace

    Namespace Starnet.MontenegroTaxationAuthority.WebApi.ServiceModel

        Public Partial Class ReportBetPlacements
            Public Overridable Property BetPlacements As RecordList(Of BetDto)
        End Class
    End Namespace
End Namespace

VB.NET 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.sbbet-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"}}