Store Credit & Refund API

Store Credit & Refund API

1. Amasty\StoreCredit\Api\ApplyStoreCreditToQuoteInterface - class for managing store credits on checkout:
  1. POST /V1/carts/mine/amstorecredit/apply, method="apply" - apply store credits to the quote;
  2. POST /V1/carts/mine/amstorecredit/cancel, method="cancel" - remove the applied store credits.

2. Amasty\StoreCredit\Api\StoreCreditRepositoryInterface - class for getting information about store credits:
  1. GET /V1/customers/me/amstorecredit, method="getByCustomerId" -get information about store credits by customer ID.
      • 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 - ...
      • Store Pickup API

        1. Amasty\StorePickup\Api\GuestShippingMethodManagementInterface - class for managing shipping methods on guest checkout: POST /V1/guest-carts/:cartId/estimate-shipping-methods, method="estimateByExtendedAddress" - displays available shipping methods ...
      • Store Pickup with Locator

        1. Amasty\StorePickupWithLocator\Api\GuestLocationPickupValuesInterface - class for managin store pickup for guests: POST /V1/amstorepickup/:cartId/saveSelectedPickupValues, method="saveSelectedPickupValues" - deprecated query, retained for backward ...
      • Reward Points API

        1. Amasty\Rewards\Api\CheckoutRewardsManagementInterface - class responsible for applying reward points on checkout: PUT /V1/carts/mine/points/:points, method="set" - apply points; DELETE /V1/carts/mine/points/delete, method="remove" - remove applied ...
      • 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 ...