Extra Fee | GraphQL methods
Queries
- getListFeeItems
description: get a list of created fees
getFeeItemsForQuote(cart_id: String!)
description: get a list of fees available in the current cart
- getFeeOptions(fee_id: Int!, store_id: Int!)
description: get a list of fee options
- getAppliedFeeOptions(cart_id: String!)
description: get a list of fee options applied to current cart
Mutations
- 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
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 ...
Extra Fee API
We have created a public API collection for Extra Fee module 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 details about using public collections ...
Advanced Conditions API (+Reward Points, Extra Fee, Free Gift, Shipping Rules, Shipping Restrictions)
We have created a public API collection for Advanced Conditions module with all available queries and sample data, you can copy it to run local tests in your Magento environment. More details about using public collections can be found in the ...
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 → ...