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:

  • isActive filtering is independent of userId. userId determines whose wallet is queried, and isActive independently narrows the results to that user's active or inactive saved cards.
  • isActive is 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 sharedByUserId can have a different isActive state in each wallet).
  • If the user has saved gift cards but none match the requested isActive value, the API returns 200 with an empty data array.

Headers

  • A 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".

  • The unique location identifier for the store or business location processing the transaction.

  • The media type of the request body. Must be set to application/json.

  • Bearer token for API authorization. Send in the format: Bearer ACCESS_TOKEN_GOES_HERE.

Body

application/json

Request body containing the userId and optional isActive.

  • The unique identifier of the user in your system whose saved gift cards are to be retrieved.

  • Filters the customer's saved gift cards by active/inactive status in the wallet. Defaults to true (only active cards) when omitted. Allowed values are true or false. 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 a 422 Unprocessable Entity error identifying isActive.

Responses

  • application/json
  • application/json
  • application/json
  • application/json
Request Example for get/giftcard/v1/giftcards
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
}