As a Roblox developer, it is currently too hard to determine at what point in time a player earned an accessory. The legacy inventory API currently includes a ‘CreatedTime’ parameter, which is misleadingly named as this is actually the time the user purchased the item. Sorting by this parameter bidirectionally would also be nice and would lead to near-feature parity with the legacy inventory listing API through OpenCloud!
If Roblox is able to address this issue, it would improve my development experience because I would be more easily able to transfer my project which currently uses the legacy inventory API over to use OpenCloud instead as I would be able to retrieve the time in-which the item was earned at which is important for sorting purposes as-well as for data analysis purposes in my workflow.
Hi there! Thanks for bringing this to our attention. Could you clarify which exact endpoint on the legacy inventory API returns this field (date which item is obtained not created)?
v2/users/{userId}/inventory/{assetTypeId} has a created field which is seemingly set to the time in-which the item was obtained, this is the field I am referring to.
We’re excited to announce that we’ve added a new field to the InventoryItem resource named addTime which represents when an item was added to an inventory. Some special cases are badges, which will return the time when the badge was awarded (same as when it gets added to your inventory) and private servers which will return the time it was created (also same as when it gets added to your inventory).
Game Passes are not supported yet - but we wanted to deliver support for other item types for you to use now. We hope this will better support your workflows and help reduce reliance on the legacy Inventory API. Please let us know if you have any questions, feedback, or use-cases that depend on GamePass addTime support. Thanks!