Multiple Coupons API Overview

Multiple Coupons API

Info
We have created a public API collection for Multiple Coupons 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 can be found in the following FAQ post.

1. Amasty\Coupons\Api\GetCouponsByCartIdInterface - class for getting information about applied coupons. 
  1. GET /V1/carts/:cartId/multicoupons, method="get" - get applied coupons by cart ID;
  2. GET /V1/carts/mine/multicoupons, method="get" - get coupons applied in my cart.

2. Amasty\Coupons\Api\ApplyCouponsToCartInterface - class for applying coupons.
  1. POST /V1/carts/:cartId/multicoupons/apply, method="apply" - apply coupons to a specific cart by ID;
  2. POST /V1/carts/mine/multicoupons/apply, method="apply" - apply coupons to my cart.

3. Amasty\Coupons\Api\GuestGetCouponsByCartIdInterfaceclass for getting information about applied guest coupons. 
  1. GET /V1/guest-carts/:cartId/multicoupons, method="get" - get coupons applied to a guest cart.

4. Amasty\Coupons\Api\ApplyCouponsToGuestCartInterfaceclass for applying guest coupons.
  1. POST /V1/guest-carts/:cartId/multicoupons/apply-to-cart, method="applyToCart" - apply coupons to guest cart.

5. Amasty\Coupons\Api\ApplyCouponsToGuestCartInterface
  1. POST /V1/carts/mine/multicoupons/apply-to-cart, method="applyToCart" - apply coupons to my cart.

      • Related Articles

      • What Amasty extensions support API?

        Each Amasty extension that has API support, includes the etc/webapi.xml file. The webapi.xml file contains API configurations with the list of available API requests. For example, a request from the Custom Form module interface: 1 - endpoint URL; 2 - ...
      • Can I test how your modules work with API?

        Our team have created a public Postman workspace where we provide access to API collections from our modules. You can copy these API collections to test them in your own Magento installation together with our modules, and some collections can be ...
      • Multiple Wishlist API

        We have created a public API collection for Multiple Wishlist 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 ...
      • 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 ...
      • RMA API

        We have created a public API collection for RMA 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 can ...