Test the referral cookie flow without authentication. This simulates what happens when a user visits with a ?ref=code URL parameter.
This simulates the exact flow that happens when a user visits with a referral link.
https://gocarrental.is/(no params)GET /public/referral/resolve/:code → get canonical code + coupongoRentalsReferralCode + goRentalsReferralSource (client-side)POST /public/referral/click/:tenant/:code → register the clickCreate a test booking and conversion record. This simulates what happens when a customer completes a booking with a referral code.
Commission calculation: Total amount × affiliate's referral percentage
Directly set cookie values without calling the API. Useful for testing edge cases.
Tenant: goleiga
API Base: https://sgxsthwxqlrquboylmws.supabase.co/functions/v1