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

# Preset Amount Withdrawal

> Withdraw a fixed, predetermined amount from the customer's balance

## Overview

A preset amount withdrawal lets you specify exactly how much the customer will withdraw. The amount is locked — the customer simply confirms and selects a payout method. This is ideal when you've pre-approved a withdrawal or are offering fixed cashout tiers.

Every Soap API request is authenticated with a bearer token in the `Authorization` header:

```bash theme={null}
Authorization: Bearer YOUR_API_KEY
```

Your API key is in the Soap Dashboard under the Developers section. It looks like `key_...`.

Requests with a missing or invalid API key return `422` — never `401` — with a JSON `error` field, usually `{"error": "API key not found."}`. Branch on the status code rather than the message: `GET /api/v1/device_pings/latest_geo_check` does not yet return the same wording.

Never expose your API key in client-side code — it is server-side only.

## How It Works

1. You create a checkout session with `type: "withdrawal"` and include `fixed_amount_cents`.
2. The customer is redirected to the Soap-hosted checkout page with the amount pre-filled and locked.
3. The customer selects a payout method and confirms.
4. Upon completion, a webhook is fired and the customer is redirected back to your app.

## API Request

```bash theme={null}
curl -X POST 'https://api-sandbox.paywithsoap.com/api/v1/checkouts' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
    "customer_id": "cus_vi57KegYgcRqcGHqip8q6UZiqtrwMT870",
    "type": "withdrawal",
    "fixed_amount_cents": 10000,
    "experience": "web",
    "return_url": "https://myapp.com/wallet"
}'
```

## Key Parameters

| Parameter | Required | Description |
| - | - | - |
| `customer_id` | Yes | The customer's unique identifier |
| `type` | Yes | Must be `"withdrawal"` |
| `fixed_amount_cents` | Yes | The exact withdrawal amount in cents (e.g. `10000` = \$100) |
| `experience` | No | `"web"`, `"webview"`, or `"iframe"`. Use `"iframe"` when embedding the checkout — see [Embedded Checkout](https://docs.paywithsoap.com/get_started/embedded-checkout.md). |
| `return_url` | No | Where to redirect the customer after completion |

## When to Use

* Pre-approved withdrawals with a known amount
* Fixed cashout tiers ($25, $50, \$100, etc.)
* Placing a hold on balance and then processing a specific withdrawal

> [card] [← Back to Create Checkout](https://docs.paywithsoap.com/api-reference/api-v1/checkouts/create.md)
>
> View the full API reference for creating checkouts.


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