Billing

Set up a payment method

Creates a SetupIntent for an explicitly consented saved payment method. A saved method is required before automatic wallet top-ups can be enabled.

post/ais/{aiId}/billing/payment-method-setup

Request

  • Base URL: https://api.darwin.so/api/v1
  • URL: https://api.darwin.so/api/v1/ais/{aiId}/billing/payment-method-setup
  • 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.

Response

Client details for confirming the SetupIntent.

clientSecretstring nullable required
publishableKeystring required

Changes

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