Retrieve details of a gift card
curl --request POST \
--url https://v3.minestorecms.com/api/cart/getGift \
--header 'Content-Type: application/json' \
--data '
{
"gift": "Summer2024"
}
'import requests
url = "https://v3.minestorecms.com/api/cart/getGift"
payload = { "gift": "Summer2024" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({gift: 'Summer2024'})
};
fetch('https://v3.minestorecms.com/api/cart/getGift', 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/getGift",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'gift' => 'Summer2024'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://v3.minestorecms.com/api/cart/getGift"
payload := strings.NewReader("{\n \"gift\": \"Summer2024\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
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/getGift")
.header("Content-Type", "application/json")
.body("{\n \"gift\": \"Summer2024\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v3.minestorecms.com/api/cart/getGift")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"gift\": \"Summer2024\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"start_balance": 100,
"end_balance": 75,
"currency": "USD"
}User Endpoints
Gift Card Balance
Retrieves details of a gift card based on the gift card name provided. The response includes the starting balance, ending balance, and currency. Returns an error message if the gift card is not found or has an empty balance.
POST
/
cart
/
getGift
Retrieve details of a gift card
curl --request POST \
--url https://v3.minestorecms.com/api/cart/getGift \
--header 'Content-Type: application/json' \
--data '
{
"gift": "Summer2024"
}
'import requests
url = "https://v3.minestorecms.com/api/cart/getGift"
payload = { "gift": "Summer2024" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({gift: 'Summer2024'})
};
fetch('https://v3.minestorecms.com/api/cart/getGift', 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/getGift",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'gift' => 'Summer2024'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://v3.minestorecms.com/api/cart/getGift"
payload := strings.NewReader("{\n \"gift\": \"Summer2024\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
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/getGift")
.header("Content-Type", "application/json")
.body("{\n \"gift\": \"Summer2024\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v3.minestorecms.com/api/cart/getGift")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"gift\": \"Summer2024\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"start_balance": 100,
"end_balance": 75,
"currency": "USD"
}Body
application/json
The name of the gift card to retrieve.
Example:
"Summer2024"
Response
Successfully retrieved gift card details or error message
⌘I

