List products
curl --request GET \
--url https://api-sandbox.endl.io/giftcards/catalog/productsimport requests
url = "https://api-sandbox.endl.io/giftcards/catalog/products"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-sandbox.endl.io/giftcards/catalog/products', 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-sandbox.endl.io/giftcards/catalog/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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-sandbox.endl.io/giftcards/catalog/products"
req, _ := http.NewRequest("GET", url, nil)
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-sandbox.endl.io/giftcards/catalog/products")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.endl.io/giftcards/catalog/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"products": [
{
"canonical_sku": "BIGBASKET--IN--INR",
"brand": "BigBasket",
"country": "IN",
"currency": "INR",
"name": "BigBasket Gift Card",
"fulfilment_hint": "SYNC",
"min_minor": "10000",
"max_minor": "1000000",
"value_mode": "FIXED",
"denominations_minor": [
"10000",
"50000",
"100000"
]
},
{
"canonical_sku": "FLIPKART--IN--INR",
"brand": "Flipkart",
"country": "IN",
"currency": "INR",
"name": "Flipkart Gift Card",
"fulfilment_hint": null,
"min_minor": "10000",
"max_minor": "5000000",
"value_mode": "RANGE",
"denominations_minor": [
"50000",
"100000"
]
}
],
"next_cursor": "FLIPKART--IN--INR"
}{
"code": "RATE_LIMITED",
"message": "rate limit exceeded"
}{
"code": "INTERNAL_ERROR",
"message": "unexpected error"
}List products
The products currently orderable. No authentication — this is the open endpoint.
A product appears only while it is active and at least one supply route can serve it. One that is absent cannot be ordered; one that is present may still fail to source, because availability is evaluated per order.
Rate limited to 120/min per source IP, shared with every caller behind that IP.
GET
/
catalog
/
products
List products
curl --request GET \
--url https://api-sandbox.endl.io/giftcards/catalog/productsimport requests
url = "https://api-sandbox.endl.io/giftcards/catalog/products"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-sandbox.endl.io/giftcards/catalog/products', 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-sandbox.endl.io/giftcards/catalog/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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-sandbox.endl.io/giftcards/catalog/products"
req, _ := http.NewRequest("GET", url, nil)
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-sandbox.endl.io/giftcards/catalog/products")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.endl.io/giftcards/catalog/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"products": [
{
"canonical_sku": "BIGBASKET--IN--INR",
"brand": "BigBasket",
"country": "IN",
"currency": "INR",
"name": "BigBasket Gift Card",
"fulfilment_hint": "SYNC",
"min_minor": "10000",
"max_minor": "1000000",
"value_mode": "FIXED",
"denominations_minor": [
"10000",
"50000",
"100000"
]
},
{
"canonical_sku": "FLIPKART--IN--INR",
"brand": "Flipkart",
"country": "IN",
"currency": "INR",
"name": "Flipkart Gift Card",
"fulfilment_hint": null,
"min_minor": "10000",
"max_minor": "5000000",
"value_mode": "RANGE",
"denominations_minor": [
"50000",
"100000"
]
}
],
"next_cursor": "FLIPKART--IN--INR"
}{
"code": "RATE_LIMITED",
"message": "rate limit exceeded"
}{
"code": "INTERNAL_ERROR",
"message": "unexpected error"
}Reading value_mode
value_mode | What denominations_minor means | What you may order |
|---|---|---|
FIXED | The complete set of orderable amounts. | Any element of the array, and nothing else. |
RANGE | A list of suggestions, possibly empty. | Amounts between min_minor and max_minor — but see below. |
On
RANGE products, not every amount in the interval is orderable. Amounts
may be accepted only in steps. An amount that cannot be served is rejected at
order time with DENOMINATION_NOT_SUPPORTED. If you need certainty, order the
published denominations.fulfilment_hint is not a guarantee. SYNC means this product is usually
fulfilled within seconds. It is an observation, and it can be wrong for any
individual order. Never promise a customer instant delivery on the strength of
it — wait for FULFILLED.Query Parameters
ISO 3166-1 alpha-2, case-insensitive. Exact match.
ISO 4217, case-insensitive. Exact match.
Case-insensitive substring match.
1–500. Clamped, not rejected — a larger value silently becomes 500, a non-numeric one becomes the default.
A canonical_sku from the previous page. next_cursor is null on the final page.
Response
A page of products.