Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
flavobarth's avatar
flavobarth
Explorer
2 years ago

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.

3 Replies

Replies have been turned off for this discussion
  • 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. 

    • flavobarth's avatar
      flavobarth
      Explorer

      Hello, Rehes.

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

      • Rehes's avatar
        Rehes
        Protege

        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.