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

# Payments balance

> The Shopify Payments balance over time, from a daily snapshot, by currency.

The Shopify Payments balance over time, from a daily snapshot, by currency.

## Example

```sql theme={null}
FROM payments_balance
  SHOW payments_balance, average_payments_balance
  GROUP BY balance_currency
  SINCE startOfMonth(-1m) UNTIL today
  ORDER BY payments_balance DESC
```

## Metrics

| Metric | Type | Description |
| - | - | - |
| `payments_balance` | Currency | The Shopify Payments balance on the last day of the period (or of each day over time). |
| `average_payments_balance` | Currency | The average daily Shopify Payments balance over the period. |

## Dimensions

| Dimension | Description |
| - | - |
| `balance_currency` | The balance's currency. |

## Filters

| Filter | Type | Description |
| - | - | - |
| `balance_currency` | Text | The balance's currency. |

## 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 `shop.name`). Each record's page lists its fields.

| Write | Record | Reached through |
| - | - | - |
| `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)
* [Disputes](https://docs.queryful.app/queryfulql/datasets/disputes.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)


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