Start a Stripe subscription with a confirmed payment method.
POST
/v1/admin/billing/subscribe
const url = 'https://example.com/v1/admin/billing/subscribe';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"overageEnabled":true,"paymentMethodId":"example","planKey":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/admin/billing/subscribe \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "overageEnabled": true, "paymentMethodId": "example", "planKey": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
overageEnabled
Allow metered usage beyond the quota (billed per plan prices).
boolean
paymentMethodId
required
Stripe PaymentMethod id returned by the confirmed SetupIntent.
string
planKey
required
string
Example generated
{ "overageEnabled": true, "paymentMethodId": "example", "planKey": "example"}