{
"getActiveSubscriptions": [
{
"id": "subscription-plan-revvenu-basic-4a9432",
"status": "ACTIVE",
"startDate": "2022-12-13T17:27:05.873Z",
"endDate": null,
"trialEndDate": null,
"cancellationDate": null,
"effectiveEndDate": null,
"currentBillingPeriodEnd": "2023-01-13T17:27:15.000Z",
"metadata": null,
"billingId": "sub_1MEcG8AnAO1PFouUcqM98PA5",
"billingLinkUrl": "https://dashboard.stripe.com/test/subscriptions/sub_1MEcG8AnAO1PFouUcqM98PA5",
"prices": [],
"totalPrice": null,
"pricingType": "FREE",
"plan": {
"id": "plan-revvenu-basic",
"displayName": "Basic",
"description": null,
"metadata": null,
"product": {
"id": "product-revvenu",
"displayName": "Revvenu",
"description": null
},
"basePlan": null,
"entitlements": [
{
"usageLimit": 3,
"hasUnlimitedUsage": null,
"featureId": "cbcae3e8-a0ab-4b67-a093-426a2f98a72f",
"resetPeriod": null,
"feature": {
"id": "feature-01-templates",
"featureType": "NUMBER",
"meterType": "Fluctuating",
"featureUnits": "template",
"featureUnitsPlural": "templates",
"displayName": "Templates",
"description": null
}
},
{
"usageLimit": 6,
"hasUnlimitedUsage": null,
"featureId": "d50cf34b-8f04-450b-a2d5-07088f2ef162",
"resetPeriod": "MONTH",
"feature": {
"id": "feature-02-campaigns",
"featureType": "NUMBER",
"meterType": "Incremental",
"featureUnits": "campaign",
"featureUnitsPlural": "campaigns",
"displayName": "Campaigns",
"description": null
}
}
],
"inheritedEntitlements": [],
"compatibleAddons": [],
"prices": [],
"pricingType": "FREE",
"defaultTrialConfig": null
},
"addons": [],
"paymentCollection": "NOT_REQUIRED", // status of the payment collection of the subscription - can be either 'NOT_REQUIRED', 'FAILED', 'ACTION_REQUIRED' or 'PROCESSING'
"latestInvoice": {
"billingId": "invoice-01", // ID of the invoice of the billing provider
"status": "PAID", // can be either 'OPEN', 'CANCELED' or 'PAID'
"createdAt": "2023-08-22T11:27:41.000Z",
"updatedAt": "2023-08-22T11:27:44.608Z",
"requiresAction": false, // indicate of the payment requires action to complete the payment
"paymentUrl": "https://...", // payment url that can be sent to the customer to complete the payment
"paymentSecret": "secret-01", // secret to be used to initiate next action with billing provider
"errorMessage": "", // optinal error message, if the status is FAILED
},
}
]
}