Max Stake Response

Destination
Source

Client

MTS

The Max Stake Response is returned to a Max Stake Request and contains the maximum stake that MTS will still accept for a given bet.

If a multi-bet ticket has been included in the request, only the first bet will be considered.

The only supported stake type is "cash".

Envelope and Content table:

The Envelope provides the content's (Max stake response) context and contains the following fields (besides Content):

  • correlationId

  • timestampUtc

  • operation

  • version

Example
Field Name
Field Description
Mandatory/Optional
Data Type
  "content": {

content

See Content object description below

M

Object

       ...........

       ...........

  },

  "correlationId": "21re09iwny",

correlationId

Same string as submitted by the client in the Max stake request

M

String

  "timestampUtc":1732700793000,

timestampUtc

Timestamp of the response placement (Unix time in milliseconds format), minimal: 1, maximum: 9223372036854776000

M

Integer

  "operation": "max-stake",

operation

Should be "max-stake" in the case of a Max stake response

M

String

  "version": "3.0"

version

Indicates the ticket format version

M

String

}

Content object (Max stake response)

The Content object includes the following fields:

  • type

  • bets

  • code

  • message

Please note that in the case of major ticket errors or internal system errors the content object has a different structure and contains "type":"error-reply" instead of "type":"max-stake-reply". For description see Error-reply Response.

Content object table

Example
Field Name
Field Description
Mandatory/Optional
Data Type
  "content": {

Object

      "type": "max-stake-reply",

type

Declaration of the content type, should be "max-stake-reply" in the case of a Max stake response

or "error-reply" in the case of major ticket errors or internal system errors (see also Error-reply Response).

M

String

      "bets": [

bets

Array of bets, minimal number of bets per Max stake response = 1, maximum number = 50

See description below

O

Array

           ......

           ......

],

      "code": 0,

code

Max stake response code, see the list of validation codes

M

Integer

      "message": "Transaction processed"

message

Readable Max stake response, minimal string length = 1, maximum string length = 128 (example is shortened)

O

String

  },

Bets array

The Bets array consists of the following fields. The array has the same syntax as the one contained in the Ticket Placement Request. The difference is that the stake here contains the max stake.

  • betId

  • context

  • selections

  • stake

Bets array table:

Example
Field Name
Field Description
Mandatory/Optional
Data Type
    "bets": [

bets

Array of bets, minimal number of bets per Max stake response = 1, maximum number = 50.

If a multi-bet ticket has been included in the request, only the first bet will be considered.

O

Array

      {

        "betId": "Ticket_2052_bet0",

betId

Unique ticket bet id as contained in the Max stake request

O

String

        "context": {

context

Bet context - additional information related to the bet

See the Bet context description on Ticket Placement Request

O

Object

           ......

           ......

         },

        "selections": [

selections

Array of selections that have been included in the bet of the Max stake request, however included are only the last level selections (of "type":"uf" or "type":"external")

M

Array

           ......

           ......

],

         "stake":   [

stake

The highest acceptable stake for a given bet.

If a multi-bet ticket has been included in the request, only the first bet will be considered.

The only supported stake type is "cash".

For syntax, see the Stake description on Ticket Placement Request.

M

Array

           ......

           ......

]

      }

    ],

Last updated

Was this helpful?