v1

latestOpenAPI 3.0.0Apache 2.02026-07-143281,4552.1 MB
GiftCards

RetrieveGiftCardFromGAN

Retrieves a gift card using the gift card account number (GAN).

post/v2/gift-cards/from-gan

Request body

ganstring required

The gift card account number (GAN) of the gift card to retrieve. The maximum length of a GAN is 255 digits to account for third-party GANs that have been imported. Square-issued gift cards have 16-digit GANs.

Example request

{
  "gan": "7783320001001635"
}

Response

Success

Example response

{
  "gift_card": {
    "balance_money": {
      "amount": 5000,
      "currency": "USD"
    },
    "created_at": "2021-05-20T22:26:54.000Z",
    "gan": "7783320001001635",
    "gan_source": "SQUARE",
    "id": "gftc:6944163553804e439d89adb47caf806a",
    "state": "ACTIVE",
    "type": "DIGITAL"
  }
}