""" Buying this asset went like this: asset_id: 2493587489 headers: - csrf-token - x-bound-auth* (optional) POST https://apis.roblox.com/marketplace-sales/v1/item/8387139d-2fdf-4534-849c-93e7e84f319f/purchase-item { "collectibleItemId": "8387139d-2fdf-4534-849c-93e7e84f319f", "expectedCurrency": 1, "expectedPrice": 0, "expectedPurchaserId": "1337", "expectedPurchaserType": "User", "expectedSellerId": 1, "expectedSellerType": "User", "idempotencyKey": "896b20d0-a738-45af-91b0-d9eb4e0765ae", "collectibleProductId": "89bfd74b-cdab-4031-9aa8-ab2c69cc68c7" } """ import uuid import requests from methods.base import Purchaser p = Purchaser(roblosecurity="") r = p.request( url="https://apis.roblox.com/marketplace-sales/v1/item/08889039-8663-4fad-8338-8da0ca335df9/purchase-item", method=requests.post, json={ "collectibleItemId": "08889039-8663-4fad-8338-8da0ca335df9", "expectedCurrency": 1, "expectedPrice": 0, "expectedPurchaserId": "1337", "expectedPurchaserType": "User", "expectedSellerId": 1, "expectedSellerType": "User", "idempotencyKey": "896b20d0-a738-45af-91b0-d9eb4e07a5ae", "collectibleProductId": "b0b9b194-8d64-41f2-b7c6-5b6a8c4830ff" } ) r = p.request( url="https://apis.roblox.com/marketplace-sales/v1/item/08889039-8663-4fad-8338-8da0ca335df9/purchase-item", headers = {**r.headers, **{ "Accept": "application/json", "Cache-Control": "no-cache", "Roblox-Place-Id": "124180448122765", "Roblox-Universe-Id": "7296012067", "Roblox-Game-Id": "f6b50e0e-45d2-4d38-a4b5-3ad0e0561230", "PlayerCount": "30", "Requester": "Client", }}, method=requests.post, json={ "collectibleItemId": "08889039-8663-4fad-8338-8da0ca335df9", "expectedCurrency": 1, "expectedPrice": 0, "expectedPurchaserId": "1337", "expectedPurchaserType": "User", "expectedSellerId": 1, "expectedSellerType": "User", "idempotencyKey": "896b20d0-a738-45af-91b0-d9eb4e07a5ae", "collectibleProductId": "b0b9b194-8d64-41f2-b7c6-5b6a8c4830ff", "purchaseAuthToken": str(uuid.uuid4()) #"saleLocationType": "ExperiencesDevApiOnly", #"saleLocationId": 7296012067 } ) print(r.text)