Disputes

Retrieve Dispute Summary

Changed on

Totals up the same disputes the list returns, so you can build status tabs and totals without paging through them.

get/disputes/summary

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Query parameters

groups, string[]

Which breakdowns to return, keyed by these names under groups. Repeat the parameter to ask for several; omit it for all of them.

[
  "status"
]
account_id, string

Only disputes filed against this account (biz_ tag). Omit it to cover every account you can read.

status, string[]

Only disputes in these statuses. Repeat the parameter to pass several. A needs_response dispute whose evidence deadline has passed reports and filters as under_review instead.

[
  "needs_response"
]
currency, string

Only disputes in this three-letter ISO currency.

created_before, string

Only disputes opened before this ISO 8601 timestamp.

created_after, string

Only disputes opened after this ISO 8601 timestamp.

query, string

Search disputes by dispute ID, payment ID, user ID, membership ID, user email, name, or username. Email filtering requires the member:email:read permission.

include_subaccounts, boolean

Also cover the account's subaccounts. Requires account_id, and is a 400 without it. Without query, covers the disputes of the account and every subaccount, in any order. The listing is cut off after 10 seconds; add a query to narrow it. With query, matches on dispute, payment, user or membership ID, buyer email, or a card's first 6 or 8 digits and last 4 separated by a space or dash (424242 4242); free-text queries such as a name search only the named account. Subaccounts' disputes are returned only for subaccounts you can read disputes on.

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Response

summary returned

object required
groups, object required

One entry per requested breakdown, keyed by the field it groups on. A field you did not ask for is absent.

total, integer required

How many disputes match the filters.

Example response

{
  "groups": {
    "currency": {
      "usd": 1
    },
    "status": {
      "needs_response": 1
    }
  },
  "total": 1
}

Changes

    • info

      added the enum value generating_response to the property items/ of the query request parameter status

    • info

      added the required property groups/status/generating_response to the response with the status

    • warning

      deleted the query request parameter include_connected_accounts

    1 more change in this revision