Cancel multiple orders
Orders
Cancel multiple orders
Cancel a batch of orders by id
POST
Cancel multiple orders
Cancel a batch of orders by id. The result is positional with the inputDocumentation Index
Fetch the complete documentation index at: https://docs.4casters.io/llms.txt
Use this file to discover all available pages before exploring further.
sessionIDs array and may contain a mix of successful cancels and per-order failures.
Request
POST /session/cancelMultiple
Array of order ids to cancel. Every id must be a valid
ObjectID — if any one of them is malformed the whole request fails with 400.Response
Per-order cancel results. Same shape as Cancel an order. On failure, entries include
{ success: false, reason: "..." } (no sessionID field for invalid-id / not-found / not-yours rejections).Example
Errors
| Status | Meaning |
|---|---|
400 | sessionIDs missing or not an array, or any id malformed. |
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.
Body
application/json
Response
Per-order cancel results