Skip to main content
GET
/
session
/
lookupOrder
Look up an order
curl --request GET \
  --url https://api.4casters.io/session/lookupOrder \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "order": {
      "id": "<string>",
      "cancelled": true,
      "isTheBestOffer": true,
      "odds": 123,
      "OU": "<string>",
      "participant": "<string>",
      "participantLongName": "<string>",
      "spread": 123,
      "total": 123,
      "matchedRisk": "<string>",
      "unmatchedRisk": "<string>",
      "game": {
        "id": "<string>",
        "league": "<string>",
        "sport": "<string>",
        "start": "2023-11-07T05:31:56Z",
        "ended": true,
        "eventName": "<string>",
        "isFutures": true,
        "participants": [
          {
            "id": "<string>",
            "longName": "<string>",
            "shortName": "<string>",
            "mainPitcher": "<string>",
            "rotationNumber": "<string>",
            "futuresSide": "<string>",
            "score": 123
          }
        ]
      }
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.4casters.io/llms.txt

Use this file to discover all available pages before exploring further.

Get the current state of one of the caller’s orders. Returns the order with matchedRisk / unmatchedRisk accounting and a denormalized snapshot of the underlying game.

Request

GET /session/lookupOrder
orderID
string
required
A 4casters order id. Get one from data.unmatched.orderID of /session/v3/place or id from /user/getUnmatched.
curl "https://api.4casters.io/session/lookupOrder?orderID=ORDER_ID" \
  -H "Authorization: Bearer YOUR_TOKEN"

Response

data.order
object

Errors

StatusMeaning
403Not your order.
404Invalid order id.

Authorizations

Authorization
string
header
required

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

orderID
string
required

A 4casters order id (e.g. id from /user/getUnmatched).

Response

Order details

data
object