Create Deposit
Changed onReturns the deposit methods for an account or user, including crypto addresses, bank transfer instructions, and, for a business, a hosted deposit page. Bitcoin and Tron deposits are converted to USDT on Plasma in the destination's wallet. Business destinations require no authentication. Pass payment_method_id to also charge a business's saved payment method for amount in USD and add it to the business's balance. That requires authentication with the payment:charge scope. The charge has no fees or taxes and does not count as revenue.
Request
- Base URLhttps://api.whop.com/api/v1
- Auth
- none
- or HTTP bearer
- or HTTP 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
Amount to prefill on hosted deposit page. Crypto deposits require a $10 minimum. With payment_method_id, the amount in USD to charge, and required.
Bank account currency to set up for the destination. A USD account is always set up. Pass cad once to also set up a CAD account. After that, every request returns the details of all set-up currencies.
Account ID to fund, biz_ or user_. Any business resolves without authentication; a user account resolves only for that same authenticated user.
Custom metadata to attach to the payment the charge creates. Ignored unless payment_method_id is provided.
SWIFT/BIC of the bank the funds are sent from, 8 or 11 characters. Fills each bank currency's swift_bic with the intermediary bank to route the wire through.
A saved payment method of the business to charge for amount, prefixed payt_. Save one with Create setup intent and owner_id set to the account. Only for a biz_ destination, and requires authentication with the payment:charge scope. A declined charge fails the request with 400.
Example request
{
"amount": 50,
"currency": "usd",
"destination": "biz_xxxxxxxxxxxxxx",
"metadata": {
"attempt_id": "att_8f2k1"
},
"origin_bic": "DEUTDEFFXXX",
"payment_method_id": "payt_xxxxxxxxxxxxxx"
}Response
deposit created
Account ID of the destination owner.
Requested deposit amount.
URL of the hosted deposit page. Only present for business destinations.
Available deposit methods for destination.
Example response
{
"account_id": "biz_xxxxxxxxxxxxxx",
"amount": "50.00",
"hosted_url": "https://whop.com/deposit/biz_xxxxxxxxxxxxxx/",
"methods": {
"bank": {
"currencies": [
{
"account_number": "8825310472",
"currency": "USD",
"deposit_bank_address": "2115 Linwood Avenue, Fort Lee, New Jersey 07024",
"deposit_bank_name": "Cross River Bank",
"deposit_beneficiary_name": "Shine Time Auto Detailing",
"deposit_reference": "SHINE-1042",
"rails": [
"wire"
],
"routing_number": "021214891",
"swift_bic": "CHASUS33XXX"
}
]
},
"card": {
"metadata": {
"attempt_id": "att_8f2k1"
},
"payment_id": "pay_xxxxxxxxxxxxxx",
"payment_method_id": "payt_xxxxxxxxxxxxxx"
},
"crypto": [
{
"deposit_address": "soladdr",
"icon_url": "https://whop.com/_static/images/crypto/solana.svg",
"name": "Solana",
"supported_currencies": [
{
"icon_url": "https://whop.com/_static/images/crypto/pyusd.svg",
"name": "PYUSD"
}
]
}
]
},
"object": "deposit"
}Changes
- info
the security scope
payout:account:readwas added to the endpoint's security schemebearerAuth - info
the security scope
payment:chargewas removed from the endpoint's security schemebearerAuth
- info
- info
the security scope
payout:account:readwas added to the endpoint's security schemebearerAuth
1 more change in this revision
- info