POST
/
workspaces
/
{workspace_id}
/
billing-accounts
/
{billing_account_id}
/
payment-methods
Create Setup Intent
curl --request POST \
  --url https://api.altostrat.io/workspaces/{workspace_id}/billing-accounts/{billing_account_id}/payment-methods \
  --header 'Authorization: Bearer <token>'
{
  "client_secret": "<string>",
  "publishable_key": "<string>"
}

Authorizations

Authorization
string
header
required

Auth0 JWT token for user authentication.

Path Parameters

workspace_id
string
required

The unique identifier for the workspace.

Example:

"ws_abc123"

billing_account_id
string
required

The unique identifier for the billing account (Stripe customer ID).

Example:

"cus_abc123"

Response

201
application/json

Setup Intent created successfully.

The response is of type object.