{
"get_subscription": {
"id": "subscription-plan-revvenu-basic-169747",
"status": "ACTIVE",
"start_date": "2022-10-30T23:25:44.258Z",
"end_date": null,
"trial_end_date": null,
"cancellation_date": null,
"effective_end_date": null,
"current_billing_period_end": "2022-11-30T23:25:44.258Z",
"metadata": null,
"billing_id": null,
"billing_link_url": null,
"prices": [],
"total_price": null,
"pricing_type": "FREE",
"plan": {
"id": "plan-revvenu-basic",
"display_name": "Basic",
"description": null,
"metadata": null,
"product": {
"id": "product-revvenu",
"display_name": "Revvenu",
"description": null
},
"base_plan": null,
"entitlements": [
{
"usage_limit": 3,
"has_unlimited_usage": null,
"feature_id": "6d15081c-a3dc-4091-ab8c-9f25dc366173",
"reset_period": null,
"feature": {
"id": "feature-01-templates",
"feature_type": "NUMBER",
"meter_type": "Fluctuating",
"feature_units": "template",
"feature_units_plural": "templates",
"display_name": "Templates",
"description": null
}
},
{
"usage_limit": 4,
"has_unlimited_usage": null,
"feature_id": "08a4a367-4286-4dfd-bfae-6c77a723e80c",
"reset_period": "MONTH",
"feature": {
"id": "feature-02-campaigns",
"feature_type": "NUMBER",
"meter_type": "Incremental",
"feature_units": "campaign",
"feature_units_plural": "campaigns",
"display_name": "Campaigns",
"description": null
}
}
],
"inherited_entitlements": [],
"compatible_addons": [],
"prices": [],
"pricing_type": "FREE",
"default_trial_config": null
},
"addons": [],
"payment_collection": "NOT_REQUIRED", // status of the payment collection of the subscription - can be either 'NOT_REQUIRED', 'FAILED', 'ACTION_REQUIRED' or 'PROCESSING'
"latest_invoice": {
"billing_id": "invoice-01", // ID of the invoice of the billing provider
"status": "PAID", // can be either 'OPEN', 'CANCELED' or 'PAID'
"created_at": "2023-08-22T11:27:41.000Z",
"updated_at": "2023-08-22T11:27:44.608Z",
"requires_action": false, // indicate of the payment requires action to complete the payment
"payment_url": "https://...", // payment url that can be sent to the customer to complete the payment
"payment_secret": "secret-01", // secret to be used to initiate next action with billing provider
"error_message": "", // optinal error message, if the status is FAILED
}
}
}