> ## 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.

# DraftKings Style Deposit

> Standard sports-book style deposit where the customer enters a custom amount

## Overview

A DraftKings-style deposit presents the customer with an input form where they can enter any amount they'd like to deposit. This is the standard experience used by sports books and gaming platforms.

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: "deposit"` and no `fixed_amount_cents`.
2. The customer is redirected to the Soap-hosted checkout page.
3. The customer enters their desired deposit amount and selects a payment method.
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": "deposit",
    "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 `"deposit"` |
| `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

* Your platform lets the customer choose how much to deposit
* Standard gaming / sports-book deposit flows
* Any scenario where the deposit amount is not predetermined

> [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.