OUTCOME · Create or advance
What changes
Creates or advances only the order resource described by this contract after authorization, validation, policy, and idempotency gates pass.
Markets and execution
/api/v2/orders/{order_uuid}/cancellationsPurpose and usage
Request cancellation of an eligible open order.
When to use it
Call this when a market-data, trading, risk, or reconciliation client needs to apply the documented order transition after re-reading the current authoritative state so it can understand market, order, trade, position, or collateral state without confusing a read model with execution authority.
OUTCOME · Create or advance
Creates or advances only the order resource described by this contract after authorization, validation, policy, and idempotency gates pass.
WHY IT MATTERS
ISOLATION + AUTHORITY
The authenticated owner, market, order, position, matching, risk, publisher, and settlement boundaries remain distinct. Documentation, contract visibility, and read access grant no execution authority; possession of a write scope still cannot bypass market status, risk, admission, allowlist, suspension, matching, publisher, or settlement gates. Current trading, matching, prediction, ingress, publisher, allowlist, suspension, market-status, and traffic controls remain frozen unless separately approved through their controlling process.
BEFORE YOU CALL
WHAT TO DO NEXT
AGENT GUIDANCE
Confirm the market admits orders and your account has the required permissions and collateral. A listed route does not enable a suspended market or select a matching engine. HTTP 202 means acceptance—not execution or settlement. After an ambiguous response, reconcile order state and reuse the same Idempotency-Key only for the same logical request.
Use the deployed OpenAPI for exact parameters, schemas and security requirements. The tables below provide integration guidance.
Open this operation in OpenAPIRequest and response
Examples illustrate integration intent; the referenced OpenAPI operation and component schemas define the executable shape.
PARAMETERS
AuthorizationheaderRequiredBearer tokenCredential containing the trading:write scope.EXAMPLEBearer hc_live_…
Idempotency-KeyheaderRequiredASCII string · 1–128Caller-generated key reused for every retry of the same logical mutation.EXAMPLElaunch-treasury-v1-001
order_uuidpathRequiredsafe identifier · 8–128Canonical owner-scoped order identifier.EXAMPLEorder-1234
venuebodyOptionaldex | securities | virtualVenue containing the order; defaults to dex.
reasonbodyOptionalstringOptional operator-readable cancellation rationale.
REQUEST
{
"venue": "securities",
"reason": "client request"
}RESPONSES
{
"order_id": "order-1234",
"status": "CANCELLED",
"revision": 3,
"market_sequence": 184224
}{
"code": "invalid_json",
"message": "The JSON body or Idempotency-Key header is malformed."
}invalid_json{
"code": "invalid_credentials",
"message": "The bearer credential is missing, expired, or invalid."
}invalid_credentials{
"code": "insufficient_scope",
"message": "The credential lacks trading:write authority."
}insufficient_scope{
"code": "order_not_found",
"message": "The owner-scoped order, trade, position, or market does not exist in the selected venue."
}order_not_found{
"code": "insufficient_collateral",
"message": "Core could not reserve the replacement or closure requirement before submission; the existing order remains unchanged."
}insufficient_collateral{
"code": "order_conflict",
"message": "The idempotency key or authoritative lifecycle state conflicts with the request."
}order_conflict{
"code": "order_rejected",
"message": "The canonical mutation or authoritative matching implementation rejected the request."
}order_rejected{
"code": "matching_unavailable",
"message": "Core or the current authoritative matching implementation is unavailable."
}matching_unavailableOPERATIONAL NOTES
This route is implemented in canonical gateway source and appears in the production OpenAPI snapshot observed 2026-10-02T23:27:55.510Z. Authentication, tenant, feature, venue, and market policy still apply.
Verify the exact production OpenAPI operation Return to the V2 directory