Skip to main content
GET
/
refunds
/
{id}
Retrieve refund
curl --request GET \
  --url https://api.whop.com/api/v1/refunds/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "rf_xxxxxxxxxxxxxxx",
  "amount": 6.9,
  "currency": "usd",
  "status": "pending",
  "created_at": "2023-12-01T05:00:00.401Z",
  "provider": "stripe",
  "provider_created_at": "2023-12-01T05:00:00.401Z",
  "reference_status": "available",
  "reference_type": "acquirer_reference_number",
  "reference_value": "<string>",
  "payment": {
    "id": "pay_xxxxxxxxxxxxxx",
    "total": 6.9,
    "subtotal": 6.9,
    "usd_total": 6.9,
    "currency": "usd",
    "created_at": "2023-12-01T05:00:00.401Z",
    "paid_at": "2023-12-01T05:00:00.401Z",
    "dispute_alerted_at": "2023-12-01T05:00:00.401Z",
    "payment_method_type": "acss_debit",
    "billing_reason": "subscription_create",
    "card_brand": "mastercard",
    "card_last4": "<string>",
    "user": {
      "id": "user_xxxxxxxxxxxxx",
      "name": "<string>",
      "username": "<string>",
      "email": "<string>"
    },
    "member": {
      "id": "<string>",
      "phone": "<string>"
    },
    "membership": {
      "id": "mem_xxxxxxxxxxxxxx",
      "status": "trialing"
    }
  }
}

Authorizations

Authorization
string
header
required

The app API key from an app from the /dashboard/developer page

Path Parameters

id
string
required

The ID of the refund

Example:

"rf_xxxxxxxxxxxxxxx"

Response

A successful response

An object representing a refund made on a payment.

id
string
required

The ID of the refund.

Example:

"rf_xxxxxxxxxxxxxxx"

amount
number
required

The amount of the refund.

Example:

6.9

currency
enum<string>
required

The currency of the refund.

Available options:
usd,
sgd,
inr,
aud,
brl,
cad,
dkk,
eur,
nok,
gbp,
sek,
chf,
hkd,
huf,
jpy,
mxn,
myr,
pln,
czk,
nzd,
aed,
eth,
ape,
cop,
ron,
thb,
bgn,
idr,
dop,
php,
try,
krw,
twd,
vnd,
pkr,
clp,
uyu,
ars,
zar,
dzd,
tnd,
mad,
kes,
kwd,
jod,
all,
xcd,
amd,
bsd,
bhd,
bob,
bam,
khr,
crc,
xof,
egp,
etb,
gmd,
ghs,
gtq,
gyd,
ils,
jmd,
mop,
mga,
mur,
mdl,
mnt,
nad,
ngn,
mkd,
omr,
pyg,
pen,
qar,
rwf,
sar,
rsd,
lkr,
tzs,
ttd,
uzs,
rub,
btc,
cny
status
enum<string>
required

The status of the refund.

Available options:
pending,
requires_action,
succeeded,
failed,
canceled
created_at
string<date-time>
required

The time the refund was created.

Example:

"2023-12-01T05:00:00.401Z"

provider
enum<string>
required

The provider of the refund.

Available options:
stripe,
coinbase,
paypal,
apple,
sezzle,
splitit,
platform_balance,
multi_psp
provider_created_at
string<date-time> | null
required

The time the refund was created by the provider.

Example:

"2023-12-01T05:00:00.401Z"

reference_status
enum<string> | null
required

The status of the refund reference provided by the payment processor. The status of the refund reference.

Available options:
available,
pending,
unavailable
reference_type
enum<string> | null
required

The type of the refund reference that was provided by the payment processor. The type of refund reference that was made available by the payment provider.

Available options:
acquirer_reference_number,
retrieval_reference_number,
system_trace_audit_number
reference_value
string | null
required

The value of the reference.

payment
object | null
required

The payment associated with the refund.