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

# Introduction

> Learn how Safepay Raast works and what you need to start integrating.

Raast is Pakistan's instant payment network operated by the State Bank of Pakistan. Safepay Raast gives you an aggregator-grade API to onboard merchants, initiate payments, and move funds between bank accounts and mobile wallets.

## Payment types you can support

1. **RTP Now** - Request a payment the customer approves immediately.
2. **RTP Later** - Request a payment that the customer can approve later.
3. **Dynamic QR** - Generate a per-transaction QR with a known amount.
4. **Static QR** - Use a reusable QR where the customer enters the amount.

## How Safepay fits

* **Aggregator model** - You create [aggregator merchants](/concepts/merchant) and link them to [Raast merchants](/concepts/raast-merchants).
* **Payments and payouts** - Initiate RTP and QR payments, and send payouts with the same credentials.
* **Operational tooling** - Manage access keys, refunds, webhooks, and ledgers through APIs.

## Integration path

<Steps>
  <Step title="Request aggregator access">
    Follow [Create aggregator account](/overview/create-aggregator) to receive your `{{aggregator_id}}`.
  </Step>

  <Step title="Secure your secret key">
    Store the `{{secret_key}}` and authenticate with `X-SFPY-AGGREGATOR-SECRET-KEY`.
  </Step>

  <Step title="Create and link merchants">
    Create [aggregator merchants](/concepts/merchant) and link them to [Raast merchants](/concepts/raast-merchants).
  </Step>

  <Step title="Choose a payment flow">
    Implement the right [payment type](/concepts/payment-types) for your use case.
  </Step>

  <Step title="Subscribe to webhooks">
    Use [webhooks](/concepts/webhooks) to receive status updates and settlements.
  </Step>
</Steps>

## Environments and base URLs

| Environment | Base URL                                   | Notes                                 |
| ----------- | ------------------------------------------ | ------------------------------------- |
| Sandbox     | `https://dev.api.getsafepay.com/raastwire` | Use for integration testing.          |
| Production  | `https://api.getsafepay.com/raastwire`     | Live traffic and real money movement. |

<Callout type="info">All API paths are prefixed with `/v1/aggregators/{{aggregator_id}}/...`.</Callout>

## See also

* [Quickstart](/overview/quickstart)
* [Create aggregator account](/overview/create-aggregator)
* [Manage aggregator secret keys](/overview/request-access-key)
* [Payment types](/concepts/payment-types)
* [Webhooks](/concepts/webhooks)
