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

# Wayex API

> AUD and stablecoin orchestration through direct customer routes or an isolated, prefunded Treasury account.

Wayex moves value between **Australian dollars** and supported stablecoins. You can integrate through
direct customer payment routes, an institutional Treasury account, or both:

* **Off-ramp** — stablecoin in, AUD out.
* **On-ramp** — AUD in, stablecoin out.

Direct routes convert when customer funds arrive. Treasury lets your business prefund a wallet, then
explicitly fund, pay, convert, withdraw, track, and reconcile through familiar PSP workflows.

## Two product modes

<CardGroup cols={2}>
  <Card title="Direct payment routes" icon="route" href="/console/payment-routes">
    Create reusable funding instructions under a verified customer. Each funding event prices at the
    live rate and automatically creates a transfer.
  </Card>

  <Card title="Treasury" icon="wallet" href="/treasury/overview">
    Prefund an isolated tenant account, make AUD payouts, convert AUD/stablecoin, and withdraw
    stable balances with explicit fees and statuses.
  </Card>
</CardGroup>

## Two surfaces, one API

<CardGroup cols={2}>
  <Card title="REST API" icon="code" href="/api-reference/overview">
    Build server-to-server workflows with tenant-bound keys, idempotent writes, and signed webhooks.
  </Card>

  <Card title="Console" icon="window" href="/console/overview">
    Operate the same resources through an institutional interface without writing code.
  </Card>
</CardGroup>

## Core concepts

* **Tenant account** — the isolation boundary for users, API keys, webhooks, configuration, money, and
  reporting. If you operate more than one tenant account, treat each as a fully separate integration:
  separate logins and API keys, and money never moves between accounts.
* **Customer** — an end user onboarded for direct payment routes. Verification unlocks the customer's
  entitlements.
* **Payment route** — reusable customer funding instructions. Funding the route automatically creates
  a direct-route transfer.
* **Transfer** — one conversion created from a route funding event, with its own lifecycle and linked
  settlement references.
* **Treasury wallet** — the AUD and stablecoin balances owned by one tenant account. It exposes
  available, reserved, and pending money.
* **Beneficiary** — a saved individual or business recipient for AUD payouts.
* **Conversion quote** — an exact, short-lived price for a Treasury conversion. Requesting a quote
  reserves nothing; accepting it immediately sets aside the amount you are selling, and the amount you
  are buying becomes available once the trade settles.
* **Stablecoin destination** — a saved, validated asset/network/address combination used by Treasury
  withdrawals.

## Environments

| Environment    | API base URL                          | Console                                                    |
| -------------- | ------------------------------------- | ---------------------------------------------------------- |
| **Sandbox**    | `https://api.sandbox.rails.wayex.com` | [sandbox.rails.wayex.com](https://sandbox.rails.wayex.com) |
| **Production** | `https://api.rails.wayex.com`         | [rails.wayex.com](https://rails.wayex.com)                 |

Sandbox runs on fully simulated provider rails: no real bank transfer or on-chain movement ever
occurs, so you can exercise every workflow end to end before going live. Production moves real
funds. API keys are issued per environment and never work across environments.

<Warning>
  Production instructions move real value. Before your first production funding or payout, confirm
  the agreed asset, network, and limits with Wayex.
</Warning>

## Next steps

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/quickstart">
    Authenticate and make your first direct-route or Treasury request.
  </Card>

  <Card title="Treasury guide" icon="book-open" href="/treasury/overview">
    Understand balances and complete each prefunded PSP workflow.
  </Card>

  <Card title="Authentication" icon="key" href="/authentication">
    Choose key types and isolate credentials per tenant account.
  </Card>

  <Card title="API reference" icon="brackets-curly" href="/api-reference/overview">
    Read the purpose, money effect, statuses, and retry rules for every endpoint.
  </Card>
</CardGroup>
