Skip to main content

GiftCardCreateInput Input Type

No description

input GiftCardCreateInput {
addTags: [String!]
expiryDate: Date
metadata: [MetadataInput!]
privateMetadata: [MetadataInput!]
startDate: Date @deprecated
endDate: Date @deprecated
balance: PriceInput!
userEmail: String
channel: String
isActive: Boolean!
code: String @deprecated
note: String
assignedTo: ID
}

Fields​

addTags ● [String!]​

The gift card tags to add.

expiryDate ● Date​

The gift card expiry date.

metadata ● [MetadataInput!]​

Gift Card public metadata.

Added in Saleor 3.21. Can be read by any API client authorized to read the object it's attached to.

Warning: never store sensitive information, including financial data such as credit card details.

privateMetadata ● [MetadataInput!]​

Gift Card private metadata.

Added in Saleor 3.21. Requires permissions to modify and to read the metadata of the object it's attached to.

Warning: never store sensitive information, including financial data such as credit card details.

balance ● PriceInput!​

Balance of the gift card.

userEmail ● String​

Email of the customer to whom gift card will be sent.

channel ● String​

Slug of a channel from which the email should be sent.

isActive ● Boolean!​

Determine if gift card is active.

note ● String​

The gift card note from the staff member.

assignedTo ● ID​

ID of the customer the gift card is restricted to.

Added in Saleor 3.23
Show deprecatedHide deprecated

startDate ● Date​

DEPRECATED

No longer supported

Start date of the gift card in ISO 8601 format.

endDate ● Date​

DEPRECATED

Use expiryDate from expirySettings instead.

End date of the gift card in ISO 8601 format.

code ● String​

DEPRECATED

The code is now auto generated.

Code to use the gift card.

Member Of​

giftCardCreate mutation