Get Saved Gift Cards
Retrieves all saved gift cards for a specific user, including card details, preferred status, active status, and design.
The API includes designId in every gift card object in the returned list. Cards saved with a design return the design value, while cards saved without a design return null.
Use the optional isActive parameter to filter the returned cards by their active/inactive status in the customer's wallet. Omitting isActive defaults to true, returning only active cards (this maintains backward compatibility with existing integrations). There is no single value that returns both active and inactive cards together — call the endpoint once with isActive: true and once with isActive: false to retrieve both sets.
Notes:
isActivefiltering is independent ofuserId.userIddetermines whose wallet is queried, andisActiveindependently narrows the results to that user's active or inactive saved cards.isActiveis a wallet-level filter only; it does not change the state of the underlying gift card. It only indicates whether the saved card is considered active for this user's wallet.- Active/inactive state is tracked per saved card, per customer wallet (a card shared with another user via
sharedByUserIdcan have a differentisActivestate in each wallet). - If the user has saved gift cards but none match the requested
isActivevalue, the API returns200with an emptydataarray.
Headers
- Type: stringx
-application Source requiredA custom HTTP header that accepts a free-form string value. It is used to identify the application making the API request. For example, if Punchh invokes the API, the value could be "punchh".
- Type: stringX
- Location Id requiredThe unique location identifier for the store or business location processing the transaction.
- Type: stringContent
- Type requiredThe media type of the request body. Must be set to
application/json. - Type: stringAuthorizationrequired
Bearer token for API authorization. Send in the format:
Bearer ACCESS_TOKEN_GOES_HERE.
Body
Request body containing the userId and optional isActive.
- Type: stringuser
Id requiredThe unique identifier of the user in your system whose saved gift cards are to be retrieved.
- Type: booleanis
Active Filters the customer's saved gift cards by active/inactive status in the wallet. Defaults to
true(only active cards) when omitted. Allowed values aretrueorfalse. There is no single value that returns both active and inactive cards together. Non-boolean values (e.g.1,0,yes,no,active, an empty string) return a422 Unprocessable Entityerror identifyingisActive.
Responses
- application/json
- application/json
- application/json
- application/json
curl https://SERVER_NAME_GOES_HERE.partech.com/giftcard/v1/giftcards \
--header 'x-applicationSource: ' \
--header 'X-LocationId: ' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ACCESS_TOKEN_GOES_HERE' \
--data '{
"userId": "USER_ID_GOES_HERE",
"isActive": true
}'
{
"recordCount": 2,
"data": [
{
"id": "GIFT_CARD_ID_GOES_HERE",
"cardNumber": "GIFT_CARD_NUMBER_GOES_HERE",
"passcode": "GIFT_CARD_PASSCODE_GOES_HERE",
"isActive": true,
"isPreferred": true,
"sharedByUserId": null,
"isShared": false,
"designId": "summer-2026-tropical"
},
{
"id": "GIFT_CARD_ID_GOES_HERE",
"cardNumber": "GIFT_CARD_NUMBER_GOES_HERE",
"passcode": "GIFT_CARD_PASSCODE_GOES_HERE",
"isActive": true,
"isPreferred": false,
"sharedByUserId": "gc-555555",
"isShared": true,
"designId": null
}
],
"errors": null,
"traceId": "00-abcdef1234567890-abcdef12-01",
"statusCode": 200
}