Skip to main content

Overview

A custom amount deposit presents the customer with an input form where they can enter any amount they’d like to deposit. Every Soap API request is authenticated with a bearer token in the Authorization header:
Create your API key in the Soap Dashboard under the Developer section. It looks like key_... and is shown once, when you create it, so store it in your server’s secret manager right away. See Managing API keys. Requests with a missing, unknown or inactive API key return 401 with {"error": "API key not found.", "code": "invalid_api_key"}. Branch on the status and code rather than the message. 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

Key Parameters

When to Use

  • Your platform lets the customer choose how much to deposit
  • Any scenario where the deposit amount is not predetermined

← Back to Create Checkout

View the full API reference for creating checkouts.