Get a gift card product
curl --request GET \
--url https://api.recadd.com/v1/products/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.recadd.com/v1/products/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.recadd.com/v1/products/{id}', 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://api.recadd.com/v1/products/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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://api.recadd.com/v1/products/{id}"
req, _ := http.NewRequest("GET", 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.get("https://api.recadd.com/v1/products/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recadd.com/v1/products/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "prd_01k8nkrkaye008000000000001",
"brand_key": "steam",
"brand_display_name": "Steam",
"country": "US",
"variant": "",
"face_value": 10,
"face_unit": "USD",
"display_name": "Steam 10 USD US",
"image_url": null,
"available": true,
"price": {
"amount_minor": 1030,
"currency": "USD",
"display": "$10.30"
},
"indicative_ngn": {
"amount_minor": 1545001,
"currency": "NGN",
"display": "₦15,450.01"
}
}Catalog
Get a gift card product
Returns one active catalog product, including an unavailable or unpriced product. Both key modes read the same catalog. An inactive, unknown or malformed product id returns 404 not_found. The USD business price is for the API key holder’s tier. Indicative NGN uses the current sell rate when available. Responses carry Cache-Control: private, no-store.
GET
/
v1
/
products
/
{id}
Get a gift card product
curl --request GET \
--url https://api.recadd.com/v1/products/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.recadd.com/v1/products/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.recadd.com/v1/products/{id}', 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://api.recadd.com/v1/products/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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://api.recadd.com/v1/products/{id}"
req, _ := http.NewRequest("GET", 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.get("https://api.recadd.com/v1/products/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recadd.com/v1/products/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "prd_01k8nkrkaye008000000000001",
"brand_key": "steam",
"brand_display_name": "Steam",
"country": "US",
"variant": "",
"face_value": 10,
"face_unit": "USD",
"display_name": "Steam 10 USD US",
"image_url": null,
"available": true,
"price": {
"amount_minor": 1030,
"currency": "USD",
"display": "$10.30"
},
"indicative_ngn": {
"amount_minor": 1545001,
"currency": "NGN",
"display": "₦15,450.01"
}
}Authorizations
Path Parameters
Response
The active product and its price for the key holder.