Refunds Table
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_dateis 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.
Title | ID | Type | Description |
|---|---|---|---|
Event Hour |
| string | The hour of the day the refund was processed, according to a 24-hour clock. Based on the shop time zone at the moment of the event (or the user time zone, if no sales platform is connected). Example values: |
Event Date |
| date | The date the refund was processed. Based on the shop time zone at the moment of the event (or the user time zone, if no sales platform is connected). |
Event Day |
| date | The day on which the event occurred. Derived from |
Event Week |
| date | The Sunday of the week during which the event occurred. Derived from |
Event Month |
| date | The month during which the event occurred. Derived from |
Event Quarter |
| date | The first month of the quarter during which the event occurred. Derived from |
Event Year |
| date | The year during which the event occurred. Derived from |
Order Date |
| date | The date the original order was processed. Example value: |
Order ID |
| string | The unique ID for the original order that was issued a refund. Assigned by the shop platform. Example value: |
Sales Platform |
| string | The sales platform where the order was processed. Example values: |
Products |
| record repeated | Details about the products associated with the order (at the level of the variant), including name, product ID, variant ID, type, SKU, etc. Returns the latest product information, not necessarily the data at the time the order was placed. |
Product ID |
| string | The unique ID of the product as set within the main sales platform. Example value: |
Product Name |
| string | The name of the product as set within the main sales platform. Example values: |
Product SKU |
| string | The SKU (Stock Keeping Unit) for the product, as set within the main sales platform. Example values: |
Product Variant ID |
| string | The unique identifier for a specific variant of a product as set within the main sales platform. Example value: |
Is Gift Card |
| boolean | True if the product purchased is a gift card. Possible values: |
Product Properties |
| record repeated | |
Product Property Name |
| string | The name or key of the product property. |
Product Property Value |
| string | The value assigned to the product property. |
Product Duties |
| record repeated | Import duties or tariffs applied to the product. |
Product Duty ID |
| string | The unique identifier of the duty applied to the product. |
Product Duty Amount |
| numeric | The monetary amount of duty charged for the product.' |
Product Duty Tax Lines |
| record repeated | Tax lines charged on the product duty. |
Product Duty Tax Line Amount |
| numeric | The tax amount charged on the product duty per tax line. |
Product Price |
| numeric | The 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. |
Total Product Discount |
| numeric | The amount discounted from the product price, before taxes. By default shown in the shop's currency. |
Product Units Sold |
| numeric | The total number of individual units sold for the product. |
Product Cost |
| numeric | The cost of a single product (to the seller). By default shown in the shop's currency. |
Refund Order Adjustments |
| record repeated | List of refund order adjustments applied to the order. There may be multiple adjustments per order. |
Order Adjustment Type |
| string | The order adjustment type. Valid values:
|
Order Adjustment Tax Amount |
| numeric | The taxes that are added to the order adjustment amount, such as applicable shipping taxes added to a shipping refund. |
Order Adjustment Amount |
| numeric | The value of the discrepancy between the calculated refund and the actual refund. If the |
Shop ID |
| string | The unique ID of the shop (often corresponds to the shop domain). Can be used to group or filter data by shop in multi-store reports. Example values: |
Shop Name |
| string | The name of the shop. Can be used to group or filter data by shop in multi-store reports. Example values: |
Source |
| string | The origin of the order as designated by the seller on the main sales platform. Example values: |
Tags |
| repeated string | Tags associated with the order, assigned by the seller on the main sales platform. Example values: |
Updated At |
| timestamp | The time at which the refund record was last updated. Formatted according to the ISO 8601 international standard. Example value: |
Measures
Measures are numeric fields that can be aggregated and/or combined to calculate new metrics.
Title | ID | Type | Description |
|---|---|---|---|
Refunded COGS |
| numeric | Refunded cost of goods (COGS) amount for the selected time period. Calculated based on the refund date. |
| numeric | Refunded sales amount for the selected time period. Calculated based on the refund date. Note that Triple Whale does not track refunds from third-party return management apps (e.g., Loop), so totals may vary from the sales platform. | |
Refunded Shipping |
| numeric | Refunded shipping amount for the selected time period. Calculated based on the refund date. |
Refunded Tax |
| numeric | Refunded tax amount for the selected time period. Calculated based on the refund date. |
Updated 4 days ago