Skip to Content
FluxStore is currently invite-only. Some sections of this documentation are still being written and expanded.
APIManagement APIGift CardsCreate a gift card
POST/api/v1/gift-cards

Create a new gift card. The redemption code is generated server-side and is shown ONCE. See the response example below.

The redemption code is the only field of the create response that is ever exposed by the API. Subsequent reads (GET /gift-cards/{id}) do not include it. Save it now or you will have to delete and recreate the card.

Requires the GiftCards:Edit permission.

Body

amountnumberrequired
Initial value of the gift card.
applicationScopestringrequired
What the card can be redeemed against.
Values:
storecategorypackage
categoryIdsstring[]· uuid
Required when scope is category.
packageIdsstring[]· uuid
Required when scope is package.
recipientNamestring
Recipient name (for the gift card display).
recipientEmailstring· email
Recipient email.
messagestring
Personalized message.
expiresAtstring· date-time
Optional expiry timestamp.