# Find transactions using GIft Card

**URL:** <https://developer.squareup.com/forums/t/find-transactions-using-gift-card/8596>\
**Category:** Questions\
**Tags:** gift-cards-api\
**Created:** [February 16, 2023, 11:26pm UTC](https://developer.squareup.com/forums/t/find-transactions-using-gift-card/8596 "2023-02-16T23:26:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hespect](https://avatars.discourse-cdn.com/v4/letter/h/a9a28c/32.png) [@hespect](https://developer.squareup.com/forums/u/hespect)\
**Post date:** [February 16, 2023, 11:26pm UTC](https://developer.squareup.com/forums/t/find-transactions-using-gift-card/8596/1 "2023-02-16T23:26:58Z")

</div>

Hello, is there a way to find order transaction that were paid in whole or in part using a gift card? That is, a specific gift card GAN, not just with a payment type of SQUARE\_GIFT\_CARD. I want to give my users an audit trail of their issued GCs - so I want to show a list of orders where a GAN was used.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [February 17, 2023, 12:39am UTC](https://developer.squareup.com/forums/t/find-transactions-using-gift-card/8596/2 "2023-02-17T00:39:54Z")

</div>

In the payment response there is the `card` in `card_details`.

```auto
"card": {
                    "card_brand": "SQUARE_GIFT_CARD",
                    "last_4": "3231",
                    "exp_month": 12,
                    "exp_year": 2099,
                    "fingerprint": "sq-1-KdMZ4i3S3SAobUMyUEW1ltygrm7bK7VDe4qIyo_z7zfJOC45_vt1T-oAVjxnv7g-SA",
                    "card_type": "DEBIT",
                    "prepaid_type": "PREPAID",
                    "bin": "778332"
                }

```

In the card object theirs details about the card like `last_4`. You can use that to identify the card and then pull all the `order_ids` from the payment to get the order details with the Orders API. 🙂
