/
v3.0.11Get access

getBookingByIdV2

This method retrieves detailed information about a specific booking using its unique booking ID. The method returns all bets included in the booking, along with their selections and related match, market, competition, and sport identifiers.

Request parameters:

NameDescriptionTypeValuesDefaultSource
bookingId
Unique identifier of the booking to retrieve.number--
Key from responseId
This method is usually used with these methods:

Call example:

getBookingByIdV2({
  bookingId: 2741212
})

Response examples:

{
  code: 0,
  rid: 1551154541,
  data: {
    result: 0,
    result_text: null,
    details: {
      id: 626462,
      bets: [{
        amount: 0,
        bet_type: 1,
        input_method: 1,
        selections: [{
          selection_id: 6412964722,
          market_id: 2153052704,
          match_id: 28982372,
          competition_id: 541,
          sport_id: 1,
          price: 2.1
        }]
      }],
      match_ids: [28982372]
    }
  }
}

Response parameters:

NameDescriptionTypeValues
id
Booking IDnumber-
bets
List of bets included in the bookingarray-
└─
object
└─ amount
Stake amount for the betnumber-
└─ bet_type
Type of bet (e.g. single, multiple — depends on system mapping)string-
└─ input_method
soonnumber-
└─ selections
List of selections included in the bet.array-
└─
object
└─ selection_id
Unique selection identifiernumber-
└─ market_id
Unique market identifiernumber-
└─ match_id
Unique match identifiernumber-
└─ competition_id
Unique competition identifiernumber-
└─ sport_id
Unique sport identifiernumber-
└─ price
Odds value for the selection at the time of bookingnumber-
match_ids
List of unique match IDs (number) referenced in the bookingarray-