Partner Referral Requests

Create a partner referral request

Changed on

Creates a referral link, or sends an attribution request to an existing business for approval. Links require an enrolled partner who is not suspended. Attribution requests require an enrolled, verified partner. Recipients do not need to join the partner program.

post/partner_referral_requests

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

union required
object required
OR
object required
OR
object required
OR
object required
OR
object required
OR
object required

Create your own referral link with an optional custom code and redemption limit. Without configuration, returns your oldest saved link for the selected team membership, or your personal context when authorized_user_id is omitted, creating a random code when none exists.

Example request

{
  "account_id": "biz_xxxxxxxxxxxxxx"
}

Response

Existing request or referral link returned.

PartnerReferralRequest required
account, StorefrontAccount nullable required
authorized_user_id, string nullable required

The partner's team membership this referral was created for, prefixed ausr_. null when the referral is personal.

code, string nullable required

Unique referral code, when assigned.

created_at, string required

When the request was created, as an ISO 8601 timestamp.

expires_at, string nullable required

When a lead offer stops taking a response, as an ISO 8601 timestamp. null for other request types.

id, string required

Partner referral request ID, prefixed prfr_.

lead, PartnerReferralRequestLead nullable required
max_redemptions, integer nullable required

Maximum permitted redemptions, when limited.

member_id, string nullable required

The partner's member record this referral was created for, prefixed mber_, when their role on that business is held on their member record. null otherwise.

partner, UserSummary required

Public profile of the partner associated with this referral request.

referring_account, AccountSummary nullable required
request_type, 'manual' | 'ownership_transfer' | 'link' | 'lead' required

How the referral request was initiated.

rewards, PartnerReferralReward[] required
status, 'pending' | 'accepted' | 'denied' | 'cancelled' | 'null' nullable required

The approval state, or null for requests without an approval process. A lead offer that gets no answer before expires_at becomes cancelled.

status_reason, 'expired' | 'passed' | 'withdrawn' | 'null' nullable required

Why the request reached its status. expired means a lead offer got no answer before expires_at. passed means the partner turned down a lead offer. withdrawn means the partner cancelled their own request. null for any other status.

updated_at, string required

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

user, UserSummary nullable required

Example response

{
  "account": {
    "id": "biz_xxxxxxxxxxxxxx",
    "logo_url": "https://whop-assets-example.s3.amazonaws.com/uploads/image/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "route": "shine-time-auto-detailing",
    "title": "Shine Time Auto Detailing"
  },
  "created_at": "2026-01-01T12:00:00.000Z",
  "id": "prfr_xxxxxxxxxxxxxx",
  "lead": {
    "industry_type": {
      "business_type": {
        "id": "education",
        "name": "Education"
      },
      "id": "equity_research",
      "name": "Equity research"
    },
    "owner": {
      "badges": [
        {
          "type": "verified_partner"
        }
      ],
      "id": "user_xxxxxxxxxxxxxx",
      "name": "Dana Whitfield",
      "profile_picture": {
        "url": "https://ui-avatars.com/api/"
      },
      "username": "danawhitfield"
    }
  },
  "partner": {
    "badges": [
      {
        "type": "verified_partner"
      }
    ],
    "id": "user_xxxxxxxxxxxxxx",
    "name": "Dana Whitfield",
    "profile_picture": {
      "url": "https://ui-avatars.com/api/"
    },
    "username": "danawhitfield"
  },
  "referring_account": {
    "id": "biz_xxxxxxxxxxxxxx",
    "title": "Shine Time Auto Detailing"
  },
  "request_type": "manual",
  "rewards": [
    {
      "bot_qualification_type": "sales",
      "qualification_amount": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "recipient": "business",
      "reward_amount": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      }
    }
  ],
  "status": "cancelled",
  "status_reason": "withdrawn",
  "updated_at": "2026-01-01T12:00:00.000Z",
  "user": {
    "badges": [
      {
        "type": "verified_partner"
      }
    ],
    "id": "user_xxxxxxxxxxxxxx",
    "name": "Dana Whitfield",
    "profile_picture": {
      "url": "https://ui-avatars.com/api/"
    },
    "username": "danawhitfield"
  }
}

Changes

    • breaking

      added to the account response property oneOf list for the response status

    • breaking

      added to the account response property oneOf list for the response status

    • info

      removed from the account response property oneOf list for the response status

    1 more change in this revision