Payouts

Record what a funded account paid you, list payouts, and remove one logged by mistake.

A payout is money a funded account paid you. Payouts count as profit taken: after a payout the balance drops, but the account's P&L doesn't.

The payout object

{
  "id": "c1d6a8e0-…",
  "paid_on": "2026-12-15",
  "amount": 1500,
  "note": "First payout",
  "created_at": "2026-12-15T18:02:11.482+00:00"
}

List payouts

GET /accounts/{id}/payouts

Newest first. Returns { "payouts": [ … ] }. Any key.

Log a payout

POST /accounts/{id}/payouts. Read & write key.

curl -X POST https://degenandfriends.com/api/v1/accounts/$ID/payouts \
  -H "Authorization: Bearer $DF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "paid_on": "2026-12-15", "amount": 1500, "note": "First payout" }'
  • paid_on and amount are required; note is optional (up to 280 characters).
  • The date can't be in the future, and the account can't be archived.

Returns 201 with { "payout": { … } }.

Unlike days, payouts aren't replaced: each request adds one. If a script might send the same payout twice, list the payouts first.

Remove a payout

DELETE /accounts/{id}/payouts/{payout_id}. Read & write key.

Returns { "deleted": true }, or 404 not_found.