Open a Case as the Customer
Changed onOpens a case, as the customer, against one of your own payments. Provide the payment (receipt_id), the reason, and a message. Send answers to record the customer's answers to the questions for that reason.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Headers
Pins the request to a dated API version.
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
The customer's answers to the questions for this reason. Every required question needs an answer, and a question the reason does not ask is refused.
The customer's explanation.
What went wrong. Uses the same vocabulary as /disputes.
The payment to open the case against (pay_ tag).
Example request
{
"answers": [
{
"attachments": [
{
"id": "file_xxxxxxxxxxxxxx"
}
],
"question": "purchased",
"value": "Ceramic Coating appointment"
}
],
"attachments": [
{
"direct_upload_id": "eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"id": "file_xxxxxxxxxxxxxx"
}
],
"message": "The mobile detailer never showed up for the Ceramic Coating appointment.",
"reason": "product_not_received",
"receipt_id": "pay_xxxxxxxxxxxxxx"
}Response
case opened with answers
The amount in question, in whole units of currency.
The customer who opened the case.
When the case closed, as an ISO 8601 timestamp. null while the case is open, and on older closed cases that predate this being recorded.
When the case was opened, as an ISO 8601 timestamp.
Three-letter ISO currency code of the amount.
Whether the customer has appealed a decision on this case.
Whether Whop is involved — either reviewing the case, or waiting on the side named by status for something it asked for while reviewing.
Resolution center case ID, prefixed reso_.
Who prevailed on the claim. null until the case closes. Read refund for whether any money actually moved.
The payment the case was opened against.
The product the payment was for, prefixed prod_.
What the customer says went wrong. Shares the /disputes vocabulary, so a case that later becomes a chargeback reports the same complaint.
Whether money moved and off whose balance: none, merchant, or platform (Whop refunded the customer and the merchant kept the funds). Independent of outcome — a case the merchant won can still carry a platform refund. null while the case is open, and on older closed cases that predate this being recorded.
When the next response is due, as an ISO 8601 timestamp.
Who the case is waiting on. awaiting_merchant and awaiting_customer name the side that owes a response, under_review means Whop is deciding, and closed means it is settled — read outcome for how.
When the case was last changed, as an ISO 8601 timestamp.
The variant the payment was made on, prefixed plan_.
Example response
{
"account": {
"id": "biz_xxxxxxxxxxxxxx",
"title": "Shine Time Auto Detailing"
},
"amount": 249,
"answers": [
{
"attachments": [
{
"content_type": "image/png",
"filename": "booking-confirmation.png",
"id": "file_xxxxxxxxxxxxxx",
"url": "https://whop-assets-example.s3.amazonaws.com/uploads/image/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
],
"id": "inrqi_xxxxxxxxxxxxxx",
"question": "expected_by",
"value": "January 5"
}
],
"available_actions": [
"accept"
],
"buyer": {
"email": "marcus@shinetime.example",
"member_id": "mber_xxxxxxxxxxxxxx",
"name": "Dana Whitfield",
"user_id": "user_xxxxxxxxxxxxxx",
"username": "danawhitfield"
},
"closed_at": "2026-01-01T12:00:00.000Z",
"created_at": "2026-01-01T12:00:00.000Z",
"currency": "usd",
"id": "reso_xxxxxxxxxxxxxx",
"line_items": [
{
"discount_amount": {
"amount": "-1234.56",
"currency": "usd",
"decimals": 2,
"display_decimals": 2
},
"id": "li_xxxxxxxxxxxxxx",
"label": "Credit card surcharge",
"product_id": "prod_xxxxxxxxxxxxxx",
"product_title": "Credit card surcharge",
"quantity": 1,
"subtotal": {
"amount": "-1234.56",
"currency": "usd",
"decimals": 2,
"display_decimals": 2
},
"variant_id": "plan_xxxxxxxxxxxxxx",
"variant_title": "Credit card surcharge"
}
],
"outcome": "merchant_won",
"payment": {
"card_brand": "visa",
"card_last4": "4242",
"created_at": "2026-01-01T12:00:00.000Z",
"id": "pay_xxxxxxxxxxxxxx",
"payment_method_type": "card"
},
"product_id": "prod_xxxxxxxxxxxxxx",
"reason": "product_not_received",
"refund": "none",
"response_due_at": "2026-01-01T12:00:00.000Z",
"status": "closed",
"updated_at": "2026-01-01T12:00:00.000Z",
"variant_id": "plan_xxxxxxxxxxxxxx"
}Changes
- info
added the required property
line_items/items/discount_amountto the response with the status
- info
- warning
added the new
credit_not_processedenum value to thereasonresponse property for the response status - info
added the new optional request property
answers
2 more changes in this revision
- warning