Retrieve promoted items available in the cart
curl --request POST \
--url https://v3.minestorecms.com/api/cart/getPromoted \
--header 'Authorization: Bearer <token>'import requests
url = "https://v3.minestorecms.com/api/cart/getPromoted"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://v3.minestorecms.com/api/cart/getPromoted', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://v3.minestorecms.com/api/cart/getPromoted",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://v3.minestorecms.com/api/cart/getPromoted"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://v3.minestorecms.com/api/cart/getPromoted")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://v3.minestorecms.com/api/cart/getPromoted")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": 123,
"name": "<string>",
"image": "<string>",
"original_price": 123,
"price": 123,
"is_subs": true,
"quantityGlobalLimit": 123,
"quantityGlobalCurrentLimit": 123,
"quantityUserLimit": 123,
"quantityUserCurrentLimit": 123,
"is_unavailable": true,
"is_virtual_currency_only": true,
"virtual_price": 123
}
]Cart Endpoints
Promoted Packages
Fetches a list of promoted items available in the cart along with their details such as price, availability, and quantity limits.
POST
/
cart
/
getPromoted
Retrieve promoted items available in the cart
curl --request POST \
--url https://v3.minestorecms.com/api/cart/getPromoted \
--header 'Authorization: Bearer <token>'import requests
url = "https://v3.minestorecms.com/api/cart/getPromoted"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://v3.minestorecms.com/api/cart/getPromoted', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://v3.minestorecms.com/api/cart/getPromoted",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://v3.minestorecms.com/api/cart/getPromoted"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://v3.minestorecms.com/api/cart/getPromoted")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://v3.minestorecms.com/api/cart/getPromoted")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": 123,
"name": "<string>",
"image": "<string>",
"original_price": 123,
"price": 123,
"is_subs": true,
"quantityGlobalLimit": 123,
"quantityGlobalCurrentLimit": 123,
"quantityUserLimit": 123,
"quantityUserCurrentLimit": 123,
"is_unavailable": true,
"is_virtual_currency_only": true,
"virtual_price": 123
}
]Authorizations
Response
200 - application/json
Successfully retrieved the promoted items.

