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

# Search order status



## OpenAPI

````yaml openapi/order-gateway.json GET /order-status
openapi: 3.1.0
info:
  title: ax-order-gateway
  description: ''
  license:
    name: ''
  version: 15.24.0
servers:
  - url: https://gateway.architect.exchange/orders
security: []
tags:
  - name: order-gateway
    description: Order gateway
paths:
  /order-status:
    get:
      tags:
        - order-gateway
      operationId: get_order_status
      parameters:
        - name: oid
          in: query
          description: >-
            Server order ID to query; e.g. "ORD-1234567890". Mutually exclusive
            with cid.
          required: false
          schema:
            type: string
        - name: cid
          in: query
          description: Client order ID to query. Mutually exclusive with oid.
          required: false
          schema:
            $ref: '#/components/schemas/ClientOrderId'
        - name: aid
          in: query
          description: >-
            Optional account ID selecting which account's cid namespace to
            resolve against. Defaults to the primary account.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Status of requested order
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetOrderStatusResponse'
        '400':
          description: Bad request - exactly one of oid or cid must be provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - session_token: []
components:
  schemas:
    ClientOrderId:
      type: integer
      format: int64
      minimum: 0
    GetOrderStatusResponse:
      type: object
      required:
        - status
      properties:
        status:
          $ref: '#/components/schemas/OrderStatus'
    ErrorResponse:
      type: object
      description: Standard error response format
      required:
        - error
      properties:
        error:
          type: string
    OrderStatus:
      type: object
      required:
        - symbol
        - order_id
        - state
      properties:
        clord_id:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/ClientOrderId'
        filled_quantity:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        order_id:
          type: string
        reject_message:
          type:
            - string
            - 'null'
        reject_reason:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/OrderRejectReason'
        remaining_quantity:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        state:
          $ref: '#/components/schemas/OrderState'
        symbol:
          type: string
    OrderRejectReason:
      type: string
      enum:
        - CLOSE_ONLY
        - INSUFFICIENT_MARGIN
        - MAX_OPEN_ORDERS_EXCEEDED
        - UNKNOWN_SYMBOL
        - EXCHANGE_CLOSED
        - INCORRECT_QUANTITY
        - INVALID_PRICE_INCREMENT
        - INCORRECT_ORDER_TYPE
        - PRICE_OUT_OF_BOUNDS
        - NO_LIQUIDITY
        - INSUFFICIENT_CREDIT_LIMIT
        - ORIGINAL_ORDER_TERMINATED
        - DUPLICATE_CLIENT_ORDER_ID
        - UNKNOWN
    OrderState:
      type: string
      enum:
        - PENDING
        - ACCEPTED
        - PARTIALLY_FILLED
        - FILLED
        - CANCELED
        - REJECTED
        - EXPIRED
        - REPLACED
        - DONE_FOR_DAY
        - UNKNOWN
  securitySchemes:
    session_token:
      type: http
      scheme: bearer
      description: User session token

````