GraphQL Methods for Gift Card Extension

Gift Card | GraphQL methods

Queries 

  1. amGiftCardAccount(input: AmGiftCardAccountInput!) 
    description: get gift card account information by code

  2. amGiftCardSetting 
    description: get gift card module settings

  3. amGiftCardPreview(input: AmGiftCardPreviewInput) 
    description: get rendered email template for preview

  4. amUserGiftCardAccount 
    description: get current user's gift card accounts

Mutations

  1. applyAmGiftCardToCart(input: ApplyAmGiftCardToCartInput) 
    description: apply a gift card code to the specified cart

  2. removeAmGiftCardFromCart(input: RemoveAmGiftCardFromCartInput) 
    description: remove a gift card code from the specified cart

  3. addAmGiftCardProductsToCart(input: AddAmGiftCardProductsToCartInput) 
    description: add gift card product to specified cart

  4. addAmGiftCardCodeToAccount(input: AmGiftCardCodeInAccountInput) 
    description: add gift card account to customer's account

  5. removeAmGiftCardCodeToAccount(input: AmGiftCardCodeInAccountInput) 
    description: remove gift card account from customer's account
      • Related Articles

      • What Amasty extensions support GraphQL?

        Amasty has introduced additional GraphQL packages for extensions that are GraphQL compatible. These packages are listed in the 'suggest' section of the composer.json file. As a result, they are not automatically installed with the main module. To ...
      • Gift Card API

        We have created public API collections for Gift Card module and its Gift Card Account submodule with all available queries and sample data that you can both test via our demo endpoints and copy to run local tests in your Magento environment. More ...
      • Free Gift | GraphQL methods

        Queries amPromoGetAvailableFreeGifts (cartId: String!) description: get the list of available promo items Mutations amPromoAddFreeGiftsToCart (cartId: String!, promoItems: [amPromoItemInput!]) description: add promo items to the cart
      • Multiple Coupons | GraphQL methods

        Kindly note that the GraphQL functionality for Multiple Coupons is available as a part of an active product subscription or support subscription Query amGetCouponsByCartId description: get coupons by cart id. Mutations amApplyCouponsToCart ...
      • Promo Banners | GraphQL methods

        Kindly note that the GraphQL functionality for Promo Banners is available as a part of an active product subscription or support subscription Queries amPromoBanners (uid: Product|Category ID; cartId: Cart ID; searchQuery: Search keywords; pageType: ...