Skip to main content

Updated Sep 28, 2026Verified against the product Sep 28, 2026

Subscriptions model

The subscription model represents entitlements for an account: which plan applies, the subscription type, validity window, optional per-subscription dimensions, and linked products. In many stacks the same model holds opportunities, contracts, or deals as long as you map them to these properties.

Prerequisites​

Field reference​

Model keys​

PropertyTypeDescription
subscription_idstringStable id for this subscription or contract row.
account_idstringAccount that holds the entitlement.

Default properties​

PropertyTypeDescription
plan_idstringReferences a row in the plans model.
typestringSubscription category: typically free, trial, paid, poc, partner, or internal.
created_attimestampWhen the subscription record was created.
valid_fromtimestampStart of the entitlement window.
valid_untiltimestampEnd of the entitlement window (if applicable).
dimensionsjsonPer-subscription overrides to plan dimensions (same key semantics as plan dimensions).
productsjsonProduct linkage for multi-product contracts—align with Products product_id values where used.

Optional properties​

PropertyTypeDescription
subscription_typestringAdditional subtype or commercial label from your source when distinct from type.
featuresjsonArray of the capability feature keys this subscription grants, such as ["analytics_reports", "analytics_exports"]. See Feature entitlements.

Custom-mapped fields may appear as extra properties for filtering or workflows.

Feature entitlements​

When your Products define features, the subscription model records which of them an account is entitled to:

  • Capability features — map a column holding a JSON array of feature keys to a property named features. A mapped [] clears the subscription's grants. Leaving features unmapped, or mapping a null, keeps the grants already stored.
  • Amount features — put the allowance in dimensions, under the feature's key.
SELECT
subscription_id,
account_id,
plan_id,
'["analytics_reports", "analytics_exports"]' AS features,
'{"analytics_api_calls": 1200}' AS dimensions
FROM subscriptions

Which products an account has still comes from the account model's products property, so grant a feature only on a subscription for a product the account has.

Activities​

Subscription models participate in subscription created and updated style activities for timelines when those rules are enabled.

Configure​

  1. Add model → Subscription.
  2. Point at the connection that contains subscription, deal, or contract data.
  3. Map identifiers and dates; ensure account_id matches the accounts model.
  4. Serialize dimensions, products, and features as JSON in the query result if those columns are not native JSON in the source.
  5. Validate, save, refresh, then check subscription details on accounts in the app.