post__subscriptions_portal
Parameters
TypeScript Client Library
public createBillingPortal = async (): Promise<CreateBillingPortalResponse> => {
return this.makeRequest<CreateBillingPortalResponse>('subscriptions/portal', 'POST', null);
};Code Samples
curl -X POST https://backend.flashback.tech/subscriptions/portal \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'POST https://backend.flashback.tech/subscriptions/portal HTTP/1.1
Host: localhost:3000
Accept: application/json
Authorization: Bearer {access-token}const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('https://backend.flashback.tech/subscriptions/portal',
{
method: 'POST',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});{
"success": true,
"url": "https://billing.stripe.com/p/session_1234567890abcdef"
}Responses
Status
Meaning
Description
Schema
Response Schema
Name
Type
Required
Restrictions
Description
Name
Type
Required
Restrictions
Description
Name
Type
Required
Restrictions
Description
Name
Type
Required
Restrictions
Description
Last updated
Was this helpful?