Referrals
Referral APIs are responsible for tracking and recording the referral action.
Referral
POST
/integrations/referral
A Gameball player can refer a new user to use the your system through a referral code.The API records the referral action in Gameball backend.
Headers
Name | Type | Description |
---|---|---|
APIKey | string | client API key |
Request Body
Name | Type | Description |
---|---|---|
playerCode | string | Referring player’s referral code |
playerUniqueId | string | The new (referred) player’s unique Id used by the integrator to uniquely identify this newly created player in Gameball |
playerAttributes | object | playerAttributes used to create\update the Player with unique ID in Gameball. Player object is described in Object Reference section. |
Examples
Example One: The example shown is a request sent to Gameball when a player with playerCode
“CODE11” successfully refers a new player with playerUniqueId
“ac2635be”.
Example Two: This example is a request sent to Gameball when player with playerCode
“CODE11” successfully refers a new player with playerUniqueId
“ac2636be”, while supplementing the request with the playerAttributes
object to create the new player with the included attributes.
Note: All attributes inside the playerAttributes
object are optional, if the values of any attributes shown below are unavailable, remove the attribute from the playerAttributes
object.
Last updated