Starnet.MontenegroTaxationAuthority.WebApi

<back to all web services

ReportBetPlacements

The following routes are available for this service:
POST/bets/place
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class ReportBetPlacements
{
    open var betPlacements:RecordList<BetDto>? = null
}

open class RecordList<T> : ArrayList<T>()
{
}

open class BetDto : TransactionDtoBase()
{
    open var min_odds:BigDecimal? = null
    open var max_odds:BigDecimal? = null
    open var min_win:BigDecimal? = null
    open var max_win:BigDecimal? = null
    open var min_bonus:BigDecimal? = null
    open var max_bonus:BigDecimal? = null
    open var max_payout:BigDecimal? = null
    open var promo_amount:BigDecimal? = null
    open var ticket_id:String? = null
    open var ticket:TicketDto? = null
    open var bet_type:BetType? = null
}

open class TransactionDtoBase
{
    open var transaction_id:String? = null
    open var transaction_time:Date? = null
    open var transaction_amount:BigDecimal? = null
    open var game_name:String? = null
    open var betting_place_id:String? = null
    open var betting_terminal_id:String? = null
    open var jmbg:String? = null
    open var passport_number:String? = null
    open var source:BetSource? = null
    open var identification_document_country:String? = null
    open var identification_document_type:String? = null
}

enum class BetSource(val value:Int)
{
    @SerializedName("0") Landbase(0),
    @SerializedName("1") Web(1),
}

open class TicketDto
{
    open var sy:String? = null
    open var nc:Int? = null
    open var ac:BigDecimal? = null
    open var e:RecordList<RecordList<IBetEvent>>? = null
}

enum class BetType(val value:Int)
{
    @SerializedName("0") Real(0),
    @SerializedName("1") Promo(1),
}

Kotlin 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"}}