> ## Documentation Index
> Fetch the complete documentation index at: https://docs.queryful.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Refunds

> Each refund, by the day it was processed: refunds, amount refunded and average refund, shipping, shipping tax and duties refunded, and balancing adjustments, by refund type, adjustment reason and note.

Each refund, by the day it was processed: refunds, amount refunded and average refund, shipping, shipping tax and duties refunded, and balancing adjustments, by refund type, adjustment reason and note.

## Example

```sql theme={null}
FROM refunds
  SHOW refunds, amount_refunded
  GROUP BY refund_type
  SINCE startOfMonth(-1m) UNTIL today
  ORDER BY refunds DESC
```

## Metrics

| Metric | Type | Description |
| - | - | - |
| `refunds` | Number | Refunds processed. |
| `amount_refunded` | Currency | Money returned to customers, shipping, taxes and duties included. |
| `average_refund` | Currency | Amount refunded per refund. |
| `shipping_refunded` | Currency | Shipping charges refunded, before tax. |
| `shipping_tax_refunded` | Currency | Tax on the shipping charges refunded. |
| `duties_refunded` | Currency | Import duties refunded. |
| `refund_adjustments` | Currency | Balancing adjustments on the refunds, such as a refund for more or less than the items' value. |

## Dimensions

| Dimension | Description |
| - | - |
| `refund_type` | With a return, when the refund settled a return, or Without a return. |
| `refund_adjustment_reason` | Why the refund was adjusted, such as Refund discrepancy, comma separated when there were several. |
| `refund_note` | The note left on the refund. |
| `order_name` | The order the refund was made on. |

## Filters

| Filter | Type | Description |
| - | - | - |
| `refund_adjustment_reason` | Text | Why the refund was adjusted, such as Refund discrepancy, comma separated when there were several. |
| `refund_note` | Text | The note left on the refund. |
| `order_name` | Text | The order the refund was made on. |
| `refund_type` | Text | With a return or Without a return. |

## Linked records

Fields of the records this dataset reaches can be shown, grouped by and filtered on, written with a dot after the record (for example `order.name`). Each record's page lists its fields.

| Write | Record | Reached through |
| - | - | - |
| `order.<field>` | [Order](https://docs.queryful.app/queryfulql/records/order.md) | Order |
| `order.customer.<field>` | [Customer](https://docs.queryful.app/queryfulql/records/customer.md) | Order › Customer |
| `order.customer.company.<field>` | [Company](https://docs.queryful.app/queryfulql/records/company.md) | Order › Customer › Company |
| `order.company.<field>` | [Company](https://docs.queryful.app/queryfulql/records/company.md) | Order › Company |
| `order.company_location.<field>` | [Company location](https://docs.queryful.app/queryfulql/records/company_location.md) | Order › Company location |
| `order.company_location.company.<field>` | [Company](https://docs.queryful.app/queryfulql/records/company.md) | Order › Company location › Company |
| `order.location.<field>` | [Location](https://docs.queryful.app/queryfulql/records/location.md) | Order › Location |
| `order.market.<field>` | [Market](https://docs.queryful.app/queryfulql/records/market.md) | Order › Market |
| `shop.<field>` | [Store](https://docs.queryful.app/queryfulql/records/shop.md) | Store |

## Related datasets

* [Sales](https://docs.queryful.app/queryfulql/datasets/sales.md)
* [Orders](https://docs.queryful.app/queryfulql/datasets/orders.md)
* [Order line items](https://docs.queryful.app/queryfulql/datasets/order_lines.md)
* [Returns](https://docs.queryful.app/queryfulql/datasets/returns.md)
* [Restocks](https://docs.queryful.app/queryfulql/datasets/refund_lines.md)
* [Sales taxes](https://docs.queryful.app/queryfulql/datasets/sales_taxes.md)
* [Write-offs](https://docs.queryful.app/queryfulql/datasets/sale_write_offs.md)
* [Profitability](https://docs.queryful.app/queryfulql/datasets/profitability.md)
* [Agentic sales](https://docs.queryful.app/queryfulql/datasets/agentic_sales.md)
* [Products bought together](https://docs.queryful.app/queryfulql/datasets/product_pairs.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.