Four cancel variants are supported. All of them respond with the same envelope: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.
{ requestID, data: [ ...CancelResponsePayload ] }.
Cancel response payload
Every successful cancel returns one or more entries shaped like this. Note the field-name casing flips between request (orderId/gameId, lowercase d) and response (orderID/gameID, uppercase ID).
true when the order was cancelled.ID of the cancelled order.
Amount that was already filled before the cancel landed.
Always
0 after a cancel — the offered side is wound down to zero.Amount that was unmatched at cancel time.
Odds of the cancelled order in American format, from the maker’s perspective.
Participant ID (moneyline/spread) or
over/under (totals).Spread or total number;
null for moneylines.Game the cancelled order was on.
The
userReference you set when placing the order, if any.Human-readable description of the bet (e.g.
"Dallas Mavericks +3.5").Cancel by ID
Cancel a single order by its order ID.Request
Response
Cancel multiple
Cancel a specific set of orders by ID.Request
Response
data contains one entry per order ID; check each success flag.
Cancel all by game
Cancel every open order you have on a single game. Optionally narrow the cancel to a specific market by passingtype, side, and/or market.
Request
Game whose orders should be cancelled.
Optional — filter to a single market type:
moneyline, spread, total, or moneyline1x2.Optional — participant ID (moneyline/spread) or
over/under (totals).Optional — market identifier (e.g.
main).Response
Cancel all
Cancel every open order on the account.Request
Response
Errors
When a cancel cannot be processed, the server responds with the standard error envelope (nodata field):
error values:
| Error | When |
|---|---|
invalid order ID format | cancelById orderId is not a valid ObjectID. |
order not found | The order ID does not exist. |
unauthorized: order does not belong to user | You’re trying to cancel another user’s order. |
order already cancelled | The order was already cancelled. |
order is expired | The order expired before the cancel landed. |
order already graded | The order has already been graded (settled). |
game not found | The referenced game is not in the cache. |
Failed to process cancelMultiple | An unexpected error processing a cancelMultiple batch. |
Failed to process cancelAll | An unexpected error processing cancelAll. |
Failed to process cancelAllByGame | An unexpected error processing cancelAllByGame. |
cancelMultiple, cancelAllByGame, cancelAll) per-order failures appear in data with success: false and a description explaining the reason — only an envelope-level error indicates the whole request failed.