Giftcards
An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
411486491630370816The maximum number of items to return in a single request.
Returns items after the specified ID. Used for forward pagination through results.
411486491630370816Returns items before the specified ID. Used for backward pagination through results.
411486491630370816Determines the sort order of returned items. When true, items are returned in ascending order. When false, items are returned in descending order.
A gift card code to filter by.
Should canceled gift cards be included in the response?
OK
Error response
GET /v1/stores/{storeId}/giftcards HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": "411486491630370816",
"store_id": "411486491630370816",
"enabled": true,
"code": "GIFT-2024-ABCD1234",
"note": "text",
"balance": 2500,
"starting_balance": 5000,
"usable_at": "2025-11-19T15:32:25.929Z",
"expires_at": "2025-11-19T15:32:25.929Z",
"created_at": "2025-11-19T15:32:25.929Z",
"created_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"updated_at": "2025-11-19T15:32:25.929Z",
"updated_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"canceled_at": "2025-11-19T15:32:25.929Z",
"canceled_by": {
"type": "anonymous",
"id": "411486491630370816"
}
}
]An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
411486491630370816OK
Error response
POST /v1/stores/{storeId}/giftcards HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 135
{
"enabled": true,
"code": "text",
"note": "text",
"balance": 1,
"usable_at": "2025-11-19T15:32:25.929Z",
"expires_at": "2025-11-19T15:32:25.929Z"
}{
"id": "411486491630370816",
"store_id": "411486491630370816",
"enabled": true,
"code": "GIFT-2024-ABCD1234",
"note": "text",
"balance": 2500,
"starting_balance": 5000,
"usable_at": "2025-11-19T15:32:25.929Z",
"expires_at": "2025-11-19T15:32:25.929Z",
"created_at": "2025-11-19T15:32:25.929Z",
"created_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"updated_at": "2025-11-19T15:32:25.929Z",
"updated_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"canceled_at": "2025-11-19T15:32:25.929Z",
"canceled_by": {
"type": "anonymous",
"id": "411486491630370816"
}
}An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
411486491630370816411486491630370816OK
Error response
GET /v1/stores/{storeId}/giftcards/{giftCardId} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"id": "411486491630370816",
"store_id": "411486491630370816",
"enabled": true,
"code": "GIFT-2024-ABCD1234",
"note": "text",
"balance": 2500,
"starting_balance": 5000,
"usable_at": "2025-11-19T15:32:25.929Z",
"expires_at": "2025-11-19T15:32:25.929Z",
"created_at": "2025-11-19T15:32:25.929Z",
"created_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"updated_at": "2025-11-19T15:32:25.929Z",
"updated_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"canceled_at": "2025-11-19T15:32:25.929Z",
"canceled_by": {
"type": "anonymous",
"id": "411486491630370816"
}
}An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
411486491630370816411486491630370816OK
Error response
DELETE /v1/stores/{storeId}/giftcards/{giftCardId} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"id": "411486491630370816",
"store_id": "411486491630370816",
"enabled": true,
"code": "GIFT-2024-ABCD1234",
"note": "text",
"balance": 2500,
"starting_balance": 5000,
"usable_at": "2025-11-19T15:32:25.929Z",
"expires_at": "2025-11-19T15:32:25.929Z",
"created_at": "2025-11-19T15:32:25.929Z",
"created_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"updated_at": "2025-11-19T15:32:25.929Z",
"updated_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"canceled_at": "2025-11-19T15:32:25.929Z",
"canceled_by": {
"type": "anonymous",
"id": "411486491630370816"
}
}An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
411486491630370816411486491630370816OK
Error response
PATCH /v1/stores/{storeId}/giftcards/{giftCardId} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 135
{
"enabled": true,
"code": "text",
"note": "text",
"balance": 1,
"usable_at": "2025-11-19T15:32:25.929Z",
"expires_at": "2025-11-19T15:32:25.929Z"
}{
"id": "411486491630370816",
"store_id": "411486491630370816",
"enabled": true,
"code": "GIFT-2024-ABCD1234",
"note": "text",
"balance": 2500,
"starting_balance": 5000,
"usable_at": "2025-11-19T15:32:25.929Z",
"expires_at": "2025-11-19T15:32:25.929Z",
"created_at": "2025-11-19T15:32:25.929Z",
"created_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"updated_at": "2025-11-19T15:32:25.929Z",
"updated_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"canceled_at": "2025-11-19T15:32:25.929Z",
"canceled_by": {
"type": "anonymous",
"id": "411486491630370816"
}
}Last updated
Was this helpful?
