Multiple Coupons API

Multiple Coupons API

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

      • Multiple Wishlist API

        1. Amasty\MWishlist\Api\WishlistRepositoryInterface - class for managing wishlists. POST /V1/amasty_mWishlist/wishlist, method="save" - create a wishlist; PUT /V1/amasty_mWishlist/wishlist/:wishlistId, method="save" - edit a wishlist; DELETE ...
      • 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 ...
      • 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 - ...
      • RMA API

        Kindly note that the API functionality for RMA is available as part of the Pro and Premium extension plans. 1. Amasty\Rma\Api\StatusRepositoryInterface - class for managing RMA statuses. GET /V1/amasty_rma/rma_status/get/:statusId, method="getById" - ...
      • GDPR API

        1. Amasty\Gdpr\Api\RequestInterface - class for managing personal data deletion requests. POST /V1/amasty_gdpr/approveDeleteRequest, method="approveDeleteRequest" - approve a request; POST /V1/amasty_gdpr/denyDeleteRequest, method="denyDeleteRequest" ...