Skip to content

Get pending earnings breakdown​

GET
/payouts/earnings/pending-breakdown

Per-donation attribution of the creator's not-yet-available money, lazy-loaded by the Earnings tab's Pending-tile dialog (#1131). The target is always the authenticated principal. Each donation is classified into one of three states: destination_charge_pending (in the creator's own Stripe balance, not yet available; read from Stripe on each request, with Stripe's own available_on), platform_held_unsettled (platform balance, awaiting settlement), or platform_held_settled (platform balance, eligible for release now). available_on is 00:00 UTC of the release day. Rows already transferred to the creator's Stripe balance and rows under review are excluded from the platform-held states. Rate limited to 100 requests per minute per account.

Authorizations​

BearerAuth

In the browser, authentication rides on the httpOnly session cookies set by /cognito/signin or the Google / Apple sign-in at /cognito/oauth/{provider}. For scripts and for Swagger UI testing, paste an API key (fh_live_…, created with POST /api-keys); a Cognito JWT is accepted too. Sign-in does not return a token in its body.

Type
HTTP (bearer)

Responses​

Pending breakdown (all amounts in cents)

application/json
JSON
{
"pending_breakdown": {
"has_payout_account": true,
"total_cents": 0,
"destination_charge_cents": 0,
"platform_held_unsettled_cents": 0,
"platform_held_settled_cents": 0,
"dates_from_stripe": true,
"release_schedule": [
{
"available_on": "string",
"amount_cents": 0,
"count": 0
}
],
"donations": [
{
"donation_id": "string",
"amount_cents": 0,
"fundraiser_title": "string",
"fundraiser_slug": "string",
"state": "string",
"available_on": "string",
"donated_at": "string",
"kind": "string"
}
]
}
}

Playground​

Server
Authorization

Samples​

Powered by VitePress OpenAPI

Built with VitePress