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 resolutionCenterCaseListResponse of client.resolutionCenterCases.list()) {
console.log(resolutionCenterCaseListResponse.id);
}{
"data": [
{
"id": "reso_xxxxxxxxxxxxx",
"status": "merchant_response_needed",
"issue": "forgot_to_cancel",
"created_at": "2023-12-01T05:00:00.401Z",
"updated_at": "2023-12-01T05:00:00.401Z",
"due_date": "2023-12-01T05:00:00.401Z",
"customer_appealed": true,
"merchant_appealed": true,
"customer_response_actions": [
"respond"
],
"merchant_response_actions": [
"accept"
],
"company": {
"id": "biz_xxxxxxxxxxxxxx",
"title": "Pickaxe"
},
"user": {
"id": "user_xxxxxxxxxxxxx",
"name": "John Doe",
"username": "johndoe42"
},
"payment": {
"id": "pay_xxxxxxxxxxxxxx"
}
}
],
"page_info": {
"end_cursor": "<string>",
"start_cursor": "<string>",
"has_next_page": true,
"has_previous_page": true
}
}Returns a paginated list of resolution center cases, with optional filtering by company, status, and creation date.
Required permissions:
payment:resolution_center_case:readimport 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 resolutionCenterCaseListResponse of client.resolutionCenterCases.list()) {
console.log(resolutionCenterCaseListResponse.id);
}{
"data": [
{
"id": "reso_xxxxxxxxxxxxx",
"status": "merchant_response_needed",
"issue": "forgot_to_cancel",
"created_at": "2023-12-01T05:00:00.401Z",
"updated_at": "2023-12-01T05:00:00.401Z",
"due_date": "2023-12-01T05:00:00.401Z",
"customer_appealed": true,
"merchant_appealed": true,
"customer_response_actions": [
"respond"
],
"merchant_response_actions": [
"accept"
],
"company": {
"id": "biz_xxxxxxxxxxxxxx",
"title": "Pickaxe"
},
"user": {
"id": "user_xxxxxxxxxxxxx",
"name": "John Doe",
"username": "johndoe42"
},
"payment": {
"id": "pay_xxxxxxxxxxxxxx"
}
}
],
"page_info": {
"end_cursor": "<string>",
"start_cursor": "<string>",
"has_next_page": true,
"has_previous_page": true
}
}A company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
42
Returns the last n elements from the list.
42
The unique identifier of the company to list resolution center cases for.
"biz_xxxxxxxxxxxxxx"
The sort direction.
asc, desc Filter by resolution center case status.
The statuses a resolution object can have
merchant_response_needed, customer_response_needed, merchant_info_needed, customer_info_needed, under_platform_review, customer_won, merchant_won, customer_withdrew Only return cases created before this timestamp.
"2023-12-01T05:00:00.401Z"
Only return cases created after this timestamp.
"2023-12-01T05:00:00.401Z"
Was this page helpful?