POST
/
billing
/
setup-intent
curl --request POST \
  --url https://api.altostrat.io/billing/setup-intent \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "publishable_key": "<string>",
  "client_secret": "<string>",
  "status": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Standard OAuth2 flow for user authentication. Use Authorization Code Grant or Implicit Grant. JWT Bearer tokens obtained are used for subsequent requests.

Response

201
application/json

SetupIntent created successfully. Returns client secret needed for Stripe Elements/JS.

The response is of type object.