Retrieve gift card details

GET https://api.zenoti.com/v1/gift_cards/{gift_card_id}

Retrieves the details of a specific gift card including balance, transactions, and expiry.

Before you begin

Permission: Manage API Keys (under Administrator) — Required to access Zenoti APIs.

Endpoint

GET /v1/gift_cards/{gift_card_id}

Base URL: https://api.zenoti.com

Request

Headers

Header Required Description
Authorization Yes bearer {{access_token}}

Path parameters

Parameter Type Required Description
gift_card_id string (GUID) Yes Gift card identifier

Response

Success (200 OK)

{
  "id": "b3c4d5e6-f7a8-9012-cdef-345678901234",
  "code": "GC-2026-00456",
  "balance": 75.00,
  "original_value": 100.00,
  "expiry_date": "2027-03-07T00:00:00",
  "is_active": true,
  "transactions": [
    {
      "date": "2026-03-10T14:30:00",
      "amount": -25.00,
      "type": "Redemption",
      "center_name": "Manhattan Spa"
    }
  ],
  "error": null
}

Response fields

Field Type Description
id string (GUID) Gift card identifier
code string Gift card code
balance decimal Current balance
original_value decimal Original face value
expiry_date datetime Expiry date
transactions array Transaction history

Example

curl --request GET \
  --url 'https://api.zenoti.com/v1/gift_cards/b3c4d5e6-f7a8-9012-cdef-345678901234' \
  --header 'Authorization: bearer {{access_token}}'
const response = await fetch('https://api.zenoti.com/v1/gift_cards/{gift_card_id}', {
  method: 'GET',
  headers: {
    'Authorization': 'bearer {{access_token}}'
  },
});
const data = await response.json();
import requests

response = requests.get(
    'https://api.zenoti.com/v1/gift_cards/{gift_card_id}',
    headers={
        'Authorization': 'bearer {{access_token}}',
    },
)
data = response.json()
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "bearer {{access_token}}");
var response = await client.GetAsync(
    "https://api.zenoti.com/v1/gift_cards/{gift_card_id}");
var data = await response.Content.ReadAsStringAsync();
require 'net/http'
require 'json'

uri = URI('https://api.zenoti.com/v1/gift_cards/{gift_card_id}')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Authorization'] = 'bearer {{access_token}}'
response = http.request(request)
data = JSON.parse(response.body)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.zenoti.com/v1/gift_cards/{gift_card_id}');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: bearer {{access_token}}'
]);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);

Error codes

Status Description
401 Unauthorized — invalid or expired access token
404 Resource not found
429 Too many requests — rate limit exceeded (60/min)