Skip to content

Referrals

7 operations in the WP Waterfall API.

The company's Affiliate Program application

get/affiliate/applicationPermalink to The company's Affiliate Program application

  • Scope: billing:read
  • Permission: billing.read

The state of the company's application (none, applied, approved, declined, or ended), what it sent, the terms version it accepted, the reason of a decline, and the program numbers: 10% of the profit, the 30 day hold, and the $50 minimum for a bank transfer. agency_partner is true for a company in the Agency Partner Program, which earns the same commission and does not apply.

Responses

StatusBodyDescription
200AffiliateApplicationThe application
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
state requiredstringNone, applied (waiting for staff), approved, declined, or ended. One of: none, applied, approved, declined, ended.
agency_partner requiredbooleanTrue when the company is in the Agency Partner Program: it earns the same commission already and does not apply.
website_url requiredstring or nullThe website or channel the application named. Null before an application.
promotion requiredstring or nullHow the applicant said it will promote WP Waterfall. Null before an application.
applied_at requiredstring or null (date-time)When the latest application was sent.
decided_at requiredstring or null (date-time)When staff approved or declined it. Null while it waits.
decline_reason requiredstring or nullWhy staff declined it. Null unless declined.
terms_version requiredstring or nullThe terms version accepted. Null before an application.
terms_accepted_at requiredstring or null (date-time)When the applicant accepted the terms. Null before an application.
current_terms_version requiredstringThe version an application accepts today.
commission_percent requirednumberThe commission share, in percent of the profit: 10.
hold_days requiredintegerDays an entry waits for refunds before it is earned. Range: 0 to any.
min_transfer_cents requiredintegerThe least a bank transfer pays, in cents. Range: 0 to any.

Apply to the Affiliate Program

post/affiliate/applicationPermalink to Apply to the Affiliate Program

  • Permission: billing.write
  • Dashboard session only, no API key

Signed-in session only. Sends the website or channel, how you will promote WP Waterfall, and your acceptance of the Affiliate Program Terms (terms_version must be the current one). Staff review it and you hear back by email. A company may apply when it never did, or after a decline or an end; a second application while one waits is refused with 409.

Parameters

NameInTypeDescription
Idempotency-Key requiredheaderstringSend a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422.

Request body application/json, required, AffiliateApplyRequest

Fields

NameTypeDescription
website_url requiredstring (uri)The website or channel where you will share your link.
promotion requiredstringHow you will promote WP Waterfall, in a few sentences.
accept_terms requiredbooleanTrue: you accept the Affiliate Program Terms.
terms_version requiredstringThe terms version the page showed. It must be the current one.

Responses

StatusBodyDescription
201AffiliateApplicationThe application
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

201 response fields

NameTypeDescription
state requiredstringNone, applied (waiting for staff), approved, declined, or ended. One of: none, applied, approved, declined, ended.
agency_partner requiredbooleanTrue when the company is in the Agency Partner Program: it earns the same commission already and does not apply.
website_url requiredstring or nullThe website or channel the application named. Null before an application.
promotion requiredstring or nullHow the applicant said it will promote WP Waterfall. Null before an application.
applied_at requiredstring or null (date-time)When the latest application was sent.
decided_at requiredstring or null (date-time)When staff approved or declined it. Null while it waits.
decline_reason requiredstring or nullWhy staff declined it. Null unless declined.
terms_version requiredstring or nullThe terms version accepted. Null before an application.
terms_accepted_at requiredstring or null (date-time)When the applicant accepted the terms. Null before an application.
current_terms_version requiredstringThe version an application accepts today.
commission_percent requirednumberThe commission share, in percent of the profit: 10.
hold_days requiredintegerDays an entry waits for refunds before it is earned. Range: 0 to any.
min_transfer_cents requiredintegerThe least a bank transfer pays, in cents. Range: 0 to any.

The partner's commission by month

get/partner/commissionsPermalink to The partner's commission by month

  • Scope: billing:read
  • Permission: billing.read

For a company in the Agency Partner Program: 10% of the profit WP Waterfall makes on each paid invoice of a customer who signed up through the company's link. One row per month and state (pending for the 30 day refund window, earned, paid, or void), with a count of the customers who paid, and the totals. It names no customer and no invoice. A company that is not a partner reads partner false and empty totals.

Responses

