Create or fund a gift card
Funds a shopper’s gift card, creating one if the shopper has none yet, and adjusts its balance.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Amount to load onto the gift card.
^[0-9]+(\.[0-9]+)?$"199.99"
Idempotency key to avoid duplicate transactions. Only one transaction may exist with a given idempotency key. Subsequent requests with the same idempotency key will return the data persisted in the database.
The account number, typically read from the physical card's magnetic stripe. Note that this should just be the account number, not any additional Track data.
Description to write alongside the funding transaction
ID of the employee responsible. Only a register sends one, and it is required there; a back-office session records the signed-in user, and an API credential records itself.
ID of the checkout that funded the gift card, from the transactions resource. Only a register sends one.
Barcode on the physical gift card. Provide this, recipient_phone_number, or account_number.
Phone number of the Shopper that funded the gift card. This may be the same as recipient_phone_number if a shopper buys a gift card for themselves.
^\+[1-9]\d{1,14}$Phone number of the shopper who will own this gift card. This shopper receives messages about this and future transactions. Provide this, physical_barcode, or account_number.
^\+[1-9]\d{1,14}$ID of the store the funding belongs to. Optional: name a store to attribute it to, or omit it for funding not tied to a store.
^[0-9]+$Response
Gift card funded successfully.
A prepaid balance a shopper spends at the register. It can be digital, tied to a shopper, or backed by one or more physical cards. A gift card belongs to the banner rather than to any one store, and can be sold, redeemed, or reloaded at any of its registers.
Unique identifier for the record.
Current balance on the gift card.
^-?[0-9]+(\.[0-9]+)?$"199.99"
Barcodes on the physical cards backing this gift card, across the card and any cards merged into it.
When the record was created.
When the gift card was deactivated, or null when it is active.
ID of the API credential that deactivated the gift card, or null when it is active or was deactivated by a person.
ID of the employee who deactivated the gift card, or null when it is active or was deactivated by another actor.
ID of the back-office user who deactivated the gift card, or null when it is active or was deactivated by another actor.
Reason recorded when the gift card was deactivated, or null when it is active.
When the gift card was last used in a sale or refund, or null when it has not been used yet.
Account numbers encoded on the magnetic stripe of the physical cards.
ID of the shopper who owns the gift card, or null when it has no owner.
Account numbers printed on the physical cards.
ID of the shopper who purchased the gift card, or null when unknown.
Short human-readable ID for the gift card, shown to shoppers on receipts and messages.
Whether the gift card is active and can be used, or has been deactivated.
active, deactivated When the record was last changed.