GiftCardCreateInput input object
Represents the input for creating a gift card.
Input fields
-
code (
String
)An optional custom code of the gift card. It must be 8-20 characters long and contain only letters(a-z) and numbers(0-9). A random code will be generated if the code is not provided.
-
customerId (
ID
)The ID of the customer for the gift card.
-
expiresOn (
Date
)The expiry date of the gift card. If unspecified, then the gift card will never expire.
-
initialValue (
Decimal!
) RequiredThe initial value of the gift card in the shop's currency.
-
note (
String
)An optional note associated with the gift card. The note isn't visible to customers.
-
templateSuffix (
String
)The suffix of the Liquid template that's used to render the gift card online. For example, if the value is
birthday
, then the gift card is rendered using the templategift_card.birthday.liquid
. When the argument is not supplied, the defaultgift_card.liquid
template is used.
Represents the input for creating a gift card.
Input fields
-
code (
String
)An optional custom code of the gift card. It must be 8-20 characters long and contain only letters(a-z) and numbers(0-9). A random code will be generated if the code is not provided.
-
customerId (
ID
)The ID of the customer for the gift card.
-
expiresOn (
Date
)The expiry date of the gift card. If unspecified, then the gift card will never expire.
-
initialValue (
Decimal!
) RequiredThe initial value of the gift card in the shop's currency.
-
note (
String
)An optional note associated with the gift card. The note isn't visible to customers.
-
templateSuffix (
String
)The suffix of the Liquid template that's used to render the gift card online. For example, if the value is
birthday
, then the gift card is rendered using the templategift_card.birthday.liquid
. When the argument is not supplied, the defaultgift_card.liquid
template is used.
Represents the input for creating a gift card.
Input fields
-
code (
String
)An optional custom code of the gift card. It must be 8-20 characters long and contain only letters(a-z) and numbers(0-9). A random code will be generated if the code is not provided.
-
customerId (
ID
)The ID of the customer for the gift card.
-
expiresOn (
Date
)The expiry date of the gift card. If unspecified, then the gift card will never expire.
-
initialValue (
Decimal!
) RequiredThe initial value of the gift card in the shop's currency.
-
note (
String
)An optional note associated with the gift card. The note isn't visible to customers.
-
templateSuffix (
String
)The suffix of the Liquid template that's used to render the gift card online. For example, if the value is
birthday
, then the gift card is rendered using the templategift_card.birthday.liquid
. When the argument is not supplied, the defaultgift_card.liquid
template is used.