SourceMedium exposes multiple revenue fields because “revenue” can mean different things depending on the question you’re answering. This page focuses on the order-level revenue fields you’ll see most often in:Documentation Index
Fetch the complete documentation index at: https://docs.sourcemedium.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
your_project.sm_transformed_v2.obt_ordersyour_project.sm_transformed_v2.rpt_executive_summary_daily- Many SQL Query Library recipes
Key fields (order-level)
These are the canonical order-level fields inobt_orders:
order_gross_revenue: line-item revenue before discounts, excluding gift card purchasesorder_discounts: discounts applied (see sign convention below)order_refunds: refunds applied (see sign convention below)order_net_revenue: gross revenue after discounts and refundsorder_net_revenue_before_refunds: gross revenue after discounts, before refundsorder_total_revenue: net revenue with shipping and taxes included (after discounts/refunds)
Important sign convention (discounts + refunds)
In most SourceMedium tables, discounts and refunds are stored as negative numbers (or0).
That means net revenue is additive:
If you see positive refunds in your data, treat it as a data-quality edge case (some platforms can emit adjustments that violate the expected sign conventions).

