id | string | Unique subscription id. |
projectId | string | Project that owns the subscription. |
businessId | string | Owning business. |
planId | integer | Subscribed plan. |
billingCycle | string | null | MONTHLY or YEARLY; null for usage plans. |
status | string | ACTIVE, EXPIRED (period lapsed), CANCELLED (ended, including superseded by an upgrade), or SUSPENDED. |
subscriptionType | string | e.g. EXTERNAL. |
startDate | string | ISO 8601 UTC start. |
endDate | string | null | ISO 8601 UTC end, or null if open-ended. |
autoRenew | boolean | Whether the subscription renews automatically. |
creditAmount | number | null | Remaining credits, for usage plans. |
paymentRef | string | Reference of the payment that activated it. |
createdBy | string | Actor that created the subscription. |
createdAt | string | ISO 8601 UTC timestamp. |
updatedAt | string | ISO 8601 UTC timestamp. |