Get an order
curl --request GET \
--url https://api-sandbox.endl.io/giftcards/orders/{order_id} \
--header 'X-Api-Key-Id: <api-key>'import requests
url = "https://api-sandbox.endl.io/giftcards/orders/{order_id}"
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/{order_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-sandbox.endl.io/giftcards/orders/{order_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 => [
"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/{order_id}"
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/{order_id}")
.header("X-Api-Key-Id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.endl.io/giftcards/orders/{order_id}")
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{
"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": "AUTH_INVALID_KEY",
"message": "credential could not be verified"
}{
"code": "SCOPE_FORBIDDEN",
"message": "key lacks the required scope"
}{
"code": "ORDER_NOT_FOUND",
"message": "order not found"
}{
"code": "RATE_LIMITED",
"message": "rate limit exceeded"
}{
"code": "INTERNAL_ERROR",
"message": "unexpected error"
}Get an order
The endpoint you poll. Returns the order and every item on it.
Compare voucher_count against qty on every poll that reaches a terminal state. An item can reach FULFILLED having produced fewer vouchers than ordered; the shortfall carries a refund obligation.
GET
/
orders
/
{order_id}
Get an order
curl --request GET \
--url https://api-sandbox.endl.io/giftcards/orders/{order_id} \
--header 'X-Api-Key-Id: <api-key>'import requests
url = "https://api-sandbox.endl.io/giftcards/orders/{order_id}"
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/{order_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-sandbox.endl.io/giftcards/orders/{order_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 => [
"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/{order_id}"
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/{order_id}")
.header("X-Api-Key-Id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.endl.io/giftcards/orders/{order_id}")
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{
"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": "AUTH_INVALID_KEY",
"message": "credential could not be verified"
}{
"code": "SCOPE_FORBIDDEN",
"message": "key lacks the required scope"
}{
"code": "ORDER_NOT_FOUND",
"message": "order not found"
}{
"code": "RATE_LIMITED",
"message": "rate limit exceeded"
}{
"code": "INTERNAL_ERROR",
"message": "unexpected error"
}Authorizations
apiKeyIdsignature
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.
Path Parameters
The order id returned by create.
Response
The order.