- Automated billing: Generate invoices automatically based on billing interval
- Complete history: Track all invoices, payments, and transactions generated by the subscription
- Flexible intervals: Support for daily, weekly, monthly, and annual billing cycles
- Status management: Track subscription lifecycle from trial through cancellation
Attributes
Subscription Attributes
| Property | Type | Description |
|---|---|---|
| rootfi_id | integer | Unique identifier for this subscription |
| rootfi_created_at | string | When this subscription was created in Commenda’s system (ISO 8601) |
| rootfi_updated_at | string | When this subscription was last updated (ISO 8601) |
| rootfi_company_id | integer | Company identifier this subscription belongs to |
| platform_id | string | Platform-specific subscription identifier |
| contact_id | string | Reference to the Contact subscribed |
| currency_id | string | ISO 4217 currency code for subscription charges |
| status | enum | Current status of the subscription |
| amount | number | Recurring charge amount per billing cycle |
| interval | enum | Billing frequency unit (day, week, month, year) |
| interval_count | integer | Number of intervals between billings (e.g., 2 = every 2 months) |
| next_billing_date | string | Next scheduled billing date (ISO 8601) |
| last_invoice_date | string | Date when the last invoice was generated (ISO 8601) |
| last_payment_date | string | Date when the last successful payment was received (ISO 8601) |
| created_at | string | Original creation timestamp from platform (ISO 8601) |
| updated_at | string | Last update timestamp from platform (ISO 8601) |
| invoice_ids | array | References to all invoices generated from this subscription |
| transaction_ids | array | References to all transactions (payments, refunds, fees) |
| items | array | Products/services included in this subscription |
Status Enum Values
| Value | Description |
|---|---|
active | Subscription is active and billing normally |
in_trial | Subscription is in a trial period (no charges) |
cancelled | Subscription has been cancelled and will not renew |
paused | Subscription is temporarily paused |
past_due | Subscription has failed payment and is past due |
incomplete | Subscription setup is incomplete |
unknown | Status cannot be determined |
Interval Enum Values
| Value | Description |
|---|---|
day | Daily billing |
week | Weekly billing |
month | Monthly billing |
year | Annual billing |
SubscriptionItem Attributes
| Property | Type | Description |
|---|---|---|
| rootfi_id | integer | Unique identifier for this subscription item |
| item_id | string | Reference to the Item/Product |
| description | string | Description of the subscribed product or service |
| quantity | integer | Number of units subscribed |
| unit_amount | number | Price per unit |
Expandable Attributes
Use theexpand query parameter to include related objects:
expand=contact- Includes full Contact objectexpand=items- Includes detailed SubscriptionItem objectsexpand=invoices- Includes all generated Invoice objectsexpand=transactions- Includes all Transaction objects