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

# Payout transactions

> Every movement on the Shopify Payments balance, with the payout that paid it: amount, fees and net, days to payout, by type and payout.

Every movement on the Shopify Payments balance, with the payout that paid it: amount, fees and net, days to payout, by type and payout.

## Example

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

## Metrics

| Metric | Type | Description |
| - | - | - |
| `balance_transaction_amount` | Currency | The movements' amounts, before fees. |
| `balance_transaction_fees` | Currency | Fees on the movements. |
| `balance_transaction_net` | Currency | The movements' amounts after fees: what they add to or take from your payouts. |
| `balance_transactions` | Number | Movements on the Shopify Payments balance. |
| `days_to_payout` | Number | The average days from a movement to the payout that paid it. |

## Dimensions

| Dimension | Description |
| - | - |
| `balance_transaction_type` | What moved the balance, such as charge, refund, chargeback\_hold or adjustment. |
| `payout_status` | pending until paid out, then scheduled, in\_transit or paid. |
| `payout_date` | The day the payout that holds the movement was issued: one payout's orders, together. |
| `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 |
| - | - | - |
| `balance_transaction_type` | Text | What moved the balance, such as charge, refund, chargeback\_hold or adjustment. |
| `payout_status` | Text | pending until paid out, then scheduled, in\_transit or paid. |
| `payout_date` | Text | The day the payout that holds the movement was issued: one payout's orders, together. |
| `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)
* [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)
* [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.