Market Management
Change Gamepass price
Changes price of gamepass
PATCH /api/roblox/gamepass/change-price
https://api.cookie-api.com
Authentication Learn how to get your API Key and use it in your requests!
URL Parameters | |
---|---|
workspace_id | <workspace id> |
{ "gamepass_id": "number", "price": "number"}
curl --location --request PATCH 'https://api.cookie-api.com/api/roblox/gamepass/change-price?workspace_id=12345' \--header 'Authorization: API_Key' \--header 'Content-Type: application/json' \--data '{ "gamepass_id": "1138251791", "price": "100"}'
import requests
url = 'https://api.cookie-api.com/api/roblox/gamepass/change-price?workspace_id=12345'headers = { 'Authorization': 'API_Key', 'Content-Type': 'application/json'}data = { "gamepass_id": "1138251791", "price": "100"}
response = requests.patch(url, headers=headers, json=data)print(response.json())
const fetch = require('node-fetch');
const url = 'https://api.cookie-api.com/api/roblox/gamepass/change-price?workspace_id=12345';const headers = { 'Authorization': 'API_Key', 'Content-Type': 'application/json'};const data = { "gamepass_id": "1138251791", "price": "100"};
fetch(url, { method: 'PATCH', headers, body: JSON.stringify(data) }) .then(res => res.json()) .then(data => console.log(data)) .catch(err => console.error(err));
package main
import ( "bytes" "encoding/json" "fmt" "log" "net/http")
func main() { url := "https://api.cookie-api.com/api/roblox/gamepass/change-price?workspace_id=12345"
data := map[string]interface{}{ "gamepass_id": "1138251791", "price": "100", } jsonData, err := json.Marshal(data) if err != nil { log.Fatal(err) }
req, err := http.NewRequest("PATCH", url, bytes.NewBuffer(jsonData)) if err != nil { log.Fatal(err) }
req.Header.Set("Authorization", "API_Key") req.Header.Set("Content-Type", "application/json")
client := &http.Client{} resp, err := client.Do(req) if err != nil { log.Fatal(err) } defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)}
const https = require('https');
const options = { hostname: 'api.cookie-api.com', path: '/api/roblox/gamepass/change-price?workspace_id=12345', method: 'PATCH', headers: { 'Authorization': 'API_Key', 'Content-Type': 'application/json' }};
const data = JSON.stringify({ "gamepass_id": "1138251791", "price": "100"});
const req = https.request(options, res => { let body = '';
res.on('data', chunk => { body += chunk; });
res.on('end', () => { console.log(JSON.parse(body)); });});
req.on('error', error => { console.error(error);});
req.write(data);req.end();
require 'net/http'require 'uri'require 'json'
uri = URI.parse('https://api.cookie-api.com/api/roblox/gamepass/change-price?workspace_id=12345')
request = Net::HTTP::Patch.new(uri)request['Authorization'] = 'API_Key'request['Content-Type'] = 'application/json'
data = { "gamepass_id" => "1138251791", "price" => "100"}request.body = data.to_json
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http| http.request(request)end
puts response.body
use reqwest::blocking::Client;use reqwest::header::HeaderMap;use serde_json::json;
fn main() { let url = "https://api.cookie-api.com/api/roblox/gamepass/change-price?workspace_id=12345"; let client = Client::new();
let mut headers = HeaderMap::new(); headers.insert("Authorization", "API_Key".parse().unwrap()); headers.insert("Content-Type", "application/json".parse().unwrap());
let data = json!({ "gamepass_id": "1138251791", "price": "100" });
let res = client .patch(url) .headers(headers) .json(&data) .send() .unwrap();
println!("{}", res.text().unwrap());}
Responses
{ "success": true}
Change group item price
Changes price of an asset in the group store
PATCH /api/roblox/assets/change-price
https://api.cookie-api.com/api/roblox/assets/change-price
Authentication Learn how to get your API Key and use it in your requests!
URL Parameters | |
---|---|
workspace_id | <workspace id> |
{ "asset_id": "number", "price": "number"}
curl --location --request PATCH 'https://api.cookie-api.com/api/roblox/assets/change-price?workspace_id=12345' \--header 'Authorization: API_Key' \--header 'Content-Type: application/json' \--data '{ "asset_id": "113180074739596", "price": "500"}'
import requests
url = 'https://api.cookie-api.com/api/roblox/assets/change-price?workspace_id=12345'headers = { 'Authorization': 'API_Key', 'Content-Type': 'application/json'}data = { "asset_id": "113180074739596", "price": "500"}
response = requests.patch(url, headers=headers, json=data)print(response.json())
const fetch = require('node-fetch');
const url = 'https://api.cookie-api.com/api/roblox/assets/change-price?workspace_id=12345';const headers = { 'Authorization': 'API_Key', 'Content-Type': 'application/json'};const data = { "asset_id": "113180074739596", "price": "500"};
fetch(url, { method: 'PATCH', headers, body: JSON.stringify(data) }) .then(res => res.json()) .then(data => console.log(data)) .catch(err => console.error(err));
package main
import ( "bytes" "encoding/json" "fmt" "log" "net/http")
func main() { url := "https://api.cookie-api.com/api/roblox/assets/change-price?workspace_id=12345"
data := map[string]interface{}{ "asset_id": "113180074739596", "price": "500", } jsonData, err := json.Marshal(data) if err != nil { log.Fatal(err) }
req, err := http.NewRequest("PATCH", url, bytes.NewBuffer(jsonData)) if err != nil { log.Fatal(err) }
req.Header.Set("Authorization", "API_Key") req.Header.Set("Content-Type", "application/json")
client := &http.Client{} resp, err := client.Do(req) if err != nil { log.Fatal(err) } defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)}
const https = require('https');
const options = { hostname: 'api.cookie-api.com', path: '/api/roblox/assets/change-price?workspace_id=12345', method: 'PATCH', headers: { 'Authorization': 'API_Key', 'Content-Type': 'application/json' }};
const data = JSON.stringify({ "asset_id": "113180074739596", "price": "500"});
const req = https.request(options, res => { let body = '';
res.on('data', chunk => { body += chunk; });
res.on('end', () => { console.log(JSON.parse(body)); });});
req.on('error', error => { console.error(error);});
req.write(data);req.end();
require 'net/http'require 'uri'require 'json'
uri = URI.parse('https://api.cookie-api.com/api/roblox/assets/change-price?workspace_id=12345')
request = Net::HTTP::Patch.new(uri)request['Authorization'] = 'API_Key'request['Content-Type'] = 'application/json'
data = { "asset_id" => "113180074739596", "price" => "500"}request.body = data.to_json
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http| http.request(request)end
puts response.body
use reqwest::blocking::Client;use reqwest::header::HeaderMap;use serde_json::json;
fn main() { let url = "https://api.cookie-api.com/api/roblox/assets/change-price?workspace_id=12345"; let client = Client::new();
let mut headers = HeaderMap::new(); headers.insert("Authorization", "API_Key".parse().unwrap()); headers.insert("Content-Type", "application/json".parse().unwrap());
let data = json!({ "asset_id": "113180074739596", "price": "500" });
let res = client .patch(url) .headers(headers) .json(&data) .send() .unwrap();
println!("{}", res.text().unwrap());}
Responses
{ "success": true}
List last group sales
Lists last group sales
GET /api/group/group-sales
https://api.cookie-api.com/api/group/group-sales
Authentication Learn how to get your API Key and use it in your requests!
URL Parameters | |
---|---|
workspace_id | <workspace id> |
curl --location 'https://api.cookie-api.com/api/group/group-sales?workspace_id=12345' \--header 'Authorization: API_Key'
import requests
url = 'https://api.cookie-api.com/api/group/group-sales?workspace_id=12345'headers = { 'Authorization': 'API_Key'}
response = requests.get(url, headers=headers)print(response.json())
const fetch = require('node-fetch');
const url = 'https://api.cookie-api.com/api/group/group-sales?workspace_id=12345';const headers = { 'Authorization': 'API_Key'};
fetch(url, { method: 'GET', headers }) .then(res => res.json()) .then(data => console.log(data)) .catch(err => console.error(err));
package main
import ( "fmt" "log" "net/http" "io/ioutil")
func main() { url := "https://api.cookie-api.com/api/group/group-sales?workspace_id=12345"
req, err := http.NewRequest("GET", url, nil) if err != nil { log.Fatal(err) }
req.Header.Add("Authorization", "API_Key")
client := &http.Client{} resp, err := client.Do(req) if err != nil { log.Fatal(err) } defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body) if err != nil { log.Fatal(err) }
fmt.Println(string(body))}
const https = require('https');
const options = { hostname: 'api.cookie-api.com', path: '/api/group/group-sales?workspace_id=12345', method: 'GET', headers: { 'Authorization': 'API_Key' }};
const req = https.request(options, res => { let body = '';
res.on('data', chunk => { body += chunk; });
res.on('end', () => { console.log(JSON.parse(body)); });});
req.on('error', error => { console.error(error);});
req.end();
require 'net/http'require 'uri'require 'json'
uri = URI.parse('https://api.cookie-api.com/api/group/group-sales?workspace_id=12345')
request = Net::HTTP::Get.new(uri)request['Authorization'] = 'API_Key'
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http| http.request(request)end
puts response.body
use reqwest::blocking::Client;use reqwest::header::HeaderMap;
fn main() { let url = "https://api.cookie-api.com/api/group/group-sales?workspace_id=12345"; let client = Client::new();
let mut headers = HeaderMap::new(); headers.insert("Authorization", "API_Key".parse().unwrap());
let res = client .get(url) .headers(headers) .send() .unwrap();
println!("{}", res.text().unwrap());}
Responses
{ "sales": { "data": [ { "agent": { "id": 198879495, "name": "RedLily", "type": "User" }, "created": "2025-04-02T17:36:26.831Z", "currency": { "amount": 350000, "type": "Robux" }, "details": { "id": 113180074739596, "name": "Cookie API T-shirt", "type": "Asset" }, "id": 0, "idHash": "********************", "isPending": true, "purchaseToken": "****************************************" } ], "nextPageCursor": null, "previousPageCursor": null }, "success": true}