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 ->

Unlink customer from gift card

POST

 /v2/gift-cards/{gift_card_id}/unlink-customer

Unlinks a customer from a gift card, which is also referred to as removing a card on file.

Permissions:GIFTCARDS_WRITE

Guide

Manage gift cards on file

Try in API Explorer
Link to section

Path parameters

Example code

Link to section

gift_card_id

string

Required

The ID of the gift card to be unlinked.

Link to section

Request body

Link to section

customer_id

string

Required

The ID of the customer to unlink from the gift card.

Min Length
1
Max Length
191
Link to section

Response fields

Link to section

errors

Any errors that occurred during the request.

Link to section

gift_card

The gift card with the ID of the unlinked customer removed from the customer_ids field. If no other customers are linked, the customer_ids field is also removed.

Link to section

Examples

All versions ->

POST /v2/gift-cards/{gift_card_id}/unlink-customer
curl https://connect.squareup.com/v2/gift-cards/gftc%3A71ea002277a34f8a945e284b04822edb/unlink-customer \ -X POST \ -H 'Square-Version: 2026-11-18' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "customer_id": "GKY0FZ3V717AH8Q2D821PNT2ZW" }'

Response JSON

{ "gift_card": { "id": "gftc:71ea002277a34f8a945e284b04822edb", "type": "DIGITAL", "gan_source": "SQUARE", "state": "ACTIVE", "balance_money": { "amount": 2500, "currency": "USD" }, "gan": "7783320005440920", "created_at": "2021-03-25T05:13:01Z" } }