Skip to main content
GET
/
withdrawals
/
{id}
JavaScript
import Whop from '@whop/sdk';

const client = new Whop({
  apiKey: 'My API Key',
});

const withdrawal = await client.withdrawals.retrieve('wdrl_xxxxxxxxxxxxx');

console.log(withdrawal.id);
{
  "id": "wdrl_xxxxxxxxxxxxx",
  "status": "requested",
  "amount": 6.9,
  "currency": "usd",
  "fee_amount": 6.9,
  "fee_type": "exclusive",
  "withdrawal_type": "regular",
  "speed": "standard",
  "created_at": "2023-12-01T05:00:00.401Z",
  "payout_token": {
    "id": "potk_xxxxxxxxxxxxx",
    "status": "created",
    "nickname": "<string>",
    "destination_currency_code": "<string>",
    "created_at": "2023-12-01T05:00:00.401Z"
  },
  "latest_payout": {
    "id": "pout_xxxxxxxxxxxxx",
    "status": "scheduled",
    "payer_name": "<string>",
    "error_code": "account_closed",
    "error_message": "<string>",
    "estimated_availability": "2023-12-01T05:00:00.401Z",
    "trace_code": "<string>",
    "created_at": "2023-12-01T05:00:00.401Z"
  }
}

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 Withdrawal

Example:

"wdrl_xxxxxxxxxxxxx"

Response

A successful response

A withdrawal request.

id
string
required

Internal ID of the withdrawal request.

Example:

"wdrl_xxxxxxxxxxxxx"

status
enum<string>
required

Status of the withdrawal.

Available options:
requested,
awaiting_payment,
in_transit,
completed,
failed,
canceled,
denied
amount
number
required

How much money was attempted to be withdrawn, in a float type.

Example:

6.9

currency
enum<string>
required

The currency of the withdrawal request.

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
fee_amount
number
required

The fee amount that was charged for the withdrawal. This is in the same currency as the withdrawal amount.

Example:

6.9

fee_type
enum<string> | null
required

The type of fee that was charged for the withdrawal. The different fee types for a withdrawal.

Available options:
exclusive,
inclusive
withdrawal_type
enum<string>
required

The type of withdrawal.

Available options:
regular,
clawback
speed
enum<string>
required

The speed of the withdrawal.

Available options:
standard,
instant
created_at
string<date-time>
required

When the withdrawal request was created.

Example:

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

payout_token
object | null
required

The payout token used for the withdrawal, if applicable.

latest_payout
object | null
required

The latest payout associated with this withdrawal, if any.