Debug: Referral Flow Test

Test the referral cookie flow without authentication. This simulates what happens when a user visits with a ?ref=code URL parameter.

Current Cookie State

Simulate Referral Visit

This simulates the exact flow that happens when a user visits with a referral link.

Simulated URL:https://gocarrental.is/(no params)

Individual API Calls

Full Flow (All Steps)

Full Flow Steps:
  1. Resolve: GET /public/referral/resolve/:code → get canonical code + coupon
  2. Cookie: Set goRentalsReferralCode + goRentalsReferralSource (client-side)
  3. Click: POST /public/referral/click/:tenant/:code → register the click

Test Booking Conversion

Create a test booking and conversion record. This simulates what happens when a customer completes a booking with a referral code.

600 EUR
Optional Fields

Create Conversion Only

Full Flow with Conversion

What this creates:
  • Booking record: Stores the rental details (dates, prices, customer info)
  • Conversion record: Tracks the affiliate commission (linked to booking)

Commission calculation: Total amount × affiliate's referral percentage

API Response Log

No API calls yet. Use the buttons above to test the endpoints.

Manual Cookie Editor

Directly set cookie values without calling the API. Useful for testing edge cases.

Tenant: gocarrental

API Base: https://api.gorentals.is/functions/v1