Skip to main content
POST
https://api.tensormesh.ai
/
v1
/
billing
/
stripe
/
setup-intents
Create Stripe Setup Intent
curl --request POST \
  --url https://api.tensormesh.ai/v1/billing/stripe/setup-intents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": "<string>"
}
'
{
  "stripeSetupIntentId": "<string>",
  "clientSecret": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication using an access token. Format: Bearer <access_token>

Body

application/json

CreateStripeSetupIntentRequest is the request to create a Stripe setup intent.

userId
string

The unique ID of the user.

Response

A successful response.

CreateStripeSetupIntentResponse is the response after creating a setup intent.

stripeSetupIntentId
string

The Stripe setup intent ID.

clientSecret
string

Client secret.