> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unitedmarket.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel multiple orders by hash

> Cancels between 1 and 100 selected orders by hash. This is distinct from cancel-all: only the supplied order hashes are considered. Ownership is checked for every order, and failures do not roll back successful cancellations.



## OpenAPI

````yaml /api-spec/openapi.yaml post /orders/cancel-many
openapi: 3.0.3
info:
  title: United Market API
  version: 1.0.0
  description: >-
    Public backend API for market data, trading, authentication, profiles,
    comments, and leaderboards.
servers:
  - url: https://api.unitedmarket.ai
    description: United Market backend
security: []
tags:
  - name: Markets
    description: >-
      Market discovery, market details, orderbooks, tickers, price history, and
      trades.
  - name: Orders
    description: Signed order submission, cancellation, order lookup, and balances.
  - name: Authentication
    description: SIWE wallet authentication.
  - name: Discovery
    description: Tags and market groups.
  - name: Social
    description: Comments, users, and leaderboard data.
  - name: Fees
    description: Effective trading fee rate per market.
  - name: Referral
    description: Referral codes, attribution, and reward summaries.
paths:
  /orders/cancel-many:
    post:
      tags:
        - Orders
      summary: Cancel multiple orders by hash
      description: >-
        Cancels between 1 and 100 selected orders by hash. This is distinct from
        cancel-all: only the supplied order hashes are considered. Ownership is
        checked for every order, and failures do not roll back successful
        cancellations.
      operationId: cancelOrdersMany
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CancelOrdersManyRequest'
      responses:
        '200':
          description: Cancellation batch processed; individual orders may have failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelOrdersManyResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
      security:
        - bearerAuth: []
components:
  schemas:
    CancelOrdersManyRequest:
      type: object
      required:
        - orderHashes
      properties:
        orderHashes:
          type: array
          minItems: 1
          maxItems: 100
          items:
            type: string
            pattern: ^0x[0-9a-fA-F]{64}$
          description: Exact order hashes to cancel.
        account:
          type: string
          description: >-
            Optional authorized wallet when the SIWE session controls multiple
            wallets.
    CancelOrdersManyResponse:
      type: object
      required:
        - cancelled
        - orderHashes
        - failed
      properties:
        cancelled:
          type: integer
          minimum: 0
          description: Number of successfully cancelled orders.
        orderHashes:
          type: array
          description: Hashes of successfully cancelled orders.
          items:
            type: string
        failed:
          type: array
          description: Orders that were not cancelled and their errors.
          items:
            $ref: '#/components/schemas/CancelOrderFailure'
    CancelOrderFailure:
      type: object
      required:
        - orderHash
        - error
      properties:
        orderHash:
          type: string
        error:
          type: string
    Error:
      type: object
      properties:
        message:
          type: string
        statusCode:
          type: integer
  responses:
    BadRequest:
      description: Invalid request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: SIWE access token returned by POST /auth/verify.

````