import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const dispute of client.disputes.list()) {
console.log(dispute.id);
}curl --request GET \
--url https://api.whop.com/api/v1/disputes \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.whop.com/api/v1/disputes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.whop.com/api/v1/disputes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.whop.com/api/v1/disputes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.whop.com/api/v1/disputes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.whop.com/api/v1/disputes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"account_id": "<string>",
"amount": 123,
"buyer": {
"email": "<string>",
"member_id": "<string>",
"name": "<string>",
"user_id": "<string>",
"username": "<string>"
},
"created_at": "<string>",
"currency": "<string>",
"evidence": {
"access_activity_log": "<string>",
"billing_address": "<string>",
"cancellation_policy_attachment": {
"content_type": "<string>",
"filename": "<string>",
"id": "<string>",
"platform": true,
"url": "<string>"
},
"cancellation_policy_disclosure": "<string>",
"customer_communication_attachment": {
"content_type": "<string>",
"filename": "<string>",
"id": "<string>",
"platform": true,
"url": "<string>"
},
"customer_email_address": "<string>",
"customer_name": "<string>",
"notes": "<string>",
"product_description": "<string>",
"refund_policy_attachment": {
"content_type": "<string>",
"filename": "<string>",
"id": "<string>",
"platform": true,
"url": "<string>"
},
"refund_policy_disclosure": "<string>",
"refund_refusal_explanation": "<string>",
"service_date": "<string>",
"uncategorized_attachment": {
"content_type": "<string>",
"filename": "<string>",
"id": "<string>",
"platform": true,
"url": "<string>"
}
},
"evidence_due_at": "<string>",
"evidence_editable": true,
"evidence_locked_reason": "submitted",
"evidence_submitted_at": "<string>",
"id": "<string>",
"inquiry": true,
"issuer_comments": [
{
"received_at": "<string>",
"text": "<string>"
}
],
"payment": {
"amount": 123,
"card_brand": "<string>",
"card_last4": "<string>",
"created_at": "<string>",
"currency": "<string>",
"id": "<string>",
"payment_method_type": "<string>",
"payment_processor": "<string>"
},
"plan_id": "<string>",
"product_id": "<string>",
"rapid_dispute_resolution": true,
"reason": "fraudulent",
"reason_code": "<string>",
"status": "needs_response",
"updated_at": "<string>"
}
],
"page_info": {
"end_cursor": "<string>",
"has_next_page": true,
"has_previous_page": true,
"start_cursor": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}List Disputes
Lists the disputes across the accounts you can read.
import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const dispute of client.disputes.list()) {
console.log(dispute.id);
}curl --request GET \
--url https://api.whop.com/api/v1/disputes \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.whop.com/api/v1/disputes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.whop.com/api/v1/disputes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.whop.com/api/v1/disputes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.whop.com/api/v1/disputes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.whop.com/api/v1/disputes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"account_id": "<string>",
"amount": 123,
"buyer": {
"email": "<string>",
"member_id": "<string>",
"name": "<string>",
"user_id": "<string>",
"username": "<string>"
},
"created_at": "<string>",
"currency": "<string>",
"evidence": {
"access_activity_log": "<string>",
"billing_address": "<string>",
"cancellation_policy_attachment": {
"content_type": "<string>",
"filename": "<string>",
"id": "<string>",
"platform": true,
"url": "<string>"
},
"cancellation_policy_disclosure": "<string>",
"customer_communication_attachment": {
"content_type": "<string>",
"filename": "<string>",
"id": "<string>",
"platform": true,
"url": "<string>"
},
"customer_email_address": "<string>",
"customer_name": "<string>",
"notes": "<string>",
"product_description": "<string>",
"refund_policy_attachment": {
"content_type": "<string>",
"filename": "<string>",
"id": "<string>",
"platform": true,
"url": "<string>"
},
"refund_policy_disclosure": "<string>",
"refund_refusal_explanation": "<string>",
"service_date": "<string>",
"uncategorized_attachment": {
"content_type": "<string>",
"filename": "<string>",
"id": "<string>",
"platform": true,
"url": "<string>"
}
},
"evidence_due_at": "<string>",
"evidence_editable": true,
"evidence_locked_reason": "submitted",
"evidence_submitted_at": "<string>",
"id": "<string>",
"inquiry": true,
"issuer_comments": [
{
"received_at": "<string>",
"text": "<string>"
}
],
"payment": {
"amount": 123,
"card_brand": "<string>",
"card_last4": "<string>",
"created_at": "<string>",
"currency": "<string>",
"id": "<string>",
"payment_method_type": "<string>",
"payment_processor": "<string>"
},
"plan_id": "<string>",
"product_id": "<string>",
"rapid_dispute_resolution": true,
"reason": "fraudulent",
"reason_code": "<string>",
"status": "needs_response",
"updated_at": "<string>"
}
],
"page_info": {
"end_cursor": "<string>",
"has_next_page": true,
"has_previous_page": true,
"start_cursor": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}Authorizations
An Account API key, account-scoped JWT, App API key, or user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************.
Headers
Pins the request to a dated API version.
"2026-08-05-1"
Query Parameters
Only disputes filed against this account (biz_ tag). Omit it to cover every account you can read.
The number of disputes to return (default 20, max 100).
A cursor; returns disputes after this position.
The number of disputes to return from the end of the range.
A cursor; returns disputes before this position.
The field to sort disputes by.
created_at, amount, evidence_due_at Sort direction.
asc, desc Only disputes in these statuses. Repeat the parameter to pass several — one paginated list covers all of them. Covers both chargebacks and inquiries at each stage.
needs_response, under_review, won, lost, closed Only disputes in this three-letter ISO currency.
Only disputes opened before this ISO 8601 timestamp.
Only disputes opened after this ISO 8601 timestamp.

