Custom Form API

Custom Form API

1. Amasty\Customform\Api\AnswerRepositoryInterface - class for managing form answers:
  1. POST /V1/amasty_customform/answer, method="save" - create an answer;
  2. PUT /V1/amasty_customform/answer/:answerId, method="save" - edit an answer;
  3. DELETE /V1/amasty_customform/answer/:answerId, method="deleteById" - delete an answer;
  4. GET /V1/amasty_customform/answer, method="get" - get information about an answer;
  5. GET /V1/amasty_customform/answer/all, method="getList" - get a list with all answers;
  6. GET /V1/amasty_customform/answer/list_filter, method="getListFilter" - get a list with filtered answers.

2. Amasty\Customform\Api\FormRepositoryInterface - class for managing forms:
  1. POST /V1/amasty_customform/form, method="save" - create a form;
  2. PUT /V1/amasty_customform/form/:formId, method="save" - edit a form;
  3. DELETE /V1/amasty_customform/form/:formId, method="deleteById" -delete a form;
  4. GET /V1/amasty_customform/form, method="get" - get information about a form;
  5. GET /V1/amasty_customform/form/all, method="getList" - get a list with all forms.
      • Related Articles

      • Custom Form | GraphQL methods

        Queries customform (formId: Int) description: get information about custom form by ID Mutations amCustomFormSubmit (input: AmFormSubmitInput) description: submit form
      • 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 - ...
      • Custom Stock Status API

        1. Amasty\Stockstatus\Api\RuleRepositoryInterface - class for managing custom stock status rules. POST /V1/amasty_stockstatus/rule, method="save" - create a custom stock rule; PUT /V1/amasty_stockstatus/rule/:id, method="save" - edit a custom stock ...
      • Automatic Related Products API

        1. Amasty\Mostviewed\Api\GroupRepositoryInterface - class for managing related product rules. POST /V1/amasty_mostviewed/rules", method="save" - create a rule; PUT /V1/amasty_mostviewed/rules/:groupId, method="save" - edit a rule; DELETE ...
      • 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 ...