is_order_sm_valid is the primary filter for order-based analysis. It tells you whether an order should be included in reporting.
What it means
At a high level:TRUE: include the order in revenue / order-count reportingFALSE: exclude the order (e.g., cancelled/voided/draft/uncollectible and other non-reportable states)
What makes an order invalid
For current standard order tables, an order is invalid when any of these are true:- Payment status is missing, or is
voided,cancelled,uncollectible,draft, orrefunded. - Channel is outside
Online DTC,Amazon,Retail,Wholesale, orTikTok Shop. - The merchant has exclude-$0-sales enabled and the order’s net revenue is
0.
- Unpaid or payment-due orders are not excluded just because they are unpaid. They are valid unless they hit one of the invalid statuses above.
- Gift-card-only orders are flagged separately as
is_order_only_gift_cardson order-line tables. They are not excluded byis_order_sm_validitself, although some report tables may exclude them from placed-order counts.
A legacy tenant-specific exception can treat fully refunded orders as valid. If you are reconciling a single tenant and refunded orders behave unexpectedly, confirm the tenant configuration before assuming the global rule applies.
Why it matters
Most “why don’t my numbers match” issues come from one of these:- Missing the
is_order_sm_valid = TRUEfilter - Mixing valid + invalid orders across joined tables
- Comparing valid-order metrics to external exports that include cancelled/test orders

