Przejdź do głównej zawartości

CartAppliedGiftCard

A gift card that the buyer has attached to the cart. The card is debited when the cart completes.

type CartAppliedGiftCard {
appliedAmount: Money!
id: ID!
lastCharacters: String!
maskedCode: String!
remainingBalance: Money!
}

Fields

CartAppliedGiftCard.appliedAmount ● Money! non-null object

Amount of this gift card that will be applied to the cart total.

CartAppliedGiftCard.id ● ID! non-null scalar

Stable identifier of this applied gift card on the cart. Pass it to cartRemoveGiftCard so the storefront never has to hold the full gift card code.

CartAppliedGiftCard.lastCharacters ● String! non-null scalar

Last 4 characters of the gift card code — useful when several cards are applied.

CartAppliedGiftCard.maskedCode ● String! non-null scalar

Masked code safe for display (e.g. "****-****-****-ABCD").

CartAppliedGiftCard.remainingBalance ● Money! non-null object

Remaining balance on the gift card after this cart is completed.

Member Of

Cart object