Retrieve Dispute Summary
Changed onTotals up the same disputes the list returns, so you can build status tabs and totals without paging through them.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Query parameters
Which breakdowns to return, keyed by these names under groups. Repeat the parameter to ask for several; omit it for all of them.
[ "status" ]
Only disputes filed against this account (biz_ tag). Omit it to cover every account you can read.
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" ]
Only disputes in this three-letter ISO currency.
Only disputes opened before this ISO 8601 timestamp.
Only disputes opened after this ISO 8601 timestamp.
Search disputes by dispute ID, payment ID, user ID, membership ID, user email, name, or username. Email filtering requires the member:email:read permission.
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
Pins the request to a dated API version.
Response
summary returned
One entry per requested breakdown, keyed by the field it groups on. A field you did not ask for is absent.
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_responseto the propertyitems/of thequeryrequest parameterstatus - info
added the required property
groups/status/generating_responseto the response with the status
- info
- warning
deleted the
queryrequest parameterinclude_connected_accounts
1 more change in this revision
- warning