Track referral-driven jobs by capturing the ambassador’s discount/referral code and posting completed jobs or paid invoices to Refer Labs.
Add a consistent place for staff to record the ambassador code (custom field, job note, or invoice reference).
The value you post must match the ambassador discount code exactly for attribution.
Use Zapier/Make (or your backend) to trigger on job completion or invoice paid, then POST to Refer Labs.
Conversion endpoint
POST https://referlabs.com.au/api/discount-codes/redeem
Headers:
Content-Type: application/json
x-pepf-discount-secret: <YOUR_SECRET>
Body:
{
"discountCode": "CODE_FROM_JOB_FIELD",
"orderReference": "SERVICEM8-JOB-ID",
"amount": "199.00",
"metadata": { "platform": "servicem8" }
}If you trigger on invoice paid, set amount to the paid total.