Vai al contenuto principale
POST
/
workspaces
/
{workspaceId}
/
billing-accounts
/
{billingAccountId}
/
payment-methods
Crea un 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

Inserisci il tuo JWT nel formato: Bearer {token}

Path Parameters

workspaceId
string
required

L'ID del workspace.

Example:

"ws_a1b2c3d4e5f6g7h8"

billingAccountId
string
required

L'ID del conto di fatturazione, che corrisponde a un ID Cliente Stripe (cus_...).

Example:

"cus_a1b2c3d4e5f6g7h8"

Response

Il Setup Intent è stato creato con successo.

client_secret
string

Il client secret del SetupIntent. Utilizzato per la conferma lato client.

Example:

"seti_1KV..._secret_...Lgq"

publishable_key
string

La tua chiave API pubblicabile di Stripe.

Example:

"pk_test_..."