# Migrating existing giftcards to new giftcards api - need balances

**URL:** <https://developer.squareup.com/forums/t/migrating-existing-giftcards-to-new-giftcards-api-need-balances/4054>\
**Category:** Questions\
**Tags:** gift-cards-api\
**Created:** [October 25, 2021, 10:21pm UTC](https://developer.squareup.com/forums/t/migrating-existing-giftcards-to-new-giftcards-api-need-balances/4054 "2021-10-25T22:21:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![shannonf](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@shannonf](https://developer.squareup.com/forums/u/shannonf)\
**Post date:** [October 25, 2021, 10:21pm UTC](https://developer.squareup.com/forums/t/migrating-existing-giftcards-to-new-giftcards-api-need-balances/4054/1 "2021-10-25T22:21:35Z")

</div>

We’re moving to the new giftcards API, but have existing giftcards saved that were added using the `add customer card` endpoint. I need to fetch these giftcards to update the balance in our database, but can’t find how to look them up. There’s no GAN since they were added using `add_customer_card`, and the ID’s have a `ccof` prefix, rather than `gftc`, so they aren’t turning up any results on the Retrieve Gift Card endpoint.

Is there any way to look these up so we can add the current balance?

---

<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:** [October 25, 2021, 10:49pm UTC](https://developer.squareup.com/forums/t/migrating-existing-giftcards-to-new-giftcards-api-need-balances/4054/2 "2021-10-25T22:49:01Z")

</div>

Unfortunately, getting the GAN from a card saved on file from `CreateCustomerCard` isn’t currently available. 🙂

---

<div class="post-metadata">

**Author:** ![shannonf](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@shannonf](https://developer.squareup.com/forums/u/shannonf)\
**Post date:** [October 25, 2021, 10:51pm UTC](https://developer.squareup.com/forums/t/migrating-existing-giftcards-to-new-giftcards-api-need-balances/4054/3 "2021-10-25T22:51:49Z")

</div>

I don’t need the GAN, just the balance. Is this not possible?

---

<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:** [October 25, 2021, 11:03pm UTC](https://developer.squareup.com/forums/t/migrating-existing-giftcards-to-new-giftcards-api-need-balances/4054/4 "2021-10-25T23:03:44Z")

</div>

At this time not with the APIs. How many card balances do you need?

---

<div class="post-metadata">

**Author:** ![shannonf](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@shannonf](https://developer.squareup.com/forums/u/shannonf)\
**Post date:** [October 25, 2021, 11:15pm UTC](https://developer.squareup.com/forums/t/migrating-existing-giftcards-to-new-giftcards-api-need-balances/4054/5 "2021-10-25T23:15:34Z")

</div>

We have ~1200 legacy giftcards at the moment.

---

<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:** [October 25, 2021, 11:18pm UTC](https://developer.squareup.com/forums/t/migrating-existing-giftcards-to-new-giftcards-api-need-balances/4054/6 "2021-10-25T23:18:55Z")

</div>

Okay, what’s your application Id so I can ask the team? 🙂

---

<div class="post-metadata">

**Author:** ![shannonf](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@shannonf](https://developer.squareup.com/forums/u/shannonf)\
**Post date:** [October 25, 2021, 11:34pm UTC](https://developer.squareup.com/forums/t/migrating-existing-giftcards-to-new-giftcards-api-need-balances/4054/7 "2021-10-25T23:34:38Z")

</div>

It’s `sq0idp-_OpWFbMJ0nQp7vhmCjzoKw` thank you!

---

<div class="post-metadata">

**Author:** ![shannonf](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@shannonf](https://developer.squareup.com/forums/u/shannonf)\
**Post date:** [October 26, 2021, 4:23pm UTC](https://developer.squareup.com/forums/t/migrating-existing-giftcards-to-new-giftcards-api-need-balances/4054/8 "2021-10-26T16:23:58Z")

</div>

One other thing; it would be helpful to also have the card IDs for them, so we can use the webhooks to update balances, as currently we have no way of retrieving these cards based on the webhook info.
