Open a one-click Stripe Billing Portal session for a buyer license or subscription
POST
/v1/portal/billing-portal
const url = 'https://api.extport.dev/api/v1/portal/billing-portal';const options = { method: 'POST', headers: { cookie: 'extport_buyer_session=<extport_buyer_session>', 'Content-Type': 'application/json' }, body: '{"key":"example","subscriptionId":"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://api.extport.dev/api/v1/portal/billing-portal \ --header 'Content-Type: application/json' \ --cookie extport_buyer_session=<extport_buyer_session> \ --data '{ "key": "example", "subscriptionId": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
key
string
subscriptionId
string
Examplegenerated
{ "key": "example", "subscriptionId": "example"}Responses
Section titled “Responses”Billing Portal URL
No buyer session
Purchase not found or no billing portal available
Stripe API unavailable