Check bet

Back to Guide

You can retrieve a bet by using the toteId that was provided by the placeBets request.

query GetBets {
  bets(toteId: "8779011e10f4462988f6b9b5364e9a00") {
    nodes {
      id
      toteId
      placement {
        status
        stake {
          currency {
            code
          }
          decimalAmount
        }
      }
      ticket {
        id
        toteId
      }
    }
  }
}
{
  "data": {
    "bets": {
      "nodes": [
        {
          "id": "bet-win-42acb0ae-5e1c-4d48-b412-644c9c4a56a0",
          "toteId": "8779011e10f4462988f6b9b5364e9a00",
          "placement": {
            "status": "ACCEPTED",
            "stake": {
              "currency": {
                "code": "GBP"
              },
              "decimalAmount": 1.5
            }
          },
          "ticket": {
            "id": "",
            "toteId": "6ff21d98-1e0c-453f-8b66-3cd301d3e529"
          }
        }
      ]
    }
  }
}