Skip to main content
Clerk → PartnerStackIntegration guide

Connecting Clerk to PartnerStack

Clerk handles both authentication and organisation membership, which matters for B2B products where the paying entity is a company and the signing-up entity is a person. PartnerStack commissions partners on recurring subscription revenue rather than on a single order, which makes it the one destination here where a conversion you send creates a payment obligation that repeats every month. The join between them succeeds or fails on one thing: whether the PartnerStack referral key reaches the Clerk user and organisation before the conversion happens, because PartnerStack can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

PartnerStack on Clerk: the organization is the customer key

Send PartnerStack the Clerk organization ID as the customer key, since recurring commission follows the organization's subscription. Store the referral key on the user at signup and copy it to the organization's private metadata on creation. Check PartnerStack's billing integrations, and make sure downgrades and cancellations flow through so commissions stop.

PartnerStack is the most natural partner tool for a B2B SaaS on Clerk, because both assume the customer is a company paying recurring revenue. The customer key you send PartnerStack should be the Clerk organization ID, not the user ID: recurring commission follows the subscription, and the subscription belongs to the organization.

The referral key has to reach the organization. A partner's link lands a person, who signs up as a Clerk user and then creates the organization; store the referral key on the user at sign-up and copy it to the organization's private metadata when they create it. If another partner later refers someone who joins the same organization by invitation, keep the original key and send nothing new, because PartnerStack cannot dedupe a member you report as a separate customer.

Check whether PartnerStack's billing integrations cover your billing system, since that is often how recurring revenue reaches it; if so, the Clerk side's only job is making sure the billing customer carries the organization ID and the referral key. Seat expansions raise recurring revenue and therefore commission, which is usually intended, but downgrades and cancellations must flow through as well, or partners keep earning on seats an organization has already removed.

Clerk → PartnerStack · what breaks

Why this join usually fails — Clerk → PartnerStack

  1. 01

    The PartnerStack referral key never reaches Clerk

    Several people from one company sign up separately, each carrying a different acquisition source.

  2. 02

    Counting seats instead of customers

    Five colleagues signing up from one company is one paying customer and five conversions if attribution sits on the user. Cost per acquisition then reads as a fifth of reality.

  3. 03

    A commission that recurs on revenue that stopped

    The mirror of the usual problem. If cancellations are not reported back, partners keep earning on subscriptions that churned months ago. Every conversion pipeline needs reversals; this one needs them because real money leaves the building otherwise.

  4. 04

    Nothing reconciles afterwards

    PartnerStack shows attributed customers and accruing commission per partner. Reconcile the commissionable revenue against your billing system's active subscriptions, not against its historical sales.

Clerk → PartnerStack · the fix

What working looks like — Clerk → PartnerStack

  • The PartnerStack referral key on every account

  • Conversions arriving in PartnerStack

    The customer is attributed to a partner, and commission accrues against the recognized revenue on the schedule you configured.

  • Reconciled against the source

Clerk → PartnerStack · architecture

How Clerk and PartnerStack actually connect

  1. 1

    Clerk holds the truth

    In B2B SaaS the subscription belongs to an organisation and several users belong to it. Attributing revenue per user counts one customer several times.

  2. 2

    PartnerStack needs a click to match

    PartnerStack needs the referral key, the customer identifier and the subscription value. Recurring commission also needs the ongoing revenue reported, not just the first payment.

  3. 3

    The identifier is the bridge

    The PartnerStack referral key, captured at the visit and carried into the Clerk user and organisation.

  4. 4

    The event source decides reliability

    Send paid conversions per organisation, deduplicated across its users.

  5. 5

    Deduplication at the destination

    Deduplication is on your customer identifier. Reporting the same subscription twice creates two commissionable relationships against one paying customer, and the error compounds monthly rather than once.

Clerk → PartnerStack · normal or broken

Working vs. broken, side by side — Clerk → PartnerStack

Normal, not a fault

  • The PartnerStack referral key present on the account

  • Sent from your billing system, keyed on the organisation

  • Deduplicated correctly

    Deduplication is on your customer identifier. Reporting the same subscription twice creates two commissionable relationships against one paying customer, and the error compounds monthly rather than once.

  • Reconciles with the source

Actually broken

  • The PartnerStack referral key missing on most records

    Several people from one company sign up separately, each carrying a different acquisition source.

  • Sent from the browser

    Five colleagues signing up from one company is one paying customer and five conversions if attribution sits on the user. Cost per acquisition then reads as a fifth of reality.

  • Counted twice, or not at all

    The mirror of the usual problem. If cancellations are not reported back, partners keep earning on subscriptions that churned months ago. Every conversion pipeline needs reversals; this one needs them because real money leaves the building otherwise.

  • Nobody has reconciled it

Clerk → PartnerStack · diagnose

Diagnostic order — Clerk → PartnerStack

  1. 01

    Count accounts carrying the PartnerStack referral key

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare user signups against paying organisations

    The ratio is the size of the overcount, and in B2B products it is rarely close to one.

  4. 04

    Check whether churn events reach PartnerStack at all

    In most implementations the new-subscription path was built and the cancellation path was not, because only one of them is exciting.

  5. 05

    Read the match rate, not the success message

    PartnerStack shows attributed customers and accruing commission per partner. Reconcile the commissionable revenue against your billing system's active subscriptions, not against its historical sales.

Clerk → PartnerStack · prove

How it gets proven — Clerk → PartnerStack

Source of truth

Your billing system, joined to the Clerk organisation rather than the user.

  • The PartnerStack referral key confirmed present on a live account.
  • Commissionable recurring revenue reconciled against active subscriptions in billing, with cancellations proven to reverse.
  • Paid conversions reconciled per organisation against imported conversions, deduplicated across users.

Clerk → PartnerStack · free audit

What we check in the free audit

  • Count accounts carrying the PartnerStack referral key
  • Follow one real conversion end to end
  • Compare user signups against paying organisations
  • Check whether churn events reach PartnerStack at all
  • Read the match rate, not the success message

Checked against

Your billing system, joined to the Clerk organisation rather than the user.

Get my free conversion tracking audit

Free30 minutesNo obligation

Clerk → PartnerStack · when not to buy

When you don't need this — Clerk → PartnerStack

  • Measure identifier coverage yourself first — pull your last hundred accounts and count how many carry the PartnerStack referral key.
  • Consumer products where one user is one customer do not have this distinction.
  • If you run no partner or affiliate programme, there is nothing to send here. If you run one on one-off sales rather than subscriptions, the recurring-commission complexity does not apply to you.

Clerk → PartnerStack · what we deliver

What gets built — Clerk → PartnerStack

  • Identifier capture into Clerk

    Store the identifier on the user and attribute at the organisation, using the first user's source with the others recorded as supporting.

  • Event source: your billing system, keyed on the organisation

    Send paid conversions per organisation, deduplicated across its users.

  • Dispatch to PartnerStack

    Server-side reporting from your billing system, with the referral key, customer identifier and the recurring revenue as it is recognized.

  • Reversals where they exist

    Cancellations reverse against the organisation.

Written guarantee

95%+ tracking accuracy

Measured against Your billing system, joined to the Clerk organisation rather than the user.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Clerk → PartnerStack questions, answered

The organization ID, because the subscription and its recurring revenue belong to the organization.

Free · 30 min

Get Clerk and PartnerStack joined properly

Free30 minutesNo obligation