Back to Help Hub
IntegrationsHow-To1 min readUpdated 2026-03-04

Referral Factory API — qualifying leads via API

Use the qualification endpoint to programmatically mark a lead as qualified from your own system when a conversion event occurs.

Browse topics and support
Navigation

Topics

Article

On this page

Support

Ask AI

Ask a product or setup question without leaving this page.

Need human help?

Still stuck?

If this article does not solve the problem, send the context to support or book time with a human.

We will keep the article or page context with your request so support can respond faster.
Read this page as a quick path: scan the headings, use the step blocks, and escalate if the expected result does not happen.
Use the qualification endpoint to programmatically mark a lead as qualified from your own system when a conversion event occurs.

Endpoint

Qualifying a lead

Unqualifying a lead

Set "qualified": false to revert a lead to Pending status — useful for handling refunds or cancellations.

Identifier options

You can identify the lead using:
  • email + campaign_id
  • id (Referral Factory internal user ID)
  • code (the referral code embedded in their link)

Best practices

  • Call this endpoint from your server-side payment processing code, immediately after a successful payment is confirmed
  • Build in idempotent behaviour: if your system retries on failure, ensure the same lead isn't qualified twice
  • Log API responses for debugging — a 200 response confirms the status change was applied
Related strategy reading

Go deeper with Learn

This help article explains the setup. These Learn guides explain the bigger strategy, planning, and real-world use of referral programs.

Article feedback

Did this answer your question?

Your vote helps support spot weak articles, fix missing steps, and decide when a person should step in.