Skip to Content

GiftCard

A gift card with value, code, expiration, and remaining value.

Type Definition

type GiftCard { value: Float! code: String! expires: String! valueLeft: Float! }

Fields

FieldTypeDescription
valueFloat!The value of the gift card in the order currency.
codeString!The code of the gift card.
expiresString!The expiration date of the gift card in RFC2822 format.
valueLeftFloat!The remaining value of the gift card in the order currency.

Relationships

GiftCard is used as a field within the CartPaymentMethod type to represent gift card payment information associated with a cart payment method. It provides detailed information about the gift card being used for payment, including its current value, code, and expiration details.

Example

{ value code expires valueLeft }

Implements

This type does not implement any interfaces.

  • Float
  • String