# Payouts

> Record, approve, reject and pay funded accounts' payouts, with the trader's share and the balance before and after.

Source: https://www.propexecutor.com/docs/payouts
Whole reference in one file: https://www.propexecutor.com/doc.md

A payout is a funded account's profit leaving its balance. It is requested (by the trader in the terminal, from the admin panel, or here), approved, and marked paid once you have sent the money. Marking it paid takes the amount off the account's balance and records the trader's share from the account's profit split.

- **Funded accounts only.** Evaluation accounts answer `not_funded`.
- **Only closed profit can be withdrawn**: the realized balance above the starting balance.
- **An open payout pauses trading.** From the request until it is paid, rejected or cancelled, every order on the account is refused. A request also needs the account flat: no open positions and no pending orders.
- **A payout is not a loss.** Paying out never trips a drawdown or any other rule.

## Profit split and payout cycle

Both are set on the [account type](https://www.propexecutor.com/docs/account-types): `profit_split_pct` (more than 0, at most 100) and `payout_cycle_days` (1 to 365). They are frozen onto each funded account when it is created, so changing the account type later never changes an existing account's terms. Without a split, the trader's share is 100% of the amount. The cycle limits how often the trader may request from the terminal; requests you record through the panel or this API are not held to it.

## The payout object

| Field | Type | Description |
| --- | --- | --- |
| `id` | uuid | The payout. |
| `trading_account_id` | uuid | The account it is paid from. |
| `account_number` | integer | That account's 8-digit number. |
| `account_type_name` | string | The account type it was created from. |
| `starting_balance` | number | The account's starting balance. |
| `trader_id, trader_name, trader_email` | string \| null | Who held the account when it was requested. |
| `status` | string | `requested`, `approved`, `paid`, `rejected` or `cancelled`. |
| `source` | string | `terminal`, `panel` or `api`: where it was requested. |
| `requested_amount` | number | The amount asked for. |
| `split_pct` | number \| null | The account's profit split. Null means 100%. |
| `trader_share` | number | The trader's reward: the amount × `split_pct`. Final once paid. |
| `trader_note` | string \| null | The note sent with the request. |
| `paid_amount` | number \| null | What was taken off the balance. Set when paid. |
| `balance_before` | number \| null | The account's balance just before the deduction. Set when paid. |
| `balance_after` | number \| null | The account's balance just after it. Set when paid. |
| `method, reference` | string \| null | How you paid, and your own reference for it. |
| `paid_on` | date \| null | The day you paid, `YYYY-MM-DD`. |
| `reject_reason, message_to_trader` | string \| null | Set when rejected. |
| `can_request_again` | boolean | Whether a rejected trader may request again straight away. |
| `cancel_reason` | string \| null | Set when the trader cancelled. |
| `created_at, decided_at, paid_at` | timestamp | When it was requested, approved or rejected, and paid. The last two are null until then. |

## List payouts

`GET /v1/payouts` · **Available** · scope `accounts:read`

Newest first, [cursor-paged](https://www.propexecutor.com/docs/pagination). Filter with `?status=` (any status above) and `?account=` (an account number).

## Get one payout

`GET /v1/payouts/{id}` · **Available** · scope `accounts:read`

Answers `{ payout, checks, history }`: the payout, the account's state to judge it by (balance, `available`, open positions, trading days, cycle profit, best day and its share, rule flags), and the account's earlier payouts.

## An account's payouts

`GET /v1/accounts/{account}/payouts` · **Available** · scope `accounts:read`

<!-- 200 OK -->
```json
{
  "funded": true,
  "split_pct": 80,
  "cycle_days": 14,
  "available": 5000.00,
  "paid_total": 0,
  "trader_total": 0,
  "waiting": 0,
  "next_window": "2026-11-18T00:00:00Z",
  "payouts": []
}
```

`available` is what can be withdrawn now; `paid_total` and `trader_total` are everything paid out and the traders' share of it; `waiting` is the amount of an open request.

## Record a request

`POST /v1/accounts/{account}/payouts` · **Available** · scope `accounts:write`

<!-- Request -->
```json
{
  "amount": 5000.00,
  "note": "November payout"
}
```

Answers `201` with the payout, status `requested`, source `api`. Trading on the account pauses at once. `note` is optional, up to 1,000 characters. One open payout per account.

## Approve

`POST /v1/payouts/{id}/approve` · **Available** · scope `accounts:write`

Moves a `requested` payout to `approved`. No body. Trading stays paused until it is paid, because the money has not left the balance yet. Approving is optional: a requested payout can be marked paid directly.

## Reject

`POST /v1/payouts/{id}/reject` · **Available** · scope `accounts:write`

<!-- Request -->
```json
{
  "reason": "Consistency rule",
  "message": "Your best day was over 40% of the cycle's profit.",
  "can_request_again": false
}
```

Rejects a `requested` or `approved` payout and trading resumes. `reason` is required (200 characters); `message` is shown to the trader (2,000 characters).

## Mark paid

`POST /v1/payouts/{id}/paid` · **Available** · scope `accounts:write`

Takes `amount` off the account's balance, records `trader_share` = `amount` × `split_pct`, and writes the balance before and after, in one transaction. Trading resumes. Every field is optional.

| Field | Type | Description |
| --- | --- | --- |
| `amount` | number | What to take off the balance. Defaults to `requested_amount`; at most the account's closed profit. |
| `method` | string | How you paid, e.g. `Wire`. Up to 60 characters. |
| `reference` | string | Your own reference. Up to 200 characters. |
| `paid_on` | date | `YYYY-MM-DD`. Defaults to today; never in the future. |

Example: a funded account with an 80% split and $5,000 of closed profit. The full $5,000 leaves the balance and the trader's reward is recorded as $4,000.

<!-- Request -->
```json
{
  "amount": 5000.00,
  "method": "Wire",
  "reference": "TX-1234",
  "paid_on": "2026-11-18"
}
```

<!-- 200 OK -->
```json
{
  "id": "6f1c2b9e-0a4d-4c55-9b1e-2d7f3a8c4e10",
  "trading_account_id": "b0e7d1a2-3c4f-4e5a-8b9c-0d1e2f3a4b5c",
  "account_number": 10001234,
  "account_type_name": "$100K Funded",
  "starting_balance": 100000.00,
  "trader_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
  "trader_name": "Jane Doe",
  "trader_email": "jane@example.com",
  "status": "paid",
  "source": "api",
  "requested_amount": 5000.00,
  "split_pct": 80,
  "trader_share": 4000.00,
  "trader_note": null,
  "paid_amount": 5000.00,
  "method": "Wire",
  "paid_on": "2026-11-18",
  "reference": "TX-1234",
  "balance_before": 105000.00,
  "balance_after": 100000.00,
  "reject_reason": null,
  "message_to_trader": null,
  "can_request_again": false,
  "cancel_reason": null,
  "created_at": "2026-11-17T09:12:44Z",
  "decided_at": "2026-11-18T10:03:11Z",
  "paid_at": "2026-11-18T10:03:11Z"
}
```

> **The account must be flat**
> An account with open positions or pending orders answers `open_positions`. The amount is taken off the balance as it is when you mark it paid, so nothing may be floating.

## Errors

In the usual [error shape](https://www.propexecutor.com/docs/errors), with these codes:

| Code | Status | When |
| --- | --- | --- |
| `not_funded` | 409 | The account is not a funded account. |
| `account_not_active` | 409 | The account is breached, passed or archived. |
| `payout_open` | 409 | The account already has an open payout. |
| `nothing_to_withdraw` | 409 | There is no closed profit above the starting balance. |
| `over_available` | 409 | The amount is more than the closed profit. |
| `account_not_flat` | 409 | A request was made with positions or pending orders open. |
| `open_positions` | 409 | Marked paid with positions or pending orders open. |
| `payout_not_open` | 409 | The payout was already paid, rejected or cancelled. |
| `invalid_amount` | 400 | The amount is below 0.01. |
| `invalid_paid_on` | 400 | Not a date, in the future, or before the account existed. |
| `invalid_reason` | 400 | A rejection without a reason, or one over 200 characters. |
| `not_found` | 404 | No such payout or account in your organization. |

## Webhooks

Every status change is sent to your [webhook endpoints](https://www.propexecutor.com/docs/webhooks) as `payout.requested`, `payout.approved`, `payout.paid`, `payout.rejected` and `payout.cancelled`, carrying the account and the payout's fields.
