Create a partner referral request
Changed onCreates 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.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP 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
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.
The partner's team membership this referral was created for, prefixed ausr_. null when the referral is personal.
Unique referral code, when assigned.
When the request was created, as an ISO 8601 timestamp.
When a lead offer stops taking a response, as an ISO 8601 timestamp. null for other request types.
Partner referral request ID, prefixed prfr_.
Maximum permitted redemptions, when limited.
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.
Public profile of the partner associated with this referral request.
How the referral request was initiated.
The approval state, or null for requests without an approval process. A lead offer that gets no answer before expires_at becomes cancelled.
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.
When the request last changed, as an ISO 8601 timestamp.
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
accountresponse propertyoneOflist for the response status - breaking
added to the
accountresponse propertyoneOflist for the response status - info
removed from the
accountresponse propertyoneOflist for the response status
1 more change in this revision
- breaking