Create gift card.

If Code is omitted, one is auto-generated. If UniqueId is supplied, a repeat call with the same value is rejected — use it as an idempotency key.

Email delivery is controlled by two flags:

  • ShouldSendNotification=true alone sends the standard "gift card issued/updated" email.
  • ShouldSendNotification=true plus SendAsGift=true sends the "gifted" email instead — framed as "from BuyerName to RecipientName" and including GiftMessage. Requires BuyerName and RecipientName to be set. Optionally set GiftScheduledForUtc to schedule delivery for a future time.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

The gift card to create.

Create-gift-card request.

string | null

Optional pre-assigned code. Omit to auto-generate.

double

Face value in the account's currency.

string | null

Recipient name.

string | null

Recipient email address.

date-time | null

Optional UTC expiry date. If omitted, the account default (if any) is applied.

boolean

Send the delivery email and notify connected sales channels.

string | null

Optional internal note.

string | null

Buyer name.

string | null

Buyer email address.

string | null

Gift message from the buyer to the recipient.

string | null

Idempotency key. Retries with the same value are rejected.

boolean

Mark the card as promotional (e.g. a giveaway).

string | null

Caller-supplied metadata, echoed unchanged.

string | null

Caller-supplied metadata, echoed unchanged.

string | null

Caller-supplied metadata, echoed unchanged.

boolean

Suppress notification emails for this card.

boolean

Send the "gifted" email template (framed as "from BuyerName to RecipientName") instead of the standard "issued/updated" template. Requires ShouldSendNotification=true, BuyerName and RecipientName. Uses GiftMessage for the email body.

date-time | null

Optional UTC time to schedule the gifted email for. Only honoured when SendAsGift=true. If null or in the past, the email is sent immediately.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

Code or UniqueId, or SendAsGift was set without the required fields.

x-api-key.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json