Object Reference
Each object in the API may be given an identifier and will typically be addressable through a URL.
Event Object
The Event object is how you record any actions your users perform, along with any metadata that describe the action. For further elaboration on events check Understand your players' events.
Metadata are extra pieces of information you can tie to events you track. They can be none or anything that will be useful while analyzing the events later. We recommend sending properties whenever possible because they give you a more complete picture of what your users are doing. Every Metadata can be a number, a string or an array of values.
Event and Metadata example:
Event Name | Key | Value |
buy | product_id | a123456 |
price | 30 | |
product_category | fashion | |
product_tags | men & new_collection |
The following example shows a collection of events
PlayerAttribute Object
The PlayerAttribute object is an object containing all of the attributes of the player.
Parameters Description
Parameter | Description | Examples | Type |
| Player's display name | Fred | String |
| Email address of the player | example@example.com | String |
| Gender: M or F | M | String |
| Mobile number with country code | 0018320000000 | Number |
| Player's birth date | YYYY-MM-DD | Date |
| Date at which the player joined | YYYY-MM-DD | Date |
| Player's community group | string | |
| Customized data for players added by the client | Object |
Level Object
The Level Object is found in the Player Info response body. It contains info about the player's current level.
Parameters Description
Parameter | Description | Type |
| Level Name
| String |
| Level Description | String |
| The required score to reach the level. | Number |
| Level Order | Number |
| Logo icon of the level. | String |
| Level Benefits Object | Object |
The following example shows how Level Object is recieved in the response body.
Points Object
The Points Object is found in the Player Info response body. It contains info about the player's points.
Parameters Description
Parameter | Description | Type |
| Player Points
| Number |
| The actual value equivalent to player points. | Number |
| Store Currency | String |
| The naming of the rewarding points that appears to the player. | String |
The following example shows how Points Object is received in the response body.
Score Object
The Score Object is found in the Player Info response body. It contains info about the player's score.
Parameters Description
Parameter | Description | Type |
| Player Score
| Number |
| The naming of the score points that appears to the player. | String |
The following example shows how Score Object is received in the response body.
PointsTransaction Object
The PointsTransaction Object is used in the Send Action to allow multiple transaction actions to be done in the same request, the actions that are made depend on the parameters that are sent.
The following example shows how to send a reward action using the PointsTransaction Object
Parameters Description
Parameter | Description | Required | Type |
| Monetary value that the player will be rewarded for based on the Purchase Reward program configurations. (Amount must be positive). | No | Number |
| Hold reference ID received after calling Hold Points API. | No | String |
| Unique transaction ID which identifies the underlying transaction in your system, e.g. order number, invoice number. It will be used for reversing any reward or redemption transaction on Gameball. | Yes | String |
| Time of transaction in your system in UTC, e.g. order datetime, invoice datetime. Note: transactionTime is automatically handled when using server-side SDKs. | Yes | String |
| Hashed body with SHA1 algorithm. As described in Hashing Transaction Message section. Note: hash is automatically handled when using server-side SDKs. | Yes | String |
| Merchant object as described in Object reference section | No | Object |
Merchant Object
Holds information of merchant and its branch
Parameters Description
Parameter | Description | Required | Type |
| Merchant unique id or code | Yes | String |
| Merchant name | No | String |
| Optional branch information | No | String |
| Branch unique id or code | Yes | String |
| Branch name | No | String |
Last updated