Development
  • Guides
  • API Reference
  • API Explorer
  • SDKs
  • Sample apps
  • System status
Support
  • Developer forums
  • Developer blog
  • YouTube
  • X
More
  • Square Home
  • Square Developer
  • App Marketplace
  • Partner with Square
  • Solutions Partner Program
  • Pricing
  • Sales

© 2026 Square, Inc.

  • Developer terms of service
  • Developer Integration and Marketing Agreement
  • Privacy policy
  • Partnerships
  • Sign In
  • Sign In

    Gift Cards

  • List gift cards

  • Create gift card

  • Retrieve gift card from GAN

  • Retrieve gift card from nonce

  • Link customer to gift card

  • Unlink customer from gift card

  • Retrieve gift card

  • Webhooks

  • gift_card.created

  • gift_card.customer_linked

  • gift_card.customer_unlinked

  • gift_card.updated

<- Gift Cards API

Gift Cards API

All versions ->

Retrieve gift card from nonce

POST

 /v2/gift-cards/from-nonce

Retrieves a gift card using a secure payment token that represents the gift card.

Permissions:GIFTCARDS_READ

Guide

Retrieve gift cards

Try in API Explorer
Link to section

Request body

Example code

Link to section

nonce

string

Required

The payment token of the gift card to retrieve. Payment tokens are generated by the Web Payments SDK or In-App Payments SDK.

Min Length
1
Link to section

Response fields

Link to section

errors

Any errors that occurred during the request.

Link to section

gift_card

The retrieved gift card.

Link to section

Examples

All versions ->

POST /v2/gift-cards/from-nonce
curl https://connect.squareup.com/v2/gift-cards/from-nonce \ -X POST \ -H 'Square-Version: 2026-11-18' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "nonce": "cnon:7783322135245171" }'

Response JSON

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

Error descriptions

400 Bad request

{ "errors": [ { "code": "CARD_TOKEN_EXPIRED", "category": "INVALID_REQUEST_ERROR" } ] }