Create Customer
Changed onCreate or update a customer profile in Gameball using a unique customerId. Serving as a consistent identity, this customerId allows you to track a customer's entire journey.
Request
- Base URLhttps://api.gameball.co
- AuthAPI key in header apikey
Request body
Unique identifier for the customer that you can reference across the customer's whole lifetime. Could be a database ID, random string, email, or anything that uniquely identifies the customer.
Customer's email address. Required if your account uses email-based channel merging.
Customer's mobile number. Required if your account uses mobile-based channel merging.
Push notification token for the customer's device (an FCM token, or an HMS Push Kit token for Huawei), used to deliver mobile push campaigns. Send it with pushServiceProvider. Each new token is added to the customer's registered devices, and tokens registered earlier are kept.
Push service that issued deviceToken: Firebase or Huawei, spelled exactly as shown. Send it whenever you send deviceToken. When it is omitted, the token is treated as a Firebase token, so Huawei tokens registered without it never receive push notifications. In the mobile SDKs this field is called pushProvider.
Operating system of the device, for example iOS or Android.
Additional customer-specific attributes. Includes attributes such as the customer's name, contact details, and purchase history.
The referral code of an existing customer who is referring the customer being created. This is required in the create customer request to process the referral.
A flag indicating if the individual interacting with your system is a guest (not signed up). Set this to true for guest users; otherwise, they are treated as registered customers by default.
Response
Customer created or updated successfully
The customer's unique ID within the Gameball system. This ID is used to store the customer in our database and is different from the customerId used in the dashboard.
Changes
- info
added the new optional request property
pushServiceProvider
- info
- info
added the new optional request property
customerAttributes/mobileCountryCode
- info