import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const resolutionCenterCase = await client.resolutionCenterCases.retrieve('reso_xxxxxxxxxxxxx');
console.log(resolutionCenterCase.id);{
"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"
},
"platform_response_actions": [
"request_buyer_info"
],
"payment": {
"id": "pay_xxxxxxxxxxxxxx",
"currency": "usd",
"created_at": "2023-12-01T05:00:00.401Z",
"paid_at": "2023-12-01T05:00:00.401Z",
"total": 6.9,
"subtotal": 6.9
},
"member": {
"id": "<string>"
},
"resolution_events": [
{
"id": "revt_xxxxxxxxxxxxx",
"action": "created",
"reporter_type": "merchant",
"details": "I did not authorize this purchase.",
"created_at": "2023-12-01T05:00:00.401Z"
}
]
}Retrieves the details of an existing resolution center case.
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
});
const resolutionCenterCase = await client.resolutionCenterCases.retrieve('reso_xxxxxxxxxxxxx');
console.log(resolutionCenterCase.id);{
"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"
},
"platform_response_actions": [
"request_buyer_info"
],
"payment": {
"id": "pay_xxxxxxxxxxxxxx",
"currency": "usd",
"created_at": "2023-12-01T05:00:00.401Z",
"paid_at": "2023-12-01T05:00:00.401Z",
"total": 6.9,
"subtotal": 6.9
},
"member": {
"id": "<string>"
},
"resolution_events": [
{
"id": "revt_xxxxxxxxxxxxx",
"action": "created",
"reporter_type": "merchant",
"details": "I did not authorize this purchase.",
"created_at": "2023-12-01T05:00:00.401Z"
}
]
}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 ***************************
The unique identifier of the resolution center case.
"reso_xxxxxxxxxxxxx"
A successful response
A resolution center case is a dispute or support case between a user and a company, tracking the issue, status, and outcome.
The unique identifier for the resolution.
"reso_xxxxxxxxxxxxx"
The current status of the resolution case, indicating which party needs to respond or if the case is closed.
merchant_response_needed, customer_response_needed, merchant_info_needed, customer_info_needed, under_platform_review, customer_won, merchant_won, customer_withdrew The category of the dispute.
forgot_to_cancel, item_not_received, significantly_not_as_described, unauthorized_transaction, product_unacceptable The datetime the resolution was created.
"2023-12-01T05:00:00.401Z"
The datetime the resolution was last updated.
"2023-12-01T05:00:00.401Z"
The deadline by which the next response is required. Null if no deadline is currently active. As a Unix timestamp.
"2023-12-01T05:00:00.401Z"
Whether the customer has filed an appeal after the initial resolution decision.
Whether the merchant has filed an appeal after the initial resolution decision.
The list of actions currently available to the customer.
The types of responses a customer can make to a resolution.
respond, appeal, withdraw The list of actions currently available to the merchant.
The types of responses a merchant can make to a resolution.
accept, deny, request_more_info, appeal, respond The company involved in this resolution case. Null if the company no longer exists.
Show child attributes
The customer (buyer) who filed this resolution case.
Show child attributes
The list of actions currently available to the Whop platform for moderating this resolution.
The types of responses the platform can make to a resolution.
request_buyer_info, request_merchant_info, merchant_wins, platform_refund, merchant_refund The payment record that is the subject of this resolution case.
Show child attributes
The membership record associated with the disputed payment. Null if the membership no longer exists.
Show child attributes
The most recent 50 messages, actions, and status changes that have occurred during this resolution case.
Show child attributes
Was this page helpful?