> ## 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.

# Order Pricing

> Show live fees for a Transit order with a price, before your user is ready to place it.

A price gives the fees, amount out, and native messaging fee that a quote for the same order would carry right now. A price has no transaction to sign, so you display it and your user acts on a quote.

## Price or Quote

| Endpoint | Use it when |
| - | - |
| `GET /v1/transit/orders/price` | You show live fees while your user browses, changes the amount, or has not connected a wallet yet. |
| `GET /v1/transit/orders/quote` | Your user is ready to place the order. The quote returns the transaction to sign. |

A price is the way to show live fees. Each quote counts against the open quote limits until its order is submitted or its `deadline` passes. Prices skip those limits, so polling prices never counts against them. Before you decide when your app requests quotes, read [Quote Limits](https://developers.paxoslabs.com/v1.0.0/intro/products/transit/developers/guides/order-submission.md#quote-limits).

## Prerequisites

* A route identified from [Route Discovery](https://developers.paxoslabs.com/v1.0.0/intro/products/transit/developers/guides/route-discovery.md)

## Step 1: Get an Order Price

`GET /v1/transit/orders/price`

Send the parameters you will send with the quote, without `permitSignature`, `permitDeadline`, and `responseFormat`. [Get Order Quote](https://developers.paxoslabs.com/v1.0.0/intro/products/transit/developers/guides/order-submission.md#step-1-get-order-quote) describes each parameter.

* `userAddress` is optional and does not change the price, so you can show fees before your user connects a wallet.
* Send the same `integratorFee`, `integratorFeeReceiver`, and `distributorCode` that the quote will carry. They change the fees.

```ts theme={null}
const headers = { 'x-api-key': process.env.PAXOS_LABS_API_KEY }

const url = new URL('https://api.paxoslabs.com/v1/transit/orders/price')
url.searchParams.set('offerAmount', '322160000')
url.searchParams.set('offerAsset', '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48')
url.searchParams.set('wantAsset', '0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168')
url.searchParams.set('sourceChainId', '1')
url.searchParams.set('destinationChainId', '4663')

const price = await fetch(url, { headers }).then((r) => r.json())
```

With `@paxoslabs/amplify-sdk`, call `client.transit.getOrderPrice` with the same parameters.

```json theme={null}
{
  "amountOut": "322097784",
  "protocolFee": "62216",
  "fillCostFee": "30000",
  "conversionRateFee": "32216",
  "conversionRateHundredthsBps": 100,
  "integratorFee": "0",
  "totalFees": "62216",
  "estimatedLatencyMs": 300000,
  "nativeFee": "1500000000000000",
  "pricedAt": "2026-11-23T15:04:05Z"
}
```

You have a price when the response carries `nativeFee` and `pricedAt`.

## Step 2: Show the Fees

Show `amountOut`, `totalFees`, and `nativeFee` on the same screen. `totalFees` is in the offer asset and `nativeFee` is in the source chain's native token, and the order costs both amounts. [Response Fields](#response-fields) describes each field.

Your user can now see all three values before they ask to place the order.

## Step 3: Keep the Price Current

A price is correct as of its `pricedAt`. Fees move with live liquidity and gas.

* Request a new price each time your user changes the amount, the route, or any other parameter.
* While the fee is on screen, refresh it on a timer set to the longest interval your users accept for a stale fee, and no shorter than 10 seconds. Stop the timer when the fee leaves the screen.

The fee on screen now always comes from a price requested after your user's last change.

## Step 4: Request a Quote

When your user is ready to place the order, request a quote and follow [Order Submission](https://developers.paxoslabs.com/v1.0.0/intro/products/transit/developers/guides/order-submission.md). The quote's fees can differ from the last price, so show the quote's fees for your user to confirm.

Your user confirms the order against the quote's fees.

## Response Fields

A price has the same fields as a quote, without `transaction` and with two more. [Understand the Response](https://developers.paxoslabs.com/v1.0.0/intro/products/transit/developers/guides/order-submission.md#step-2-understand-the-response) describes the shared fields.

| Field | Description |
| - | - |
| `nativeFee` | Native token amount in wei (decimal string) that the order transaction carries to pay the messaging fee. A quote for the same order sends this as `transaction.value`. `"0"` on same-chain routes. |
| `pricedAt` | When the price was computed (RFC 3339, UTC) |

## Rate Limits

A price counts against the same rate limit as every other request, quotes included. Without an API key, each IP address has a lower limit, so send an API key when you poll prices in production.

Every response carries three headers that show where you stand against the limit. Read them to slow your polling before a price is refused.

| Header | Description |
| - | - |
| `X-RateLimit-Limit` | Requests allowed in the current window |
| `X-RateLimit-Remaining` | Requests left in the current window |
| `X-RateLimit-Reset` | When the current window resets (Unix time in seconds) |

A refused price returns `429` with `error.status` `RESOURCE_EXHAUSTED`. Retry after the number of seconds in the `Retry-After` header.

## Common Errors

A price is refused for the same reasons and with the same errors as a quote for the same order, apart from the open quote limits, which apply to quotes only. See [Common Errors](https://developers.paxoslabs.com/v1.0.0/intro/products/transit/developers/guides/order-submission.md#common-errors) in Order Submission.

A price refused with `400`, `403` or `404` means your user cannot place that order right now, so show the error in place of a fee. A `429` or `503` refuses only the price request: show fees as temporarily unavailable and retry after `Retry-After` (for `429`) or with backoff (for `503`), because the order itself may still be placeable.

## Next Steps

> [card] [Order Submission](https://developers.paxoslabs.com/v1.0.0/intro/products/transit/developers/guides/order-submission.md)
>
> Get quote calldata and submit the order when your user is ready.


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