Payouts

Get Chargebacks Chart

Returns a daily timeseries of chargebacks over a date window — one series of summed chargeback amounts (chartAmount) and one series of row counts (chartCount) — alongside the window's total and the delta versus the prior equal-length window. Backs the line/bar chart on the OnlyFans Statistics → Chargebacks page. Requires permission api_payouts_read_chargebacks_chart.

https://public-api.fansmetric.com
GET/v1/{account_id}/payouts/chargebacks/chart
Bearer

Authorization

default
AuthorizationBearer <token>

Send your FansMetric API key as a Bearer token in the Authorization header.

In: header

Path Parameters

  • account_id*integer

    OnlyFans numeric account ID.

Query Parameters

  • start_datestring

    Window start. Default 2 years ago, UTC. YYYY-MM-DD HH:MM:SS or ISO 8601 (the T separator is normalized to a space).

  • end_datestring

    Window end. Default end of today, UTC. Same format as start_date.

Response Fields

  • data.chartAmount[]array

    One bucket per UTC day in the window (inclusive of start_date and end_date). Emitted even when count is 0.

  • data.chartAmount[].datestring

    ISO 8601 midnight UTC for the bucket day.

  • data.chartAmount[].countnumber

    Sum of chargeback amounts filed that day, in the account's payout currency. The field is named count upstream — it represents dollars here.

  • data.chartCount[]array

    One bucket per UTC day in the window. Same length and date keys as chartAmount.

  • data.chartCount[].datestring

    ISO 8601 midnight UTC for the bucket day.

  • data.chartCount[].countnumber

    Number of chargeback rows filed that day.

  • data.totalnumber

    Sum of chartAmount[].count over the window — total chargeback dollars in the period.

  • data.deltanumber

    total minus the total of the immediately preceding window of the same length. Positive = chargebacks grew vs. prior period; negative = shrank.

  • dataobject | array

    Endpoint-specific payload. See the fields below for this route.

  • _meta._credits.usedinteger

    Credits consumed by this request (currently always 1).

  • _meta._rate_limits.limit_minuteinteger

    Maximum requests per minute for the organization.

  • _meta._rate_limits.remaining_minuteinteger

    Remaining requests in the current minute window.

  • _meta._rate_limits.limit_dayinteger

    Maximum requests per day for the organization.

  • _meta._rate_limits.remaining_dayinteger

    Remaining requests in the current day window.

curl --request GET "https://public-api.fansmetric.com/v1/100000001/payouts/chargebacks/chart?start_date=2026-01-01%2000%3A00%3A00&end_date=2026-01-31%2023%3A59%3A59" \
  --header "Authorization: Bearer YOUR_API_KEY"

Response

200
{
"data":{
"chartAmount":[
0:{
"date":"2025-12-10T00:00:00+00:00"
"count":0
}
1:{
"date":"2025-12-11T00:00:00+00:00"
"count":68.87
}
2:{
"date":"2025-12-12T00:00:00+00:00"
"count":0
}
]
"chartCount":[
0:{
"date":"2025-12-10T00:00:00+00:00"
"count":0
}
1:{
"date":"2025-12-11T00:00:00+00:00"
"count":1
}
2:{
"date":"2025-12-12T00:00:00+00:00"
"count":0
}
]
"total":8398.35
"delta":926.7
}
"_meta":{
"_credits":{
"used":1
}
"_rate_limits":{
"limit_minute":1000
"remaining_minute":999
"limit_day":50000
"remaining_day":49999
}
}
}

Behavior

Upstream OnlyFans endpoint: GET /api2/v2/payouts/chargebacks/chart?startDate=…&endDate=…&withTotal=true&withChart=true&filter[chartAmount]=chartAmount&filter[chartCount]=chartCount. Both series are always requested together — the proxy forwards the same flags so callers don't have to.

Dates filter on the chargeback's filing date (createdAt), matching /payouts/chargebacks. To sanity-check the chart, sum chartCount over the window and compare to the row count returned by paginating the chargebacks list over the same range.

Both arrays share the same length and date keys, so they zip 1:1 — each index represents the same UTC day in both series.

For the aggregate ratio (chargebacks ÷ gross sales) over a window, use /payouts/chargebacks/ratio.