/api/billing/checkout-session
POST
/api/billing/checkout-session
const url = 'https://example.com/api/billing/checkout-session';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"priceId":"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/api/billing/checkout-session \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "priceId": "example" }'Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”object
priceId
string
Example generated
{ "priceId": "example"}object
priceId
string
Example generated
{ "priceId": "example"}object
priceId
string
Example generated
{ "priceId": "example"}Responses
Section titled “ Responses ”OK