Billing

Top up AI Wallet

Creates a PaymentIntent that adds nonwithdrawable funded money to the AI Wallet after payment succeeds. The response separates the wallet credit, processing cost, and card charge.

post/ais/{aiId}/billing/wallet-topups

Request

  • Base URL: https://api.darwin.so/api/v1
  • URL: https://api.darwin.so/api/v1/ais/{aiId}/billing/wallet-topups
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Path parameters

aiIdstring required

Headers

Idempotency-Keystring required

A caller-generated key, unique to this operation and payload.

Request body

amountMinorinteger required

Wallet amount to credit, in USD cents. The returned card charge includes processing costs.

Response

Client details for confirming the wallet top-up.

clientSecretstring nullable required
publishableKeystring required
amountMinorinteger required
walletCreditAmountMinorinteger required
currency'usd' required

Changes

No recorded changes to this operation across all 1 revision of this API.