Extra Fee | GraphQL methods

Extra Fee | GraphQL methods

Queries
  1. getListFeeItems
    description: get a list of created fees

  2. getFeeItemsForQuote(cart_id: String!)
    description: get a list of fees available in the current cart

  3. getFeeOptions(fee_id: Int!, store_id: Int!)
    description: get a list of fee options
     
  4. getAppliedFeeOptions(cart_id: String!)
    description: get a list of fee options applied to current cart

Mutations
  1. applyExtraFees(cart_id: String!, fee_id: Int!, options_ids: String!) 
    description: apply or cancel (set options ids to 0) extra fees to current cart
      • Related Articles

      • Extra Fee API

        1. Amasty\Extrafee\Api\TotalsInformationManagementInterface - class for managing cart totals for logged-in users: POST /V1/amasty_extrafee/carts/:cartId/totals-information, method="calculate" - calculate totals of a specific cart; POST ...
      • 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 ...
      • Advanced Conditions API (+Reward Points, Extra Fee, Free Gift, Shipping Rules, Shipping Restrictions)

        Advanced Conditions can be purchased both separately and within other Amasty modules: Reward Points, Extra Fee, Free Gift, Shipping Rules, Shipping Restrictions. The Advanced Conditions extension adds its functionality to the main modules, which ...
      • How to handle taxes for extra fees?

        Enabling taxes for extra fees If you'd like to apply tax to your extra charges, you'll need to prepare your settings first. It needs to be done in two separate places. Default Magento settings Step 1. Navigate to Stores → Taxes → Tax Zones and Rates ...
      • How to create a mandatory fee?

        If you need your customers to select an obligatory fee during checkout, you can create a mandatory fee that won't allow customers to place an order unless at least one fee option is selected. To do that, please go to Magento Admin Panel → Stores → ...