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

# Earnings

> Your fee on each card sale and withdrawal, refunds, and how Pocketsflow settles your earnings to you.

You earn in two ways, both on top of Pocketsflow's fees:

* **Your fee per sale** on every card sale your sellers make. You set the
  rate (0 to 20%) in **Settings > Fees**.
* **Your withdrawal fee**, if you set one in **Settings > Fees**: a rate and a
  fixed amount on each seller withdrawal.

## How it accrues

* Each paid card sale adds a line (`sale`): your markup rate times the
  sale's net, in USD.
* A refund adds a negative line (`refund`) for the same amount.
* Each paid withdrawal adds a line (`withdrawal_fee`) with your part of its
  fee.
* Lines are in whole cents.

## The Earnings page

| Total | Meaning |
| - | - |
| Accrued | Everything you earned in the period. |
| Settled | What Pocketsflow has paid you. |
| Unsettled | Earned and not paid yet. |

Below: each line (date, seller, sale or refund, amount, rate) and your
settlements. **Export CSV** downloads the lines.

## Settlements

Pocketsflow closes your unsettled lines at the end of each period into a
**settlement**, then pays it:

| Method | How |
| - | - |
| Netted | Taken off your Pocketsflow invoice for the period. |
| Transfer | Sent to you. |
| Wire | Wired to your bank. |

A settlement shows as **Open** until paid, then **Paid** with the date and a
reference.

Over the API: `GET /v1/enterprise/earnings` and
`GET /v1/enterprise/earnings/export.csv` (see the
[reference](https://docs.pocketsflow.com/api-reference/enterprise.md#earnings)).


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