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

# Add Funds

> Add credits to your wallet

Add credits to your wallet via Stripe payment. Minimum $50.00, maximum $10,000.00 per transaction.

If `payment_method_id` is provided (a saved card), the charge is processed immediately. Otherwise, a Stripe client secret is returned for completing payment with a new card on the frontend.

<ParamField body="amount_cents" type="number" required>
  Amount to add in cents. Minimum 5000 ($50), maximum 1000000 ($10,000).
</ParamField>

<ParamField body="payment_method_id" type="string">
  Stripe payment method ID for a saved card. If omitted, returns a client secret.
</ParamField>

<RequestExample>
  ```bash cURL — Charge saved card theme={null}
  curl -X POST https://api.v2.dealmachine.com/v1/mail/wallet/add-funds \
    -H "Authorization: Bearer dm_sk_live_xxx" \
    -H "Content-Type: application/json" \
    -d '{"amount_cents": 10000, "payment_method_id": "pm_xxx"}'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "data": {
      "payment_intent_id": "pi_xxx",
      "amount_cents": 10000,
      "succeeded": true
    }
  }
  ```
</ResponseExample>
