Payouts

Create PayPal Link Session

Changed on

Starts a Log in with PayPal session so PayPal itself can confirm the account holder owns a verified PayPal account. Send the holder to authorize_url. After they log in, PayPal returns them to Whop, and Whop redirects the browser to your return_url. The redirect adds a paypal_link_token query parameter to pass to POST /payouts/methods. If the login fails or is canceled, return_url receives an error query parameter (paypal_login_canceled or paypal_login_failed) instead. The payout method saved this way pays the email on the PayPal account. Its holder name must match the name on the account's payout setup.

post/payouts/paypal_link_sessions

Request

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

Headers

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

Pins the request to a dated API version.

Idempotency-Key, string
Example:d9105228-4a08-46b1-8b91-42fed586d383

A unique key that makes this request safe to retry. See Idempotent requests.

Request body

object required
account_id, string

The account that will own the PayPal payout method, prefixed biz_. Provide this or user_id.

destination_currency, string

Currency the PayPal payout method will deliver payouts in.

return_url, string required

Where to send the holder once the PayPal login finishes. Must be an https URL whose host is a domain added to the account, or to its platform, with POST /domains and verification: {}; the domain doesn't need to finish verifying. Whop's own pages and https://localhost are also accepted; they're the only options for a user_id session. It receives paypal_link_token on success or error on failure.

supported_payout_method_id, string required

The PayPal supported payout method to connect (a podst_ identifier whose supports_paypal_login is true).

user_id, string

The user who will own the PayPal payout method, prefixed user_. Provide this or account_id.

Example request

{
  "account_id": "biz_xxxxxxxxxxxxxx",
  "destination_currency": "usd",
  "return_url": "https://example.com/settings/payouts",
  "supported_payout_method_id": "podst_xxxxxxxxxxxxxx"
}

Response

PayPal login started

object required
authorize_url, string required

The PayPal login page to send the account holder to.

expires_at, string date-time required

When the login session stops being accepted, as an ISO 8601 timestamp; start a new one after this.

Example response

{
  "authorize_url": "https://www.paypal.com/connect",
  "expires_at": "2026-01-01T12:00:00.000Z"
}

Changes