How would I wrote server code that does an HttpService request to see if a gamepass has Regional Pricing enabled. Are there any proxys that have been set up with this?
I’m developing a donation game so this would need to be known ASAP!
I know that you can do this on a web browser https://apis.roblox.com/game-passes/v1/game-passes/{assetId}/details
and that it will return something like this:
{ -- JSON Data
"gamePassId": 2296901,
"name": "Very Important Player [VIP]",
"description": "Stand out from the crowd with this pass!\r\n+ Unique chat color so players know who you are!\r\n+ Additional spawn choice on death, unique to VIP!\r\n+ Bonus Contract Re-Rolls!\r\n+ 1 tier-two safe every day!\r\n+ $1,000 daily cash!\r\n+ Instantly unlock Level 4 Police and Criminal bases!\r\n+ 20% more Cash whenever you earn cash, except safe rewards!\r\n+ Chrome Paint garage option!\r\n+ 100 Rocket Fuel per day!\r\n+ 10 total Garage save slots!",
"isForSale": true,
"price": 800,
"iconAssetId": 11461147598,
"placeId": 606849621,
"marketPlaceFeesPercentage": 0.3,
"gamePassSalesData": {
"totalSales": 0,
"salesPast7Days": 0
},
"createdTimestamp": "2017-06-16T01:16:33.93Z",
"updatedTimestamp": "2022-11-04T01:54:30.153Z",
"priceInformation": {
"defaultPriceInRobux": 800,
"isInActivePriceOptimizationExperiment": false,
"enabledFeatures": []
}
}
"isInActivePriceOptimizationExperiment": false,
"enabledFeatures": []
^^ This is around where I think the important part is.
This errors if you try to do it in studio because it says you don’t have access to ROBLOX resources.
I haven’t seen any of this on the DevForum and I’m wondering!