Skip to main content

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.

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

curl -X POST 'https://api-sandbox.paywithsoap.com/api/v1/checkouts' \
--header 'Content-Type: application/json' \
--header 'Authorization: YOUR_API_KEY' \
--data '{
    "customer_id": "cus_vi57KegYgcRqcGHqip8q6UZiqtrwMT870",
    "type": "deposit",
    "experience": "web",
    "return_url": "https://myapp.com/wallet"
}'

Key Parameters

ParameterRequiredDescription
customer_idYesThe customer’s unique identifier
typeYesMust be "deposit"
experienceNo"web" or "webview"
return_urlNoWhere 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

← Back to Create Checkout

View the full API reference for creating checkouts.