Refunds

Lists refunds the caller can read, newest first. Filter by payment, account, or buyer to narrow the results.

get/refunds

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Query parameters

account_id, string

Only refunds issued by this account, prefixed biz_.

payment_id, string

Only refunds of this payment, prefixed pay_.

user_id, string

Only refunds to this buyer, prefixed user_.

created_before, string date-time

Only refunds requested before this ISO 8601 timestamp.

created_after, string date-time

Only refunds requested after this ISO 8601 timestamp.

order, 'created_at'

The field to sort by.

direction, 'asc' | 'desc'

The sort direction.

first, integer

Number of results to return from the start of the range.

after, string

Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.

last, integer

Number of results to return from the end of the range.

before, string

Return results before this cursor. Use page_info.start_cursor from the previous response to fetch the previous page.

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Response

refunds listed

object required
data, Refund[] required
page_info, object required

Example response

{
  "data": [
    {
      "account_id": "biz_xxxxxxxxxxxxxx",
      "amount": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "created_at": "2026-01-01T12:00:00.000Z",
      "failure_message": "The customer's card is expired or was canceled.",
      "failure_reason": "expired_or_canceled_card",
      "id": "rf_xxxxxxxxxxxxxx",
      "original_amount": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "payment_id": "pay_xxxxxxxxxxxxxx",
      "provider": "stripe",
      "provider_created_at": "2026-01-01T12:00:00.000Z",
      "reason": "duplicate",
      "reference_status": "available",
      "reference_type": "acquirer_reference_number",
      "status": "failed",
      "updated_at": "2026-01-01T12:00:00.000Z"
    }
  ],
  "page_info": {
    "start_cursor": "WyJjdXJzb3IiLDFd"
  }
}

Changes

    • info

      added the required property data/items/metadata to the response with the status

    • warning

      added the new dispute_alert enum value to the data/items/reason response property for the response status