> ## 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.

# Disputes

> Chargebacks and inquiries by the day they were opened: count, value, rate, fraud, win rate and amount lost, by reason and status.

Chargebacks and inquiries by the day they were opened: count, value, rate, fraud, win rate and amount lost, by reason and status.

## Example

```sql theme={null}
FROM disputes
  SHOW chargebacks, chargeback_amount
  GROUP BY sales_channel
  SINCE startOfMonth(-1m) UNTIL today
  ORDER BY chargebacks DESC
```

## Metrics

| Metric | Type | Description |
| - | - | - |
| `chargebacks` | Number | Payments disputed with the card issuer. |
| `chargeback_amount` | Currency | The value of the disputed payments. |
| `chargeback_rate` | Percent | Chargebacks as a share of the period's successful payments. |
| `fraudulent_chargebacks` | Number | Chargebacks the customer reported as fraud. |
| `fraudulent_chargeback_rate` | Percent | Fraud chargebacks as a share of the period's successful payments. |
| `inquiries` | Number | Questions from the card issuer before a chargeback. |
| `dispute_win_rate` | Percent | Disputes won, as a share of those decided. |
| `dispute_loss_amount` | Currency | The value of disputes lost or accepted. |
| `recovered_dispute_amount` | Currency | The value of disputes won. |

## Dimensions

| Dimension | Description |
| - | - |
| `chargeback_reason` | The reason given, such as fraudulent, product\_not\_received or subscription\_canceled. |
| `dispute_status` | needs\_response, under\_review, won, lost, accepted, charge\_refunded or prevented. |
| `dispute_type` | chargeback or inquiry. |
| `sales_channel` | The sales channel the order came through, such as Online Store or Point of Sale. |
| `order_name` | Order name, such as #1001. |

## Filters

| Filter | Type | Description |
| - | - | - |
| `chargeback_reason` | Text | The reason given, such as fraudulent, product\_not\_received or subscription\_canceled. |
| `dispute_status` | Text | needs\_response, under\_review, won, lost, accepted, charge\_refunded or prevented. |
| `dispute_type` | Text | chargeback or inquiry. |
| `sales_channel` | Text | The sales channel the order came through, such as Online Store or Point of Sale. |

## 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

* [Payments](https://docs.queryful.app/queryfulql/datasets/payments.md)
* [Payouts](https://docs.queryful.app/queryfulql/datasets/payouts.md)
* [Payout transactions](https://docs.queryful.app/queryfulql/datasets/balance_transactions.md)
* [Chargebacks](https://docs.queryful.app/queryfulql/datasets/chargebacks.md)
* [Gift cards](https://docs.queryful.app/queryfulql/datasets/gift_cards.md)
* [Store credit transactions](https://docs.queryful.app/queryfulql/datasets/store_credit_transactions.md)
* [Store credit balance](https://docs.queryful.app/queryfulql/datasets/store_credit_summaries.md)
* [Payment attempts](https://docs.queryful.app/queryfulql/datasets/payment_attempts.md)
* [Receivables](https://docs.queryful.app/queryfulql/datasets/receivables.md)
* [Payments balance](https://docs.queryful.app/queryfulql/datasets/payments_balance.md)


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