curl --request GET \
--url https://api-sandbox.endl.io/giftcards/orders \
--header 'X-Api-Key-Id: <api-key>'import requests
url = "https://api-sandbox.endl.io/giftcards/orders"
headers = {"X-Api-Key-Id": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key-Id': '<api-key>'}};
fetch('https://api-sandbox.endl.io/giftcards/orders', 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/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key-Id: <api-key>"
],
]);
$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/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key-Id", "<api-key>")
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/orders")
.header("X-Api-Key-Id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.endl.io/giftcards/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key-Id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"orders": [
{
"order_id": "9f1c8a44-2b7e-4d31-9a6f-5c0e7b2d81a3",
"partner_order_ref": "ORD-10294",
"state": "FULFILLED",
"amount_minor": "100000",
"currency": "INR",
"created_at": "2026-09-21T09:20:00.000Z",
"items": [
{
"item_id": "2c81a0f4-9c33-4f02-b0b7-1d5e9f2a44c8",
"canonical_sku": "BIGBASKET--IN--INR",
"denomination_minor": "50000",
"currency": "INR",
"qty": 2,
"state": "FULFILLED",
"state_reason": null,
"voucher_count": 2,
"retrieved": false
}
]
}
]
}{
"code": "VALIDATION_ERROR",
"message": "items must be a non-empty array"
}{
"code": "AUTH_INVALID_KEY",
"message": "credential could not be verified"
}{
"code": "SCOPE_FORBIDDEN",
"message": "key lacks the required scope"
}{
"code": "RATE_LIMITED",
"message": "rate limit exceeded"
}{
"code": "INTERNAL_ERROR",
"message": "unexpected error"
}List orders
Your own orders, newest first. There is no way to request anyone else’s.
If POST /orders times out, query by your own reference to find out whether the order exists before creating anything. Combined with Idempotency-Key, that makes order creation recoverable from any failure.
The query string is not signed, so adding a filter never invalidates a correctly computed signature.
curl --request GET \
--url https://api-sandbox.endl.io/giftcards/orders \
--header 'X-Api-Key-Id: <api-key>'import requests
url = "https://api-sandbox.endl.io/giftcards/orders"
headers = {"X-Api-Key-Id": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key-Id': '<api-key>'}};
fetch('https://api-sandbox.endl.io/giftcards/orders', 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/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key-Id: <api-key>"
],
]);
$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/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key-Id", "<api-key>")
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/orders")
.header("X-Api-Key-Id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.endl.io/giftcards/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key-Id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"orders": [
{
"order_id": "9f1c8a44-2b7e-4d31-9a6f-5c0e7b2d81a3",
"partner_order_ref": "ORD-10294",
"state": "FULFILLED",
"amount_minor": "100000",
"currency": "INR",
"created_at": "2026-09-21T09:20:00.000Z",
"items": [
{
"item_id": "2c81a0f4-9c33-4f02-b0b7-1d5e9f2a44c8",
"canonical_sku": "BIGBASKET--IN--INR",
"denomination_minor": "50000",
"currency": "INR",
"qty": 2,
"state": "FULFILLED",
"state_reason": null,
"voucher_count": 2,
"retrieved": false
}
]
}
]
}{
"code": "VALIDATION_ERROR",
"message": "items must be a non-empty array"
}{
"code": "AUTH_INVALID_KEY",
"message": "credential could not be verified"
}{
"code": "SCOPE_FORBIDDEN",
"message": "key lacks the required scope"
}{
"code": "RATE_LIMITED",
"message": "rate limit exceeded"
}{
"code": "INTERNAL_ERROR",
"message": "unexpected error"
}Authorizations
Your key id, verbatim. Public — it identifies the credential. The secret is never transmitted.
Headers
Unix seconds. Optional, carried for symmetry — send the same value as the t= inside X-Signature, which is the one actually validated.
Query Parameters
Exact match on your own reference.
An unrecognised value is a 400, not an empty page.
PENDING, FULFILLED, FAILED, UNDER_REVIEW, REFUND_PENDING, REFUNDED 1–100. Clamped, not rejected.
An order_id from the previous page. There is no next_cursor field — continue from the last order's id, and a page shorter than limit is the end.
Response
A page of orders.