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

# Get an order

> One order with its full lifecycle across both chains.



## OpenAPI

````yaml /api-reference/openapi.yaml get /offers/{id}
openapi: 3.1.0
info:
  title: Ambi indexer API
  version: 1.0.0
  description: >
    Reads every Ambi event on Ethereum and each destination chain and serves the
    order book, order history, activity and stats. Served with the app at
    `/api`.
servers:
  - url: https://ambichain.org/api
    description: Served with the app
security: []
paths:
  /offers/{id}:
    get:
      summary: Get an order
      description: One order with its full lifecycle across both chains.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            example: '24'
      responses:
        '200':
          description: The order
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Order'
        '404':
          $ref: '#/components/responses/Error'
components:
  schemas:
    Order:
      type: object
      properties:
        id:
          type: string
        maker:
          $ref: '#/components/schemas/Address'
        token:
          $ref: '#/components/schemas/Address'
        amount:
          type: string
          description: Escrow
          base units: null
        bond:
          type: string
          description: Wei
        request:
          $ref: '#/components/schemas/Request'
        route:
          type: string
          example: base
        chain:
          type: integer
          example: 8453
        state:
          $ref: '#/components/schemas/State'
        timestamp:
          type: integer
        interests:
          type: array
          items:
            $ref: '#/components/schemas/Address'
        filler:
          oneOf:
            - $ref: '#/components/schemas/Address'
            - type: 'null'
        statement:
          type:
            - string
            - 'null'
        cancelProposedBy:
          type:
            - string
            - 'null'
        claim:
          description: The bonded claim on the route's inbox, once one is made
          oneOf:
            - type: 'null'
            - type: object
              properties:
                outcome:
                  type: string
                  enum:
                    - Paid
                    - ExpiredUnpaid
                claimant:
                  $ref: '#/components/schemas/Address'
                deadline:
                  type: integer
                  description: End of the dispute window
                  unix seconds: null
                disputer:
                  oneOf:
                    - $ref: '#/components/schemas/Address'
                    - type: 'null'
                resolved:
                  type: boolean
        payout:
          description: The matched filler's receive address, if they named one
          oneOf:
            - $ref: '#/components/schemas/Address'
            - type: 'null'
        integrator:
          description: Set when the order was listed with listVia
          oneOf:
            - type: 'null'
            - type: object
              properties:
                account:
                  $ref: '#/components/schemas/Address'
                bps:
                  type: integer
                  minimum: 1
                  maximum: 100
                  example: 50
        destinationOutcome:
          oneOf:
            - type: 'null'
            - type: object
              properties:
                outcome:
                  type: string
                  enum:
                    - Paid
                    - ExpiredUnpaid
                hash:
                  type: string
                timestamp:
                  type: integer
        lifecycle:
          type: array
          items:
            $ref: '#/components/schemas/Event'
    Address:
      type: string
      pattern: ^0x[0-9a-fA-F]{40}$
    Request:
      type: object
      properties:
        chain:
          type: string
          example: eip155:8453
        asset:
          type: string
          example: erc20:0xbaa5cc21fd487b8fcc2f632f3f4e8d37262a0842
        recipient:
          type: string
        routeData:
          type: string
          description: Router and token address
          packed: null
        amount:
          type: string
          description: Base units
        verifier:
          $ref: '#/components/schemas/Address'
        payBy:
          type: string
          description: Unix seconds
        proveBy:
          type: string
    State:
      type: string
      enum:
        - listed
        - matched
        - filled
        - refunded
        - canceled
    Event:
      type: object
      properties:
        type:
          type: string
          example: Matched
        chain:
          type: string
          example: ethereum
        block:
          type: integer
        position:
          type: integer
        hash:
          type: string
        timestamp:
          type: integer
        args:
          type: object
          additionalProperties: true
  responses:
    Error:
      description: Error
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.