Custom Stock Status API

Custom Stock Status API

1. Amasty\Stockstatus\Api\RuleRepositoryInterface - class for managing custom stock status rules.
  1. POST /V1/amasty_stockstatus/rule, method="save" - create a custom stock rule;
  2. PUT /V1/amasty_stockstatus/rule/:id, method="save" - edit a custom stock rule;
  3. DELETE /V1/amasty_stockstatus/rule/:id, method="deleteById" - delete a custom stock status rule;
  4. GET /V1/amasty_stockstatus/rule, method="getById" - get details about a custom stock status rule;
  5. GET /V1/amasty_stockstatus/rule/all, method="getList" - get a list of all custom stock status rules.

      • Related Articles

      • Custom Stock Status | GraphQL methods

        Query getAmCustomStockStatus description: get information about a stock status
      • In my instance, all options for Custom Stock Status attribute are greyed out and I’m not able to edit them or add new ones

              The issue arises due to the reset entity in the DB that happens during module update/installation. In order to fix it, you need to modify the value of the is_user_defined entity in the DB.
This could be done with the following command:
 UPDATE ...
      • 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 - ...
      • How to import stock?

        Inventory import depends on the number of sources/stocks that are created on Magento instance in Stores > Inventory > Stocks & Stores > Inventory > Sources. Case 1. Import to the instance with only one stock and source. Please use the following ...
      • Custom Form API

        1. Amasty\Customform\Api\AnswerRepositoryInterface - class for managing form answers: POST /V1/amasty_customform/answer, method="save" - create an answer; PUT /V1/amasty_customform/answer/:answerId, method="save" - edit an answer; DELETE ...