Help with purchasing items

Recently I’ve been attempting to purchase Roblox items off the catalog with python but I’m being returned a JSON saying that the purchase has failed and my parameters are wrong? My cookie and XCRSF are fine, just thinking what I passed in the Data is incorrect.

Here is what I’m passing:

Also here are some example values:

ResellersReturnedData["price"] = 1000
ResellersReturnedData["seller"]["id"] = 9999999
PurchaseData = {"expectedCurrency": 1, "expectedPrice": ResellersReturnedData["price"], "expectedSellerId": ResellersReturnedData["seller"]["id"], "userAssetId": ResellersReturnedData["userAssetId"]}
PurchaseRequest = requests.post(PurchaseV1URL, headers={'x-csrf-token': Token}, data=PurchaseData, cookies=Cookie)

Json returned:

{'cache-control': 'no-cache', 'pragma': 'no-cache', 'content-type': 'application/json; charset=utf-8', 'content-encoding': 'gzip', 'expires': '-1', 'vary': 'Accept-Encoding', 'x-frame-options': 'SAMEORIGIN', 'roblox-machine-id': 'Notshowing', 'set-cookie': 'Notshowing; domain=.roblox.com; expires=Mon, 05-Oct-2048 06:08:50 GMT; path=/', 'p3p': 'Notshowing"', 'date': 'Thu, 20 May 2021 06:08:50 GMT', 'content-length': '162'}
{'purchased': False, 'reason': 'InvalidArguments', 'productId': 6803405665, 'statusCode': 500, 'title': 'Invalid Parameter', 'errorMsg': 'Invalid arguments.', 'showDivId': 'TransactionFailureView'}

Maybe this post can help you:

If not try to look at all API’s listed here
https://api.roblox.com/docs?useConsolidatedPage=true