Get Gift Card List

Retrieves a list of gift cards with various filtering options.

🔒

Requires read_gift_cards access scope. More access scope

The Gift Card List API retrieves a list of gift cards with various filtering options.

This API is especially useful for:

  1. Listing all gift cards with detailed information.
  2. Filtering gift cards by creation date, update date, or initial value.
  3. Paginating and managing large sets of gift card data.

Request Parameters

Public Request Parameters

📘

Body Parameters

ParameterTypeRequiredDescriptionExample
cursorstringNoCursor for pagination"next_page_token"
page_sizeintegerNoNumber of records per page. Default is 1020
idsarray of stringsNoList of gift card IDs["gc_123", "gc_456"]
created_at_minstringNoFilter gift cards created at or after this date (ISO 8601 format)"2025-01-01T00:00:00Z"
created_at_maxstringNoFilter gift cards created at or before this date (ISO 8601 format)"2025-06-30T23:59:59Z"
updated_at_minstringNoFilter gift cards last updated at or after this date (ISO 8601 format)"2025-03-01T00:00:00Z"
updated_at_maxstringNoFilter gift cards last updated at or before this date (ISO 8601 format)"2025-05-31T23:59:59Z"
initial_value_minfloatNoFilter gift cards with initial value greater than this10.0
initial_value_maxfloatNoFilter gift cards with initial value less than this100.0
statusstringNoStatus of the gift card"active"
balance_statusstringNoKeyword for balance status"positive"
keywordstringNoSearch keyword"birthday"
sort_bystringNoField to sort by"created_at"
sort_directionstringNoSort direction"desc"

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"200"The status code of the response
messagestring"success"The message describing the response status
data.gift_cardsarray[{"id": "gc_123", "last_characters": "123", "balance": "50.00", ...}]List of gift card objects
data.gift_cards[].idstring"gc_123456"The unique identifier of the gift card
data.gift_cards[].last_charactersstring"456"The last characters of the gift card code
data.gift_cards[].balancestring"50.00"The current balance of the gift card
data.gift_cards[].initial_valuestring"100.00"The initial value of the gift card
data.gift_cards[].notestring"Birthday gift"Notes about the gift card
data.gift_cards[].expires_onstring"2025-12-31"Expiration date of the gift card
data.gift_cards[].disabled_atstring"2025-06-01"Date when the gift card was disabled (null if active)
data.gift_cards[].enabledbooleantrueWhether the gift card is enabled
data.gift_cards[].created_atstring"2025-01-15T10:30:00Z"Creation timestamp of the gift card
data.gift_cards[].updated_atstring"2025-03-20T14:45:00Z"Last update timestamp of the gift card
data.gift_cards[].statusstring"active"Current status of the gift card
data.gift_cards[].currencystring"USD"Currency of the gift card
data.gift_cards[].line_item_idstring"li_123"Associated line item ID (if any)
data.gift_cards[].order_idstring"order_456"Associated order ID (if any)
data.gift_cards[].user_idstring"user_789"User ID who created the gift card
data.gift_cards[].template_suffixstring"birthday"Template suffix used for the gift card
data.gift_cards[].customer_idstring"cust_101"Customer ID associated with the gift card
data.gift_cards[].codestring"GIFT123456"Full gift card code
data.cursorstring"next_page_token"Cursor for next page of results
data.has_morebooleantrueWhether there are more results available

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!