OptionaldefaultLocationId: stringActivate a PENDING gift card with an initial balance. Convenience
wrapper over activities.create({ type: 'ACTIVATE' }).
Optionaloptions: {Create (issue) a new gift card.
New cards are created in PENDING state. Call activate() (or
activities.create({ type: 'ACTIVATE' })) to set an initial balance
before redemption.
Deactivate a gift card permanently.
Optionaloptions: { idempotencyKey?: string; locationId?: string }Get a gift card from a payment-source nonce (e.g. produced by the Square Web Payments SDK at checkout).
Link a gift card to a customer profile. Returns the updated card with the
customer ID added to customerIds.
List gift cards, optionally filtered by type, state, or linked customer.
Optionaloptions: ListGiftCardsOptionsLoad (top up) an active gift card.
Optionaloptions: {Redeem from a gift card (deduct funds). For payments processed through the Square Payments API, Square creates the REDEEM activity automatically; use this only with a custom payment processor.
Optionaloptions: {Alias for list(). Maintained for parity with the issue's proposed shape.
Optionaloptions: ListGiftCardsOptionsUnlink a customer from a gift card. Returns the updated card.
Service for managing Square gift cards — issuance, lookup, customer linking.
Activities (activate, load, redeem, deactivate, etc.) are accessed via
square.giftCards.activities. Convenience helpers (activate,load,redeem,deactivate) are also exposed directly on this service for the common cases.Example