List all gift cards of a center

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

Retrieves all gift card configurations available for sale at a specific center.

Before you begin

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

Endpoint

GET /v1/centers/{center_id}/gift_cards

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

Request

Headers

Header Required Description
Authorization Yes bearer {{access_token}}

Path parameters

Parameter Type Required Description
center_id string (GUID) Yes Center identifier

Response

Success (200 OK)

{
  "gift_cards": [
    {
      "id": "00000000-0000-0000-0000-5f999d97a0a0",
      "name": "$50 Gift Card",
      "value": 50.00,
      "is_active": true
    }
  ],
  "error": null
}

Response fields

Field Type Description
gift_cards array Available gift card configurations
gift_cards[].id string (GUID) Gift card template identifier
gift_cards[].value decimal Gift card face value

Example

curl --request GET \
  --url 'https://api.zenoti.com/v1/centers/a3614939-16c0-4a7b-bc33-a69b106d855c/gift_cards' \
  --header 'Authorization: bearer {{access_token}}'
const response = await fetch('https://api.zenoti.com/v1/centers/{center_id}/gift_cards', {
  method: 'GET',
  headers: {
    'Authorization': 'bearer {{access_token}}'
  },
});
const data = await response.json();
import requests

response = requests.get(
    'https://api.zenoti.com/v1/centers/{center_id}/gift_cards',
    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/centers/{center_id}/gift_cards");
var data = await response.Content.ReadAsStringAsync();
require 'net/http'
require 'json'

uri = URI('https://api.zenoti.com/v1/centers/{center_id}/gift_cards')
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/centers/{center_id}/gift_cards');
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)