/api/v1/gift-cardsCreate a new gift card. The redemption code is generated server-side and is shown ONCE. See the response example below.
The redemption
codeis 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
amountnumberrequiredInitial value of the gift card.
applicationScopestringrequiredWhat the card can be redeemed against.
- Values:
storecategorypackage
categoryIdsstring[]· uuidRequired when scope is
category.packageIdsstring[]· uuidRequired when scope is
package.recipientNamestringRecipient name (for the gift card display).
recipientEmailstring· emailRecipient email.
messagestringPersonalized message.
expiresAtstring· date-timeOptional expiry timestamp.