Cancel orders by user reference
Orders
Cancel by user reference
Cancel orders by their client-defined reference
POST
Cancel orders by user reference
Cancel every open order in the given game whoseDocumentation Index
Fetch the complete documentation index at: https://docs.4casters.io/llms.txt
Use this file to discover all available pages before exploring further.
userReference matches one of the supplied references. Useful when you’ve tagged orders with your own ids and want to cancel by those instead of tracking 4casters order ids.
Request
POST /session/cancelByReference
Scope the search to a single game.
Array of
userReference strings. Every open order in gameID whose userReference is in this array is cancelled.Response
Per-order cancel results. Same shape as Cancel an order.
Errors
| Status | Meaning |
|---|---|
400 | userReferences missing or not an array. |
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.
Response
Per-order cancel results