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

# Get an order price

> Returns the fees, amount out, native messaging fee and estimated latency a quote for this order would carry right now, without a transaction. A price is not signed and cannot be submitted: use it to show live fees, and request a quote from `GET /v1/transit/orders/quote` when your user is ready to place the order. A price is refused for the same reasons and with the same errors as a quote for the same order, except the open quote limits, which apply to quotes only.



## OpenAPI

````yaml /v1.0.0/api-reference/openapi.yml get /v1/transit/orders/price
openapi: 3.0.0
info:
  title: Paxos Labs API
  description: >
    Paxos Labs API V2.


    ---


    # API overview


    This document describes shared behavior and conventions for the Paxos Labs
    API (REST and GraphQL).


    <details>

    <summary><strong>Health check</strong></summary>


    A **health** endpoint is available for orchestrators (GitHub Actions, etc).


    | Item         |
    Details                                                                                
    |

    | ------------ |
    ---------------------------------------------------------------------------------------
    |

    | **Path**     | `GET /health` (no version prefix; no API key or rate limit
    applied).                    |

    | **Response** | `200` with Terminus-style JSON when healthy; `503` when
    unhealthy (e.g. database down). |


    **Docker / healthcheck:** If your healthcheck uses `curl` (e.g. `curl -f
    http://localhost:3000/health`), ensure your image has curl installed. Base
    images like `node:bullseye-slim` or `node:alpine` do not—install it (e.g.
    `RUN apk add --no-cache curl` for Alpine).


    </details>


    <details>

    <summary><strong>GraphQL endpoint</strong></summary>


    A **GraphQL** API is available in addition to REST. Use it to query address
    book and vault data with a single request and flexible field selection.


    | Item                         |
    Details                                                              |

    | ---------------------------- |
    -------------------------------------------------------------------- |

    | **Altair (interactive IDE)** |
    [https://api.paxoslabs.com/altair](https://api.paxoslabs.com/altair) |

    | **GraphQL endpoint**         | Same base URL with path `/graphql` for
    POST.                         |

    | **Authentication**           | Same as REST: send `x-api-key`
    header.                               |


    Open the Altair link in a browser to explore the schema and run queries.


    </details>


    <details>

    <summary><strong>Filter query parameter syntax</strong></summary>


    List endpoints that support a `filter` query parameter use a single string
    with **keys**, **operators**, and **combinators**. This keeps the number of
    query params small (AIP-160 style) while allowing flexible filtering.


    <details>

    <summary><strong>Operators</strong></summary>


    | Operator | Meaning    | Example            |

    | -------- | ---------- | ------------------ |

    | `=`      | Equals     | `chainId=1`        |

    | `!=`     | Not equals | `status!=REFUNDED` |


    </details>


    <details>

    <summary><strong>Combinators</strong></summary>


    | Combinator | Meaning                                      |
    Example                         |

    | ---------- | -------------------------------------------- |
    ------------------------------- |

    | `AND`      | All conditions must match (case-insensitive) | `chainId=1 AND
    name="Treasury"` |

    | `OR`       | Any condition may match (case-insensitive)   | `chainId=1 OR
    chainId=137`      |


    </details>


    <details>

    <summary><strong>Value formatting</strong></summary>


    | Type     | Use case                                  |
    Example                   |

    | -------- | ----------------------------------------- |
    ------------------------- |

    | Unquoted | Numbers, booleans, single-token values    | `chainId=1`,
    `valid=true` |

    | Quoted   | Strings with spaces or special characters | `name="Treasury
    Wallet"`  |

    | Escape   | Literal quote inside a quoted string      |
    `\"`                      |


    Allowed **keys** and **value types** (number, hex address, string, etc.) are
    defined per endpoint in the API docs and validated by the server.


    </details>


    <details>

    <summary><strong>Possible combinations (examples)</strong></summary>


    | Category              |
    Example                                             |

    | --------------------- |
    --------------------------------------------------- |

    | Single condition      |
    `chainId=1`                                         |

    | Single condition      |
    `status!=REFUNDED`                                  |

    | AND                   | `chainId=1 AND
    name="Treasury"`                     |

    | AND                   | `vaultAddress=0x123... AND
    chainId=1`               |

    | OR                    | `chainId=1 OR
    chainId=137`                          |

    | OR                    | `status=PENDING OR
    status=COMPLETE`                 |

    | Mixed AND and OR      | `chainId=1 AND (status=PENDING OR
    status=COMPLETE)` |

    | Equals and not-equals | `chainId=1 AND
    status!=REFUNDED`                    |

    | Equals and not-equals |
    `name!=""`                                          |


    Mixed AND and OR: AND has higher precedence; use parentheses for grouping.
    Without grouping, evaluation is left-to-right per implementation.


    </details>


    <details>

    <summary><strong>Implementation note</strong></summary>


    | Item      |
    Details                                                                   |

    | --------- |
    ------------------------------------------------------------------------- |

    | Location  |
    `src/common/utils/filter.util.ts`                                         |

    | Supported | `=`, `!=`, `AND`,
    `OR`                                                    |

    | Errors    | Invalid keys or value types return `400` with the standard
    error envelope |


    </details>


    </details>
  version: '2.0'
  contact: {}
servers:
  - url: https://api.paxoslabs.com/
    description: Production
security: []
tags: []
paths:
  /v1/transit/orders/price:
    get:
      tags:
        - Transit
        - Transit
      summary: Get an order price
      description: >-
        Returns the fees, amount out, native messaging fee and estimated latency
        a quote for this order would carry right now, without a transaction. A
        price is not signed and cannot be submitted: use it to show live fees,
        and request a quote from `GET /v1/transit/orders/quote` when your user
        is ready to place the order. A price is refused for the same reasons and
        with the same errors as a quote for the same order, except the open
        quote limits, which apply to quotes only.
      operationId: getOrderPrice
      parameters:
        - name: offerAmount
          required: true
          in: query
          description: >-
            Amount of `offerAsset` to send, in token base units (decimal
            string). Must meet the route's `minOrderSize` (see `GET
            /v1/transit/routes`).
          schema:
            example: '300000000'
            type: string
        - name: offerAsset
          required: true
          in: query
          description: Asset being offered (debited on the source chain).
          schema:
            example: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'
            type: string
        - name: sourceChainId
          required: true
          in: query
          description: >-
            EVM chain ID of the source chain (where the transaction is
            submitted).
          schema:
            type: number
            example: 1
        - name: wantAsset
          required: true
          in: query
          description: Asset desired (credited on the destination chain).
          schema:
            example: '0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168'
            type: string
        - name: destinationChainId
          required: true
          in: query
          description: >-
            EVM chain ID of the destination chain. Server translates this to the
            destination chain EID.
          schema:
            example: 4663
            type: number
        - name: integratorFee
          required: false
          in: query
          description: >-
            Integrator fee charged on offerAsset in the asset's base units. For
            example, if the offerAsset is USDC, which has 6 decimals, provide a
            value of 10000 to charge a fee of $0.01. When provided,
            integratorFeeReceiver is required.
          schema:
            type: string
        - name: integratorFeeReceiver
          required: false
          in: query
          description: >-
            Address to receive the integrator fee. Required when integratorFee
            is provided.
          schema:
            type: string
        - name: distributorCode
          required: false
          in: query
          description: >-
            Optional 32-byte hex code (0x + 64 hex chars) tagging the source of
            funds. Emitted on-chain with the order. When omitted, uses the
            organization's default distributor code if one is configured,
            otherwise defaults to the zero hash. Only your organization's
            distributor code or the zero hash may be set: any other code is
            refused with 403, and setting a non-zero code without an API key is
            refused with 401.
          schema:
            type: string
        - name: userAddress
          required: false
          in: query
          description: >-
            User wallet address that receives the wantAsset on the destination
            chain.
          schema:
            example: '0x1234567890abcdef1234567890abcdef12345678'
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetOrderPriceResponseDto'
        '400':
          description: >-
            Invalid request parameters, an order amount below the route minimum,
            or an order amount above what the route can currently accept. On a
            dynamically priced route, an amount at or above the listed
            `minOrderSize` can still be refused as below the minimum; the
            message states the amount that would be accepted. An order larger
            than the route can fill at once can still be accepted; it then fills
            in parts over time, so delivery can take longer than
            `estimatedLatencyMs`. The capacity message starts with
            `EXCEEDS_CAPACITY:` and states the largest amount the route
            currently accepts, or that no amount can currently be filled. An
            order above the route's maximum order size is refused with a message
            that starts with `EXCEEDS_MAX_ORDER_SIZE:` and states the maximum.
            Unlike the capacity refusal, this limit does not move with
            liquidity, so retrying later does not help. An order refused because
            the route has too much volume in flight starts with
            `EXCEEDS_MAX_PENDING_VOLUME:`; retrying later can succeed as pending
            orders are filled.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '401':
          description: A non-zero distributorCode was set without an API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '403':
          description: >-
            Transit is not enabled for your organization, or distributorCode is
            not your organization's distributor code
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '404':
          description: No route found for the requested asset pair / chains
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '429':
          description: >-
            Rate limit reached. Retry after the number of seconds in the
            `Retry-After` header. Every response carries `X-RateLimit-Limit`,
            `X-RateLimit-Remaining`, and `X-RateLimit-Reset` (Unix time in
            seconds) so you can slow down before you reach the limit.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '503':
          description: The order cannot be priced right now; retry later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
      security:
        - {}
        - api-key: []
components:
  schemas:
    GetOrderPriceResponseDto:
      type: object
      properties:
        amountOut:
          type: string
          description: >-
            Net amount credited toward the order after fees, in want-asset base
            units (decimal string). Equals offerAmount - protocolFee and
            integratorFee, converted to want-asset base units.
          example: '992500'
        protocolFee:
          type: string
          description: >-
            Total protocol fee charged on the order, in offer-asset base units,
            as a string. Never negative. Equals fillCostFee + conversionRateFee.
          example: '5000'
        fillCostFee:
          type: string
          description: >-
            Part of the protocol fee – this is an estimation of the transfer
            cost we pay after conversion to deliver funds to the end user, in
            offer-asset base units.
          example: '2500'
        conversionRateFee:
          type: string
          description: >-
            Part of the protocol fee - the conversion rate fee we charge to
            convert the offer asset into the want asset, in offer-asset base
            units. On a dynamically priced route it reflects the live liquidity
            cost for this order amount rather than a fixed rate.
          example: '2500'
        conversionRateHundredthsBps:
          type: number
          description: >-
            Rate applied to offer amount to get the conversionRateFee in
            hundredths of bps. For example, a value of 500 represents a 5 bip
            fee rate, or 0.05%.
          example: 500
        integratorFee:
          type: string
          description: >-
            Integrator fee charged on the order, in offer-asset base units. "0"
            when no integrator fee applies.
          example: '0'
        totalFees:
          type: string
          description: >-
            Total fees charged on the order, in offer-asset base units. Sum of
            protocolFee and integratorFee.
          example: '7500'
        estimatedLatencyMs:
          type: number
          description: >-
            Estimated time for order fulfillment in milliseconds, based on the
            asset pair and order volume. Undefined when no SLA data is available
            for the route.
          example: 300000
        nativeFee:
          type: string
          description: >-
            Native token amount, in wei (decimal string), the order transaction
            must carry to pay the cross-chain messaging fee. A quote for the
            same order sends this as `transaction.value`. "0" on same-chain
            routes.
          example: '41230000000000'
        pricedAt:
          type: string
          description: >-
            When this price was computed (RFC 3339, UTC). Fees move with live
            liquidity and gas, so refresh a price rather than reuse an old one.
          example: '2026-11-23T15:04:05Z'
      required:
        - amountOut
        - protocolFee
        - fillCostFee
        - conversionRateFee
        - conversionRateHundredthsBps
        - integratorFee
        - totalFees
        - nativeFee
        - pricedAt
    ErrorResponseDto:
      type: object
      properties:
        error:
          description: Error object containing details
          allOf:
            - $ref: '#/components/schemas/ErrorObjectDto'
      required:
        - error
    ErrorObjectDto:
      type: object
      properties:
        code:
          type: number
          description: HTTP status code
          example: 400
        message:
          type: string
          description: Human-readable error message
          example: Invalid filter syntax.
        status:
          type: string
          description: Error status enum value
          enum:
            - UNKNOWN
            - INVALID_ARGUMENT
            - NOT_FOUND
            - PERMISSION_DENIED
            - UNAUTHENTICATED
            - RESOURCE_EXHAUSTED
            - INTERNAL
            - METHOD_NOT_ALLOWED
            - UNAVAILABLE
          example: INVALID_ARGUMENT
        details:
          description: Additional error details
          type: array
          items:
            $ref: '#/components/schemas/ErrorDetailDto'
      required:
        - code
        - message
        - status
    ErrorDetailDto:
      type: object
      properties:
        '@type':
          type: string
          description: Type URL identifying the error detail schema
          example: type.paxoslabs.dev/errors/BadRequest
        fieldViolations:
          description: Field-level violations for validation errors
          type: array
          items:
            $ref: '#/components/schemas/FieldViolationDto'
      required:
        - '@type'
    FieldViolationDto:
      type: object
      properties:
        field:
          type: string
          description: The field that caused the violation
          example: filter
        description:
          type: string
          description: Description of the violation
          example: vaultAddress 0x0x is an invalid hex address.
      required:
        - field
        - description
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: 'API key in format: pxl_<public_id>_<secret>'

````

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