Skip to main content
Subscription reporting depends on consistent classification at the order level and, in many cases, the order-line level. SourceMedium provides several fields that work together.

Order-level fields

Common subscription-related fields in your_project.sm_transformed_v2.obt_orders and your_project.sm_transformed_v2.dim_orders:
  • sm_order_type: order classification (subscription vs one-time)
  • is_subscription_order: boolean convenience field
  • subscription_order_sequence: first vs recurring subscription classification
  • subscription_order_index: sequential index of subscription orders per customer when available
  • is_first_subscription_order: convenience flag derived from subscription_order_sequence
  • is_recurring_subscription_order: convenience flag derived from subscription_order_sequence

Line-level fields

When you need product-level precision, use your_project.sm_transformed_v2.obt_order_lines:
  • order_line_type: line-level subscription classification
  • is_order_line_subscription: boolean convenience field for subscription lines
  • subscription_id: subscription identifier when a reliable one is available
obt_order_lines also carries subscription_order_index and subscription_order_sequence. These are order-level values repeated on every line of the order. They are not line-level classifications.
These fields are most reliable when you have a direct subscription-platform integration, Shopify line-item metadata, or Amazon Seller Central order-item promotion/program signals that clearly identify subscription vs one-time behavior.
For direct subscription-platform integrations, SourceMedium can use exact line-item matching first and fallback matching when platform data is incomplete. That improves line-level classification without changing the recommended query patterns in these docs. Amazon Seller Central Subscribe & Save classification, and what it does not include, is on Order type.

When to use orders vs order lines

Use obt_orders when your business question is about:
  • customer retention
  • subscription-order counts
  • order-level LTV or cohort analysis
Use obt_order_lines when your business question is about:
  • mixed carts with subscription and one-time items
  • product-level subscription performance
  • free gifts, bundles, or add-ons within a cart
  • line-specific debugging when an order contains conflicting signals

Shopify nuance

Shopify classification prefers a connected subscription platform and explicit line-level metadata over order tags. Precedence and the tag patterns that still count are on Order type.

Line-level sequence alignment

On obt_order_lines, every line of an order carries the order’s subscription_order_sequence. A one-time line inside a subscription order therefore shows that order’s first or recurring subscription value, not the non-subscription value. A line with is_order_line_subscription set to true never carries the non-subscription sequence value. To tell subscription lines from one-time lines, use order_line_type or is_order_line_subscription. Use the sequence and index fields to answer order-level questions.

Order-level subscription trend

Line-level subscription mix

Mixed-cart debugging