Inventory.roblox.com does not take requests with game passes

Reproduction Steps

Visit the documentation page to easily test the following steps.

  • Set the user id to your user id
  • Set assetTypeId to 34 (34 being the id for gamepasses)
  • Click “Try it out!”

Expected Behavior

I expect a functional response in which I receive the user’s owned gamepasses.

Actual Behavior

Error 400 occurs, saying the gamepass type does not exist.

Reponse body:

{
  "errors": [
    {
      "code": 2,
      "message": "Invalid asset type Id.",
      "userFacingMessage": "Something went wrong"
    }
  ]
}

Reponse headers:

{
  "cache-control": "no-cache",
  "content-length": "101",
  "content-type": "application/json",
  "date": "Tue, 26 Jul 2022 23:54:23 GMT",
  "expires": "-1",
  "nel": "{\"report_to\":\"network-errors\",\"max_age\":604800,\"success_fraction\":0.001,\"failure_fraction\":1}",
  "p3p": "CP=\"CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE\"",
  "pragma": "no-cache",
  "report-to": "{\"group\":\"network-errors\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://ncs.roblox.com/upload\"}]}",
  "roblox-machine-id": "CHI2-WEB967",
  "strict-transport-security": "max-age=3600",
  "x-frame-options": "SAMEORIGIN"
}

Issue Area: Roblox Website
Page URL: Inventory Api
Impact: High
Frequency: Constantly

2 Likes

Update: Fixed the horribly bad grammar in the title.

I also would like to mention that when this functionality is broken, it makes it impossible to make any service that works with user gamepasses.

1 Like

This is likely intentional, the inventory api does not support badges or gamepasses as mentioned in the api listed above the one you mentioned.

1 Like

Gamepasses are part of the marketplace API, badges have their own API i believe