Gift Card | GraphQL methods

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

        1. Amasty\GiftCard\Api\ImageRepositoryInterface - class for managing gift card images: POST /V1/amgcard/image, method="save" - save a gift card image; PUT /V1/amgcard/image/:id, method="save" - save a gift card image by ID; DELETE ...
      • 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
      • One Step Checkout | GraphQL methods

        Queries getAdditionalFields (cartId: String!) description: get information about additional fields getDefaultIpData description: get information about default IP address getAvailableShippingMethods (cartId: String!) description: get the information ...
      • Gift Wrap API

        1. Amasty\GiftWrap\Api\WrapRepositoryInterface - class for managing gift wraps: POST /V1/amasty_giftWrap/wrap, method="save" - create a wrap; PUT /V1/amasty_giftWrap/wrap/:entityId, method="save" - edit a wrap; DELETE ...