I attempted to call :GetProductInfo() on a UGC Limited and it displays Sales as 0. This works perfectly fine on normal items although interestingly enough… It displays how many are remaining. Sadly it does not display Available Quantity so I am still unable to figure this out manually.
How to replicate:
- Create a LocalScript
- Insert the Following Code and Test:
local MarketplaceService = game:GetService("MarketplaceService")
local ProductInfo = MarketplaceService:GetProductInfo(UGC_LIMITED_ID)
print(ProductInfo)
This might be difficult to replicate as I believe you need to be the Owner of the UGC Limited to gain access to this information
Expected behavior
When I use this on any other UGC Item I have uploaded, it returns the Amount of Sales.
I would expect the API to return this information aswell as perhaps the original Quantity Available.
I was able to make a temporary work around using AvatarEditorService but even that isn’t efficient as it only Displays the original Quantity Available.
local AvatarService = game:GetService("AvatarEditorService")
local Details = AvatarService:GetItemDetails(UGC_LIMITED_ID,Enum.AvatarItemType.Asset)
local TotalQuantity = Details["TotalQuantity"]
With this, I was able to take the Total Quantity and then subtract the Sales.