Pular para o conteúdo principal
GET
Get bet by ID or txID
Consulta uma única aposta (casada, liquidada ou oferta aberta) que pertence à conta autenticada. Passe ou id ou txID, não ambos.

Requisição

GET /user/getBetByID
string
id da aposta de um endpoint de listagem como /user/getMatchedBets.
string
Id de transação, p. ex. o wagerRequestID ou txID que /session/v3/place retorna.
Você deve passar exatamente um de id ou txID.

Resposta

A forma de bet depende do estado atual da aposta:
  • Uma aposta liquidada retorna a forma GradedWager, incluindo risk, win, fee e result.
  • Uma aposta casada retorna a forma MatchedBet.
  • Uma oferta aberta retorna a forma UnmatchedOrder.
Observe que, ao contrário da maioria dos endpoints, este retorna a aposta no nível superior (não sob data).

Exemplo

Erros

Autorizações

Authorization
string
header
obrigatório

Pass your auth token in the Authorization header. The Bearer prefix is optional; the server also accepts a signed auth cookie or a token field in the request body.

Parâmetros de consulta

id
string

Bet id from a list endpoint.

txID
string

Transaction id (e.g. wagerRequestID or txID returned from place).

Resposta

The bet, in matched, graded, or open form depending on its current state.

bet
object

A bet that has been matched but not yet graded.