Skip to main content
POST
Cancel multiple orders
Cancel a batch of orders by id. The result is positional with the input sessionIDs array and may contain a mix of successful cancels and per-order failures.

Request

POST /session/cancelMultiple
array
required
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

array
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

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.

Body

application/json
sessionIDs
string[]
required

Response

Per-order cancel results

data
object[]