I have been looking for a post request in many roblox api’s in this list (Collected list of APIs), but didnt find it, does anyone knows the api to request the pruchase of a catalog item?
You can prompt purchases using Roblox’s MarketplaceService.
local market = game:GetService("MarketplaceService")
market:PromptPurchase(plr, assetId)
Prompt Purchase - For items in the catalog or library
Prompt Gamepass - For gamepasses
Prompt Product Purchase - For developer products
not that, i mean buying items in the catalog
no, i mean like buying catalog items from the website itself, not in a game
What is your use case for this?
i was looking forward to be able to buy certain items in the website, with the use of roblox’s api, similar to /v1/trades/send, but in this case instead of sending a trade it would buy a specific item
There are 2 known APIs for this:
POST https://economy.roblox.com/v1/purchases/products/{productId}
Body:
{"expectedCurrency":0,"expectedPrice":0,"expectedSellerId":0}
POST https://economy.roblox.com/v2/user-products/{productId}/purchase
Body(?):
{"expectedPrice":0}
(replace values in body, & {productId}
in query for both of them, of course)
NOTE: Product IDs are not the same as Catalog IDs, you can get a catalog item’s Product ID with https://api.roblox.com/marketplace/productinfo?assetId={assetId}
ty, il test those tommorow