Skip to main content
POST
/
workspaces
/
{workspaceId}
/
billing-accounts
/
{billingAccountId}
/
payment-methods
Create a Setup Intent
curl --request POST \
  --url https://api.altostrat.io/workspaces/{workspaceId}/billing-accounts/{billingAccountId}/payment-methods \
  --header 'Authorization: Bearer <token>'
{
  "client_secret": "seti_1KV..._secret_...Lgq",
  "publishable_key": "pk_test_..."
}

Authorizations

Authorization
string
header
required

Enter your JWT in the format: Bearer {token}

Path Parameters

workspaceId
string
required

The ID of the workspace.

Example:

"ws_a1b2c3d4e5f6g7h8"

billingAccountId
string
required

The ID of the billing account, which corresponds to a Stripe Customer ID (cus_...).

Example:

"cus_a1b2c3d4e5f6g7h8"

Response

The Setup Intent was created successfully.

client_secret
string

The client secret of the SetupIntent. Used for client-side confirmation.

Example:

"seti_1KV..._secret_...Lgq"

publishable_key
string

Your Stripe publishable API key.

Example:

"pk_test_..."