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

# Orders

> Overview for buy and sell order flows.

RampHub splits order handling into two flows.

<CardGroup cols={2}>
  <Card title="Buy order" icon="arrow-down-to-line" href="/docs/reference/buy-order" />

  <Card title="Sell order" icon="arrow-up-from-line" href="/docs/reference/sell-order" />
</CardGroup>

Use the buy page when the user is funding crypto from fiat.
Use the sell page when the user is withdrawing fiat and may need provider-specific bank support.

Both flows create an order intent automatically. That intent is the active payment window for the order.

If you need to show a countdown for an active order window, open [Order intent](/docs/reference/order-intent) to fetch the current window for a customer, token, and network.

If you create a new order while the same customer, token, and network already has an active window, RampHub can return `PAYCHAIN_ACTIVE_INTENT_CONFLICT`. In that case, your app can show the active window first or resend the order with `overrideActiveIntent: true`.
