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

# Pay from your wallet

> Keep a prepaid balance with Skye and pay for bookings from it, with no payment step for your user.

Your account has a wallet: a balance in rupees that pays for bookings. You take payment from your user however you
like, in your own app, and the booking is paid from the wallet. Like a travel agent's wallet with its supplier.

> [!NOTE]
>
> The **sandbox wallet** starts with ₹10,00,000 of test money, and you can add more from the dashboard. The **live
> wallet** is topped up from the dashboard by UPI or netbanking. Paying live bookings from the wallet opens soon;
> until then, live bookings are paid through [Skye checkout](https://docs.flyskye.ai/checkout.md) or [your own payment UI](https://docs.flyskye.ai/payments.md). The live
> wallet already pays for [extra live searches](https://docs.flyskye.ai/pricing.md).

## Three ways to pay for a booking

| | Who your user pays | When to use it |
| - | - | - |
| **Wallet** | You | You already charge your users, or bill them later. Fastest: no payment step in the booking. |
| [Your own payment UI](https://docs.flyskye.ai/payments.md) | Skye, inside your app | You want payment in your app without holding money. |
| [Skye checkout](https://docs.flyskye.ai/checkout.md) | Skye, on Skye's page | Simplest: send your user a link. |

## Book with the wallet

**1. Open a session and send travellers**

As in [your own payment UI](https://docs.flyskye.ai/payments.md): `POST /bookings/session`, then `POST /bookings/session/{id}/details`.
Open the session in INR: the wallet pays in rupees.

**2. Confirm with the wallet**

`POST /bookings/session/{id}/confirm`

```json Request theme={"system"}
{ "payment": { "method": "wallet" } }
```

```json Response theme={"system"}
{
  "bookingId": "...",
  "pnr": "ABC123",
  "status": "confirmed",
  "paidWith": "wallet",
  "wallet": { "charged": 8200, "available": 991800, "currency": "INR" }
}
```

The booking's amount is **held** first, then the ticket is issued. Ticketed, the hold becomes a charge on your
statement. Not ticketed, the hold is released at once and you aren't charged. A repeated confirm never charges twice.

If the wallet can't cover the booking, nothing is booked and you get `402 insufficient_balance`:

```json theme={"system"}
{ "error": { "code": "insufficient_balance", "message": "The wallet has ₹4,000 available and this booking needs ₹8,200. Top up, then confirm again.", "available": 4000, "needed": 8200, "currency": "INR" } }
```

## Cancellations

When you [cancel](https://docs.flyskye.ai/cancel-and-change.md) a booking paid from the wallet, the refund goes **back into the wallet**, and the
cancel response says `"refundedTo": "wallet"`.

## Read the wallet

`GET /wallet`

```json theme={"system"}
{ "mode": "test", "currency": "INR", "balance": 1000000, "held": 0, "available": 1000000 }
```

`held` is money held for bookings in progress. `available` is what the next booking can use.

`GET /wallet/transactions?limit=50`

```json theme={"system"}
{
  "mode": "test",
  "currency": "INR",
  "transactions": [
    { "id": 42, "kind": "charge", "amount": -8200, "sessionId": "...", "note": "BLR to DEL · PNR ABC123", "createdAt": "..." }
  ],
  "nextBefore": null
}
```

`kind` is `topup`, `charge`, `refund` or `adjustment`; a negative `amount` is money out. For the next page, pass the
`nextBefore` you got as `before`. A test key reads the sandbox wallet, a live key the live one. Both need the `book`
scope.

The dashboard's **Wallet** page shows the same balance and statement, with a CSV export.

## Topping up the live wallet

On the dashboard's **Wallet** page, in live mode, enter an amount from ₹1,000 to ₹5,00,000 and pay by UPI or
netbanking. The money shows in the wallet as soon as the payment goes through, usually within seconds. Add your
**business details** (legal name, PAN, and GSTIN if you have one) on the **Business details** page first: top-ups are
billed to them.

## Low-balance alert

When less than your alert level is left to spend (₹1,000 unless you change it), we email your billing address and
send a [`wallet.low_balance`](https://docs.flyskye.ai/webhooks) webhook, once. "Left to spend" is the available balance minus extra live
searches owed this month. After you top up above the level, the alert re-arms for next time. Change the level, or
set ₹0 to turn it off, on the **Wallet** page.


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