Cancel Order API Overview

Cancel Order API

Info
We have created a public API collection for Cancel Order 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\CancelOrder\Api\CancelOrderRepositoryInterface - class for managing canceled orders.
  1. POST /V1/amasty_cancelOrder/cancelOrder, method="save" - create a new canceled order;
  2. PUT /V1/amasty_cancelOrder/cancelOrder/:id, method="save" - edit a canceled order;
  3. DELETE /V1/amasty_cancelOrder/cancelOrder/:id, method="deleteById" - delete a canceled order by ID;
  4. GET /V1/amasty_cancelOrder/cancelOrder, method="getById" - get details about a canceled order by ID;
  5. GET /V1/amasty_cancelOrder/cancelOrder/all, method="getList" - get list of canceled orders.

      • 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 ...
      • Order Archive API

        1. Amasty\Orderarchive\Api\ArchiveProcessorInterface - class for managing orders and archives. POST /V1/amastyMoveToArchive, method="moveToArchive" - move an order to archive; POST /V1/amastyMoveFromArchive, method="removeFromArchive" - remove an ...
      • Order Attributes API

        We have created a public API collection for Order Attributes 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 ...
      • Quick Order API

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