Skip to main content
Inspiring
April 6, 2023

API to determine if user has purchased game

Is there an API method to determine if the Meta user has already purchased the game? We do have API calls to determine if the user has purchased Addons (IAP), but I have not found any method regarding the game itself.

We are changing our game price to free, and want users that have previously purchased it to have special benefits ingame.

This topic has been closed for replies.

3 replies

Inspiring
April 6, 2023

Hi,

It depends on the specific platform or service that you are using. For example, if your game is distributed through Steam, you can use the Steamworks Web API to check if a user owns a specific game. You can also use the Steamworks SDK to check if a user has purchased DLC or in-game items. Similarly, if your game is distributed through Apple's App Store or Google Play Store, you can use the StoreKit or Google Play Billing APIs to check if a user has previously made purchases. I hope it helps. 

Inspiring
April 6, 2023

Hello, Rehes.

Our game is actually distributed through the Meta Oculus Store itself. Specifically through App Lab.

Inspiring
April 20, 2023

If your game is distributed through the Oculus Store, you can use the Oculus Platform SDK to check if a user has purchased your game. You can use the entitlement API to determine if a user has already purchased your game or if they are eligible to purchase it. The entitlement API provides an endpoint called /v1/me/entitlements that returns a list of the user's entitlements, including any games or apps they have purchased. This is how we work at Triotech Systems.