Free Gift | GraphQL methods

Free Gift | GraphQL methods

Queries

  1. amPromoGetAvailableFreeGifts (cartId: String!)
    description: get the list of available promo items

Mutations

  1. amPromoAddFreeGiftsToCart (cartId: String!, promoItems: [amPromoItemInput!])
    description: add promo items to the cart
      • 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 | GraphQL methods

        Queries amGiftCardAccount(input: AmGiftCardAccountInput!) description: get gift card account information by code amGiftCardSetting description: get gift card module settings amGiftCardPreview(input: AmGiftCardPreviewInput) description: get rendered ...
      • 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 ...
      • GraphQL Application Server Compatibility

        Amasty has introduced additional GraphQL Application Server compatibility package. This package is listed in the 'suggest' section of the composer.json file. Please ensure that you install the corresponding package via Composer using the following ...
      • How to create a multi-tier free gift campaign using the Free Gift for Magento 2 extension?

        With the Free Gift for Magento 2 extension, you can configure the following multi-tier free gift campaign: → if a customer spends $100 and more, they get free gift A; → if a customer spends $200 and more, they get free gift A or B; → if a customer ...