Order-level fields
Common subscription-related fields inyour_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 fieldsubscription_order_sequence: first vs recurring subscription classificationsubscription_order_index: sequential index of subscription orders per customer when availableis_first_subscription_order: convenience flag derived fromsubscription_order_sequenceis_recurring_subscription_order: convenience flag derived fromsubscription_order_sequence
Line-level fields
When you need product-level precision, useyour_project.sm_transformed_v2.obt_order_lines:
order_line_type: line-level subscription classificationis_order_line_subscription: boolean convenience field for subscription linessubscription_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.
When to use orders vs order lines
Useobt_orders when your business question is about:
- customer retention
- subscription-order counts
- order-level LTV or cohort analysis
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
Onobt_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.

