@bates-solutions/squareup API Reference - v3.2.0
    Preparing search index...

    Interface CreateGiftCardOptions

    Options for creating a gift card.

    GAN handling:

    • Omit gan and ganSource to let Square generate a 16-digit GAN.
    • Set ganSource: 'OTHER' and provide a custom gan (8–20 alphanumeric characters) for application-supplied GANs.
    • For unactivated physical cards previously ordered from Square, provide only gan (the printed value); leave ganSource unset.
    interface CreateGiftCardOptions {
        gan?: string;
        ganSource?: GiftCardGanSource;
        idempotencyKey?: string;
        locationId?: string;
        type: GiftCardType;
    }
    Index
    gan?: string
    ganSource?: GiftCardGanSource
    idempotencyKey?: string
    locationId?: string

    Location to register the card under. Defaults to the client's configured location ID.