{
"id": "subscription-plan-stigg-pro-28a241",
"status": "ACTIVE",
"currentBillingPeriodEnd": "2023-09-20T09:00:14.000Z",
"plan": {
"id": "plan-stigg-pro",
"order": 0,
"displayName": "Pro",
"description": "For teams or individuals who need video capture and collaboration capabilities",
"entitlements": [
{
"usageLimit": 0,
"feature": {
"id": "feature-demo-01",
"featureType": "Boolean",
"description": "",
"meterType": "None",
"displayName": "Feature #1",
"isMetered": false
},
"hasUnlimitedUsage": false
}
],
"inheritedEntitlements": [
{
"usageLimit": 100,
"feature": {
"id": "feature-demo-02",
"featureType": "Numeric",
"description": "",
"meterType": "None",
"units": "request",
"unitsPlural": "requests",
"displayName": "Feature #2",
"isMetered": false
},
"hasUnlimitedUsage": false
},
{
"usageLimit": 0,
"feature": {
"id": "feature-demo-03",
"featureType": "Boolean",
"description": "",
"meterType": "None",
"displayName": "Feature #3",
"isMetered": false
},
"hasUnlimitedUsage": false
}
],
"pricePoints": [
{
"pricingModel": "FLAT_FEE",
"billingPeriod": "MONTHLY",
"amount": 12,
"currency": "USD"
},
{
"pricingModel": "FLAT_FEE",
"billingPeriod": "ANNUALLY",
"amount": 120,
"currency": "USD"
}
],
"compatibleAddons": [],
"product": {
"id": "product-stigg",
"displayName": "Stigg"
},
"metadata": null
},
"price": {
"pricingModel": "FLAT_FEE",
"billingPeriod": "ANNUALLY",
"amount": 120,
"currency": "USD"
},
"pricingType": "PAID",
"addons": [],
"startDate": "2022-09-20T09:00:14.000Z",
"metadata": {
"lorem": "ipsum"
},
"experimentInfo": {
"name": "should we use freemium?",
"id": "should-we-use-freemium",
"groupName": "Variant group",
"groupType": "VARIANT",
},
"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
},
}