Overview
Customer management is the foundation of your Gameball integration. Before you can track events, process orders, or enable redemption, you need to create and manage customer profiles using the Gameball REST API.Unlike mobile SDKs that handle customer creation automatically, web integration requires explicit API calls to create and update customer profiles from your backend.
Why Customer Management Matters
A Gameball customer profile is essential for:- Tracking customer activity - Events and orders must be associated with a customer profile
- Awarding rewards - Points, campaigns, and rewards are tied to customer profiles
- Enabling redemption - Customers need profiles to redeem their earned points
- Personalization - Customer attributes enable targeted campaigns and experiences
Creating Customer Profiles
Use the Create/Update Customer API to create new customer profiles or update existing ones.Basic Customer Creation
When a customer signs up or logs in to your website, create their Gameball profile:Required Fields
At minimum, you must provide:customerId- A unique identifier that persists across the customer’s lifetimeemailORmobile- At least one contact method (required for channel merging)
Updating Customer Profiles
The same API endpoint is used for updates. If a customer with the samecustomerId already exists, the profile will be updated:
Customer Attributes
You can enrich customer profiles with additional attributes:Standard Attributes
displayName- Customer’s display namefirstName- First namelastName- Last nameemail- Email addressmobile- Mobile numbergender- Gender (M/F/Other)dateOfBirth- Date of birth (YYYY-MM-DD)joinDate- Customer join date (YYYY-MM-DD)
Custom Attributes
Use thecustom object to store business-specific data:
Implementation Best Practices
1
Create Profile on Signup
Create the customer profile immediately when a user signs up or logs in for the first time
2
Update Profile on Changes
Update the profile whenever customer information changes (email, preferences, etc.)
3
Use Server-Side Calls
Always make API calls from your backend server, never expose API keys in client-side code
4
Handle Errors Gracefully
Implement proper error handling for API failures and network issues
Channel Merging
If you use different customer IDs across channels (web, mobile app, POS), Gameball can merge profiles using email or mobile number. Include these fields in every customer creation/update request.For more information, see the Channel Merging Guide.
Related Resources
Next Steps
- Track Events - Start tracking customer events
- Track Orders - Process orders and award points