Refunds

Returns one refund.

get/refunds/{id}

Request

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

Path parameters

id, string required

The refund to retrieve, prefixed rf_.

Headers

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

Pins the request to a dated API version.

Response

refund retrieved

Refund required
account_id, string nullable required

The account that issued the refund, prefixed biz_.

amount, Money nullable required
created_at, string required

When the refund was requested, as an ISO 8601 timestamp.

failure_message, string nullable required

A merchant-facing explanation of why the refund failed, in the request's language. Null unless the refund failed or was canceled.

failure_reason, 'bank_declined' | 'expired_or_canceled_card' | 'lost_or_stolen_card' | 'insufficient_funds' | 'charge_disputed' | 'not_refundable' | 'merchant_request' | 'unknown' | 'null' nullable required

Why the refund failed, normalized across providers. Null unless the refund failed or was canceled.

id, string required

Refund ID, prefixed rf_.

metadata, object nullable required

Your own key-value data attached when the refund was requested.

original_amount, Money required

The refunded amount in the currency the processor moved.

payment_id, string required

The payment this refund reverses, prefixed pay_.

provider, string required

The payment provider that processed the refund, such as paypal or coinbase.

provider_created_at, string nullable required

When the provider created the refund, as an ISO 8601 timestamp.

reason, 'duplicate' | 'fraudulent' | 'requested_by_customer' | 'expired_uncaptured_charge' | 'dispute_alert' | 'null' nullable required

Why the refund was issued, when recorded.

reference_status, 'available' | 'pending' | 'unavailable' | 'null' nullable required

Whether a banking-network tracking reference is available for this refund.

reference_type, 'acquirer_reference_number' | 'retrieval_reference_number' | 'system_trace_audit_number' | 'null' nullable required

The kind of tracking reference, such as an acquirer reference number.

reference_value, string nullable required

The tracking reference the buyer's bank can trace the refund by.

status, 'pending' | 'requires_action' | 'succeeded' | 'failed' | 'canceled' required

Where the refund stands with the processor: pending, requires_action, succeeded, failed, or canceled.

updated_at, string required

When the refund last changed, as an ISO 8601 timestamp.

visa_rdr, boolean required

True when the card network initiated the refund through Rapid Dispute Resolution.

Example response

{
  "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"
}

Changes