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

# Get Order Status

> API reference for GET /order-status



## OpenAPI

````yaml GET /order-status
openapi: 3.1.0
info:
  title: DFlow Aggregator
  description: DFlow Aggregator API
  license:
    name: BUSL-1.1
  version: 0.1.0
servers:
  - url: https://quote-api.dflow.net
security:
  - api_key: []
tags:
  - name: order
    description: Order API endpoints
  - name: swap
    description: Swap API endpoints
  - name: intent
    description: Intent trading endpoints
  - name: prediction_market
    description: Prediction market endpoints
  - name: venues
    description: Venue endpoints
  - name: tokens
    description: Token endpoints
paths:
  /order-status:
    get:
      tags:
        - order
      summary: >-
        Returns the status of an order. Only prediction market orders are
        supported.
      operationId: order_status_handler
      parameters:
        - name: signature
          in: query
          description: >-
            Base58-encoded transaction signature of the transaction received
            from the order endpoint.

            Only prediction market order signatures are supported.
          required: true
          schema:
            type: string
        - name: lastValidBlockHeight
          in: query
          description: Last block height at which the transaction is valid
          required: false
          schema:
            type:
              - integer
              - 'null'
            format: int64
            minimum: 0
      responses:
        '200':
          description: Order status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderStatusResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderStatusBadRequestResponse'
        '404':
          description: Order not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderStatusNotFoundResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderStatusInternalServerErrorResponse'
components:
  schemas:
    OrderStatusResponse:
      type: object
      required:
        - status
        - inAmount
        - outAmount
      properties:
        fills:
          type: array
          items:
            $ref: '#/components/schemas/Fill'
          description: >-
            Fills for the order. Specified if and only if the order has at least
            one fill.
        inAmount:
          type: string
          description: >-
            Total input amount filled, as a scaled integer. For example, 1 SOL
            is 1000000000.
        outAmount:
          type: string
          description: >-
            Total output amount filled, as a scaled integer. For example, 1 SOL
            is 1000000000.
        reverts:
          type: array
          items:
            $ref: '#/components/schemas/Revert'
          description: >-
            Reverts for the order. Specified if and only if the order has at
            least one revert.
        status:
          $ref: '#/components/schemas/OrderStatus'
          description: Status of the order
    OrderStatusBadRequestResponse:
      type: object
      required:
        - msg
        - code
      properties:
        code:
          $ref: '#/components/schemas/OrderStatusBadRequestCode'
        msg:
          type: string
      example:
        code: <enum<string>>
        msg: <string>
    OrderStatusNotFoundResponse:
      type: object
      required:
        - msg
        - code
      properties:
        code:
          $ref: '#/components/schemas/OrderStatusNotFoundCode'
        msg:
          type: string
      example:
        code: <enum<string>>
        msg: <string>
    OrderStatusInternalServerErrorResponse:
      type: object
      required:
        - msg
        - code
      properties:
        code:
          $ref: '#/components/schemas/OrderStatusInternalServerErrorCode'
        msg:
          type: string
      example:
        code: <enum<string>>
        msg: <string>
    Fill:
      type: object
      required:
        - signature
        - inputMint
        - inAmount
        - outputMint
        - outAmount
      properties:
        inAmount:
          type: string
          description: >-
            Input amount including fees, as a scaled integer. For example, 1 SOL
            is 1000000000.
        inputMint:
          type: string
          description: Input mint for the fill
        outAmount:
          type: string
          description: >-
            Output amount including fees, as a scaled integer. For example, 1
            SOL is 1000000000.
        outputMint:
          type: string
          description: Output mint for the fill
        signature:
          type: string
          description: Base58-encoded signature of the fill transaction
    Revert:
      type: object
      required:
        - signature
        - mint
        - amount
      properties:
        amount:
          type: string
          description: >-
            Amount returned to the user, as a scaled integer. For example, 1 SOL
            is 1000000000.
        mint:
          type: string
          description: Mint returned to the user
        signature:
          type: string
          description: Base58-encoded signature of the revert transaction
    OrderStatus:
      type: string
      enum:
        - pending
        - expired
        - failed
        - open
        - pendingClose
        - closed
    OrderStatusBadRequestCode:
      type: string
      enum:
        - invalid_signature
    OrderStatusNotFoundCode:
      type: string
      enum:
        - not_found
    OrderStatusInternalServerErrorCode:
      type: string
      enum:
        - internal_server_error
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. Contact hello@dflow.net to obtain an API
        key.

````