Skip to main content
The sm_order_type field classifies whether an order is a subscription or one-time purchase. SourceMedium determines this at the line-item level first, then rolls those line-level signals up to the order. Subscription analytics, cohort analysis, and LTV reporting use this classification.

Order type values

When you only need the subscription vs one-time split, filter on is_subscription_order = TRUE. It is true for subscription, subscription_prepaid, and subscription_&_one_time.

How order type is determined

Order type classification uses a multi-signal approach evaluated at the line-item level, then rolled up to the order.

General signal sources

SourceMedium can use several signal families:
  • Direct subscription-platform line-item mappings such as ReCharge, Chargebee, or Amazon Subscribe & Save
  • Shopify selling plans recorded on order lines
  • Shopify line-item metadata and property-based signals
  • Shopify order tags and app/source signals
  • Platform fields such as is_from_subscription

Amazon Seller Central nuance

Amazon does not provide full subscription lifecycle data through Seller Central, such as subscription IDs, active subscriber status, cancellation dates, or active subscription counts. However, when Amazon provides order-item promotion or program signals that identify Subscribe & Save activity, SourceMedium uses those signals. It classifies eligible Amazon Seller Central orders and order lines as subscription. This improves subscription-vs-one-time reporting for Amazon. You should still read the result as order-level Subscribe & Save classification rather than a complete subscriber lifecycle dataset.

Shopify signal precedence

Where your subscription platform supplies line-level data, SourceMedium uses it. Otherwise SourceMedium uses Shopify line-item metadata, then order tags. Tag classification applies only where SourceMedium has enabled it for your store. Tag-only classification is the weakest signal, with one exception. In a store with tag classification enabled, a matching order tag makes the order a subscription even when line-item metadata marks every line one-time. Placeholder metadata, such as a Shopify subscription_id of 1, is ignored. Free-gift metadata does not make a line a subscription.

Subscription tag patterns

When tags are the only signal, an order counts as subscription if a tag matches one of these patterns:
  • A tag containing a word that starts with subscription, such as Subscription, SubscriptionActive, or subscription_order_loop
  • recurring_order or recurring-order
  • Luna Subscription
  • bulksubscription
A tag containing prepaid alongside a subscription tag classifies the order as subscription_prepaid.

Check why an order got its type

Query fct_order_classification_matches with classification = 'sm_order_type' and is_deciding_rule = TRUE to see the rule that set an order’s type. When a line made the order a subscription, that row names the line’s rule, for example rule_id = 'subscription_line:subscription_tags'. is_subscription_order is the boolean form of sm_order_type. Field lists, when to use orders versus lines, and query patterns are on Subscription flags.

order_sequence

Customer lifecycle classification based on order position:

subscription_order_sequence

Subscription-specific lifecycle classification commonly appears as:

Line-level subscription fields

Product-level questions use obt_order_lines. The line fields and the mixed-cart query are on Subscription flags.

Using order type in analysis

Filter to subscription orders

Separate subscription vs one-time metrics

Use line-level fields when carts can be mixed

Best practices

Prefer direct subscription-platform integrations

If you have ReCharge, Chargebee, or another subscription platform SourceMedium reads line-level data from, that data gives the most reliable classification. Skio and Loop Subscriptions run on Shopify’s native subscriptions. SourceMedium does not read line-level data from either. SourceMedium classifies their orders from the Shopify selling plans, line-item properties, and order tags those apps write, so keep those intact. SourceMedium does not currently use a Stay AI connection made with an API key to classify orders. Those orders are classified from the Shopify signals above, as for any Shopify order without line-level platform data.

Preserve explicit Shopify line-item metadata

For Shopify stores, explicit line-item metadata is more reliable than tag-only logic. If your app emits explicit subscription or one-time properties, preserve them.

Validate with source-platform data

If you have a direct subscription-platform integration, compare SourceMedium classifications to that platform’s line-level or order-level data when troubleshooting mismatches.

Use line-level fields for product analysis

Use order-level fields for order and customer retention analysis. Use line-level fields when the business question is about products, bundles, subscription mixes, or gifts inside a cart.

Subscription Flags

Understand order-level and line-level subscription fields

obt_order_lines

Review line-level subscription field definitions