StatusBodyDescription
200PartnerCommissionsThe commission by month
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
partner requiredbooleanFalse when the company is not a partner or an approved affiliate. The rest is then empty.
kind requiredstring or nullAgency or affiliate. Null when not a partner. One of: agency, affiliate.
customers requiredintegerCustomers who signed up through the partner's link after it joined. Range: 0 to any.
currency requiredstringThe currency of every amount here, as a lower case ISO code: usd.
commission_percent requirednumberThe commission share, in percent: 10.
hold_days requiredintegerDays an entry waits for refunds before it is earned. Range: 0 to any.
payout requiredstring or nullHow earned commission is paid: account credit, or by hand as arranged. Null when not a partner. One of: credit, manual.
totals requiredobjectThe commission so far, by state, in cents.
totals.pending_cents requiredintegerStill inside the hold that waits for refunds. Range: 0 to any.
totals.earned_cents requiredintegerPast the hold and not paid yet. Range: 0 to any.
totals.paid_cents requiredintegerPaid, as account credit or by hand. Range: 0 to any.
months requiredarray of objectOne row per month and state, the newest month first.
months[].month requiredstringThe month the referred customers paid, as 2026-11.
months[].customers requiredintegerHow many referred customers paid in that month, for this state. Range: 0 to any.
months[].commission_cents requiredintegerThe commission of that month and state, in cents. Range: 0 to any.
months[].status requiredstringPending (inside the hold), earned, paid, or void (the invoice was refunded). One of: pending, earned, paid, void.

The company's referrals

get/referralsPermalink to The company's referrals

  • Scope: billing:read
  • Permission: billing.read

One row per friend who signed up, newest first, with a status: signed_up, converted, rewarded, expired, or rejected. The friend's address is masked, as a***@gmail.com. A rejected referral names the reason.

Parameters

NameInTypeDescription
statusquerystringOne of: signed_up, converted, rewarded, expired, rejected.
limitqueryintegerHow many rows to return in one page: at most 200, and 50 when left out. Default: 50. Range: 1 to 200.
cursorquerystringThe next_cursor of the page before. Leave it out for the first page.

Responses

StatusBodyDescription
200ReferralListReferrals
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
data requiredarray of objectThe rows of this page.
data[].id requiredstring (uuid)
data[].status requiredstringOne of: signed_up, converted, rewarded, expired, rejected.
data[].who requiredstring or nullFor example a***@gmail.com.
data[].date requiredstring (date-time)When the friend signed up.
data[].reward_cents requiredintegerRange: 0 to any.
data[].currency requiredstring
data[].reward_eligible_at requiredstring or null (date-time)When a converted referral's reward is paid.
data[].rejected_reason requiredstring or nullOne of: same_email, same_card, same_network, same_account, too_many_signups, refunded, chargeback, annual_cap, voided_by_staff, partner_customer.
next_cursor requiredstring or nullSend it as cursor to get the next page. Null on the last page.

Claim a referral code saved in the browser

post/referrals/claimPermalink to Claim a referral code saved in the browser

  • Permission: company.read
  • Dashboard session only, no API key

For a new account whose referral cookie did not arrive. The dashboard sends the code it saved when the visitor first followed a link. It counts only for a company the caller owns, made in the last 7 days and after the visit, with no referral yet. The same fraud rules apply. Answers claimed false, with 200, for anything else, so it never says why.

Parameters

NameInTypeDescription
Idempotency-Key requiredheaderstringSend a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422.

Request body application/json, required, ReferralClaimRequest

Fields

NameTypeDescription
code requiredstring
visited_atstring (date-time)When the visit happened, from the browser. Never later than now.

Responses

StatusBodyDescription
200ReferralClaimResultWhether the referral was recorded
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
claimed requiredboolean

Referral sign-ups, paying customers, and credit

get/referrals/statsPermalink to Referral sign-ups, paying customers, and credit

  • Scope: billing:read
  • Permission: billing.read

Sign-ups are new accounts the link brought in. Paying customers are referrals that made a first payment. Credit earned is already in the account balance; credit pending waits for the hold to end.

Responses

StatusBodyDescription
200ReferralStatsThe numbers
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
signups requiredintegerRange: 0 to any.
paying_customers requiredintegerRange: 0 to any.
rewarded requiredintegerRange: 0 to any.
currency requiredstring
credit_earned_cents requiredintegerCredit already added to the account balance. Range: 0 to any.
credit_pending_cents requiredintegerCredit waiting for the hold to end. Range: 0 to any.