Get bet by ID or txID
User
Get bet by ID
Look up a single bet by id or transaction id
GET
Get bet by ID or txID
Look up a single bet (matched, graded, or open offer) belonging to the caller. Pass eitherDocumentation Index
Fetch the complete documentation index at: https://docs.4casters.io/llms.txt
Use this file to discover all available pages before exploring further.
id or txID, not both.
Request
GET /user/getBetByID
Bet
id from a list endpoint such as /user/getMatchedBets.Transaction id, e.g. the
wagerRequestID or txID returned by /session/v3/place.id or txID.
Response
The shape ofbet depends on the bet’s current state:
- A graded bet returns the GradedWager shape, including
risk,win,fee, andresult. - A matched bet returns the MatchedBet shape.
- An open offer returns the UnmatchedOrder shape.
data).
Example
Errors
| Status | Meaning |
|---|---|
400 | Both id and txID missing, or no bet found for the supplied identifier. |
Authorizations
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.
Query Parameters
Bet id from a list endpoint.
Transaction id (e.g. wagerRequestID or txID returned from place).
Response
The bet, in matched, graded, or open form depending on its current state.
A bet that has been matched but not yet graded.
- Option 1
- Option 2
- Option 3