Magidoc

applyGiftCard
Mutation

Apply a gift card on the current selection.

Possible Error Codes:

  • internal_error- An internal issue not directly related to the shopper.
  • invalid_input- A validation error, such as the gift card not existing or an incorrect PIN being provided.
  • inactive_card- The gift card being used is either inactive or expired.
  • insufficient_funds- The gift card does not have sufficient funds.
  • invalid_gift_card_currency- The gift card’s currency does not match the current currency of the selection.
  • empty_card_balance- The gift card balance is zero.

Can be protected by captcha.

Required operating mode : SESSION

Arguments

#

input

Non-null

Response

#

Returns SelectionMutationPayload !.

Example

#