recoverSubscriptions
Recover a subscription through the Stripe Billing Portal. 🔐 This method requires authorization.
Description
This method restores a previously cancelled subscription for the current user through the Stripe Billing Portal. It returns a Promise that resolves to true if the recovery request was accepted, or an IError object if there was an issue.
Subscriptions.recoverSubscriptions(
body*);
Parameters schema
Schema
body(required): ICancelSubscription
Subscription body
example:
{ marker: "premium" }
body.marker(required): string
Subscription marker.
example: "premium"
Examples
Minimal example
const response = await Subscriptions.recoverSubscriptions({ marker: 'premium' });
Example response
true
Response schema
Details
Schema: boolean
boolean: booleanReturns true if the recovery request was accepted.
example: true