Refunds Table

The Refunds table captures detailed information on each refund transaction, encompassing event dates, the original order details, product information, and refund specifics. By querying this table, you can analyze refund patterns, understand the impact of refunds on inventory, and evaluate the reasons behind product returns or order cancellations.

📘

Note

event_date is a required field for queries on this table, and refers to the date of the refund.

Dimensions

Dimensions are immutable properties that can be used for grouping data.

TitleIDTypeDescription
Event Dateevent_datedateThe date the refund was processed. Based on the time zone of the shop at the moment of refund.
Event Dayevent_date.daydateThe day on which the event occurred. Derived from event_date.
Event Weekevent_date.weekdateThe Sunday of the week during which the event occurred. Derived from event_date.
Event Monthevent_date.monthdateThe month during which the event occurred. Derived from event_date.
Event Quarterevent_date.quarterdateThe first month of the quarter during which the event occurred. Derived from event_date.
Event Yearevent_date.yeardateThe year during which the event occurred. Derived from event_date.
Event Hourevent_hourstringThe hour of the day the refund was processed, according to a 24-hour clock. Based on the time zone of the shop at the time the refund was issued.

Example values: 07, 16, 21
Order Dateorder_datedateThe date the original order was processed. Based on the time zone of the shop at the moment of purchase.
Order IDorder_idstringThe unique ID for the original order that was issued a refund. Assigned by the shop platform.

Example value: 6024492815432
Sales PlatformplatformstringThe sales platform where the order was processed.

Example values: Shopify, BigCommerce, WooCommerce, Amazon
Productsproducts_inforecord repeatedDetails about the products associated with the order (at the level of the variant), including name, product ID, variant ID, type, SKU, etc.
Product IDproducts_info.product_idstringThe unique ID of the product as set within the main sales platform.

Example value: 3891505496131
Product Nameproducts_info.product_namestringThe name of the product as set within the main sales platform.

Example values: Green Soft Socks 3-Pack, Paring Knife Travel Case, Gift Subscription
Product Typeproducts_info.product_typestringThe product type as set within the main sales platform.

Example values: Jackets, Coffee Mugs, Books
Product SKUproducts_info.product_skustringThe SKU (Stock Keeping Unit) for the product, as set within the main sales platform.

Example values: GP-BACK-02, A02630, POP200NAVY
Product Variant IDproducts_info.variant_idstringThe unique identifier for a specific variant of a product as set within the main sales platform.

Example value: 29275946877001
Is Gift Cardproducts_info.is_gift_cardbooleanTrue if the product purchased is a gift card.

Possible values: true, false
Product Priceproducts_info.product_name_pricenumericThe price of a single product (to the buyer), before discounts. By default shown in the shop's currency.

Note: Tax will be included in the product price if the seller has configured the sale to require taxes in the main sales platform.
Product Discountproducts_info.discount_amount_for_productnumericThe amount discounted from the product price. By default shown in the shop's currency.
Product Units Soldproducts_info.product_name_quantity_soldnumericThe total number of individual units sold for the product.
Product Costproducts_info.single_product_costnumericThe cost of a single product (to the seller). By default shown in the shop's currency.
Refund Line Itemrefund_line_itemrecord repeatedInformation about the refund(s) issued. There may be multiple refunds per order.
Refund Line Item IDrefund_line_item.refund_line_item_idstringThe unique ID for the refunded line item. Assigned by the shop platform.

Example value: 558610612293
Order Line Item IDrefund_line_item.line_item_idstringThe unique ID for the line item in the original order, that is associated with the refunded line item. Assigned by the shop platform.

Example value: 14883345367111
Is Gift Cardrefund_line_item.gift_cardbooleanTrue if the line item refunded is a gift card.
Product IDrefund_line_item.product_idstringThe unique ID of the product as set within the main sales platform.

Example value: 3891505496131
Variant IDrefund_line_item.variant_idstringThe unique identifier for a specific variant of a product as set within the main sales platform.

Example value: 29275946877001
Is Tax-Inclusiverefund_line_item.taxes_includedbooleanTrue if taxes are included in the refunded line item.
Restock Typerefund_line_item.restock_typestringHow the refund line item affects inventory.

Valid values:
no_restock: Not restocked.
cancel: Canceled and possibly restocked if unfulfilled.
return: Returned and restocked if fulfilled.
legacy_restock: Deprecated. Used for general restocking.
Refund Line Item Product Quantityrefund_line_item.quantitynumericThe quantity of products in the refunded line item.
Refund Line Item Discount Amountrefund_line_item.total_discountnumericThe total discount amount applied to the refunded line item.
Refund Line Item Subtotalrefund_line_item.subtotalnumericThe subtotal of the refunded line item before taxes and discounts.
Refund Line Item Pre-Tax Pricerefund_line_item.pre_tax_pricenumericThe price of the refunded line item after discounts but before taxes.
Refund Line Item Tax Amountrefund_line_item.total_taxnumericThe total tax amount for the refunded line item.
Refund Line Item Pricerefund_line_item.pricenumericThe price of the refunded line item, after taxes and discounts.
Refund Line Item Single Product Costrefund_line_item.refunded_cogs_per_itemnumericCost of goods refunded per item. If refund_line_item.restock_type is no_restock, the cost is 0.
Refund Line Item Costrefund_line_item. refunded_cogs_per_line_itemnumericCost of goods refunded for the entire line item (which may contain multiple units). If refund_line_item.restock_type is no_restock, the cost is 0.
Refund Order Adjustmentsrefund_order_adjustmentrecord repeatedList of refund order adjustments applied to the order. There may be multiple adjustments per order.
Order Adjustment Typerefund_order_adjustment.kindstringThe order adjustment type.

Valid values:
shipping_refund: Refunds related to shipping charges. refund_discrepancy: Discrepancies in the refund amount.
Order Adjustment Tax Amountrefund_order_adjustment. order_adjustment_tax_amountnumericThe taxes that are added to the order adjustment amount, such as applicable shipping taxes added to a shipping refund.
Order Adjustment Amountrefund_order_adjustment. order_adjustment_amountnumericThe value of the discrepancy between the calculated refund and the actual refund. If the kind property's value is shipping_refund, then amount returns the value of shipping charges refunded to the customer.
Sourcesource_namestringThe origin of the order as designated by the seller on the main sales platform.

Example values: web, pos, tiktok
Tagstagsrepeated stringTags associated with the order, assigned by the seller on the main sales platform.

Example values: Upsell, Order Credits, discount_eligible
Updated Atupdated_attimestampThe time at which the refund record was last updated. Formatted according to the ISO 8601 international standard.

Example value: 2022-06-15T19:26:30.000Z

Measures

Measures are numeric fields that can be aggregated and/or combined to calculate new metrics.

TitleIDTypeDescription
Refunded COGStotal_refunded_cogsnumericTotal cost of goods refunded.
Refunded Pricetotal_refunded_pricenumericRefund value processed during the selected time period, based on the refund date (not including refunded cost of goods, taxes, and shipping).

Note that Triple Whale does not track refunds from third-party return management apps (e.g., Loop), so totals may vary from the main sales platform.
Refunded Shippingtotal_refunded_shippingnumericTotal amount of shipping charges refunded.
Refunded Taxtotal_refunded_taxnumericTotal amount of tax refunded.