The Get-or-Create Flow
You don’t always have to create customers explicitly. The Track Orders and Track Events APIs auto-create a profile if the
customerId doesn’t exist yet. The explicit get-or-create flow below is recommended when you want to show a balance or trigger onboarding campaigns before the order is placed.Step 1: Look Up the Customer
Check if the customer exists by retrieving their balance:Step 2: Create the Customer (if new)
Behind the scenes, Gameball creates the loyalty profile, triggers any configured onboarding campaigns (such as a welcome bonus), and prepares the profile for earning, tiering, and redemption.
Tips & Gotchas
- Capture at least one contact field (mobile or email) in your POS UI.
- Call this as soon as you’ve collected the identifier, before checkout.
- Keep the
customerIdconsistent with every other channel (see Choosing Your Customer ID).