Access
Connect cross-platform accounts & identity management
Entitlements is a service that ensures player’s ownership of a specific item that they have purchased or earned. You can use Entitlements to grant or revoke items to or from players. There are two types of entitlements, as explained below:
Durable items are non-stackable and permanent. They do not disappear after use. Examples of durable items are, but not limited to: game skins, weapons, and unlockable characters.
Consumable items disappear after use. Consumables can be stackable or non-stackable; multiple stackable items will be under the same entitlement whereas multiple non-stackable items will each have their own entitlement, even if they’re identical items. Examples of consumable items are, but not limited to: ammo, potions, and food.
Entitlement management lets you see the entitlement history of all players or of a particular player.
Permissions are used to grant access to specific resources within our services. Make sure your account has the following permissions before you attempt to manage entitlement in the Admin Portal. For a full list of permissions that impact entitlement management, see the Platform/Commerce tab of the permissions reference
Usage | Resource | Action |
---|---|---|
Get User Entitlement | ADMIN:NAMESPACE:{namespace}:USER:{userId}:ENTITLEMENT | Read |
Get User Entitlement History | ADMIN:NAMESPACE:{namespace}:USER:{userId}:ENTITLEMENT | Read |
Grant User Entitlement | ADMIN:NAMESPACE:{namespace}:USER:{userId}:ENTITLEMENT | Create |
Disable User Entitlement | ADMIN:NAMESPACE:{namespace}:USER:{userId}:ENTITLEMENT | Update |
User Entitlement | ADMIN:NAMESPACE:{namespace}:USER:{userId}:ENTITLEMENT | Update |
Permissions work slightly differently depending on whether they are assigned to IAM Clients or Roles assigned to users. For more information, read the Authentication and Authorization documentation.
There are many different types of entitlement sources that can be applied to players. Here is the description of each credit credit source:
Entitlement Source | Description |
---|---|
Purchase | Entitlement from normal purchase via real currency or virtual currency |
Promotion | Entitlement grant from some promotion/activity |
Referral Bonus | Entitlement grant from inviting someone |
Redeem Code | Entitlement from code redemption |
Other | Another kind of entitlement source that not belong to above |
Please note that for now you can only choose between Purchase, Redeem_Code, and Other. If you choose any other source of entitlement except those three, you’ll only make a record that doesn’t affect anything.
The Admin Portal gives community managers and game admins an easy way to manage players’ entitlement.
You retrieve the list of the player's entitlement from the AccelByte Admin Portal. To do so, follow steps below:
In the AccelByte Admin Portal, click the E-Commerce section and click the Entitlements menu.
Specify the filter to search the player's entitlement by Full Entitlement ID, User ID, or Email. After that, input the keyword based on the chosen filter. Then, press the Enter button from your keyboard.
Results appeared. Here you can see the information about the player’s entitlement.
You can see the list of the player's entitlement history from the AccelByte Admin Portal. To do so, follow steps below:
In the AccelByte Admin Portal, click the E-Commerce section and click the Entitlements menu.
Specify the filter to search the player's entitlement by Full Entitlement ID, User ID, or Email. After that, input the keyword based on the chosen filter. Then, press the Enter button from your keyboard.
The player’s entitlement information appeared. Choose the record in which you want to view the entitlement history, then click View.
The Entitlement History pop up appears and displays the transaction history in descending order.
You can grant an entitlement to a player from the AccelByte Admin Portal. To do so, follow steps below:
In the AccelByte Admin Portal, click the E-Commerce section and click the Entitlements menu.
In the Entitlement page, click the Grant Item button.
The Grant Item form appears. Fill in the required fields:
When you’re finished, click the Grant button. The new entitlement will be granted to the player and will appear in the player’s account in the Player Portal.
In the AccelByte Admin Portal, click the E-Commerce section and click the Entitlements menu.
Specify the filter to search the player's entitlement by Full Entitlement ID, User ID, or Email. After that, input the keyword based on the chosen filter. Then, press the Enter button from your keyboard.
The player’s entitlement information appeared. Choose the record in which you want to disable.
Click the three-dot button of the desired entitlement and click Disable.
In the Admin Portal, the Status of the item will be changed to Inactive and the item will be removed from the player’s account in the Player Portal.
In the AccelByte Admin Portal, click the E-Commerce section and click the Entitlements menu.
Specify the filter to search the player's entitlement by Full Entitlement ID, User ID, or Email. After that, input the keyword based on the chosen filter. Then, press the Enter button from your keyboard.
The player’s entitlement information appeared. Choose the record in which you want to revoke.
Click the three-dot button of the desired entitlement and click Revoke.
In the Admin Portal, the Status of the item will be changed to Revoked and the item will be removed from the player’s account in the Player Portal.
An entitlement is granted automatically when a player places an order for an item. If this process is successful, the item will be granted to their account.
If your game or platform offers a subscription to your players, you can use the following code to check a player’s entitlements and subscription plan.
If you don’t offer subscriptions, you can use the following code to check a player’s entitlements.
To check the redeemed items, we can call getUserEntitlementById from the Entitlement API. The response includes itemSnapshot which contains detailed information regarding the redeemed item. When the entitlement is a result of a redeem code process, the entitlement source shown in the response should be REDEEM_CODE.
To synchronize Apple entitlement, use the following function.
To synchronize Google Play entitlement, use the following function.
To synchronize Twitch Drop entitlement, use the following function.