Embed the referral page on Wix and report conversions from Wix Automations/Velo (or Zapier/Make) for reliable attribution.
Add an HTML iframe embed to a Wix page (recommended: a dedicated “Referrals” page).
Iframe embed
<iframe src="https://referlabs.com.au/r/AMBCODE?embed=1" title="Referral reward" style="width:100%;min-height:720px;border:none;border-radius:24px;overflow:hidden;" ></iframe>
Replace AMBCODE with a real ambassador code to test.
When an order is paid/confirmed, post the discount code redemption to Refer Labs from a trusted server context.
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_USED_AT_CHECKOUT",
"orderReference": "ORDER-12345",
"amount": "199.00",
"metadata": { "platform": "wix" }
}Run diagnostics via /status.