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*,
body.marker*
);
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
Schema: boolean
boolean: boolean
Returns true if the recovery request was accepted.
example: true