One Step Checkout API

One Step Checkout API

1. Amasty\Checkout\Api\AdditionalFieldsManagementInterface - class for managing additional fields for logged-in users:
  1. POST /V1/amasty_checkout/carts/:cartId/amcheckoutFields, method="save" - save a field for a specific cart by ID;
  2. POST /V1/amasty_checkout/carts/mine/amcheckoutFields, method="save" - save a field for the current cart.

2. Amasty\Checkout\Api\GuestAdditionalFieldsManagementInterface - class for managing additional fields for guests:
  1. POST /V1/amasty_checkout/guest-carts/:cartId/amcheckoutFields, method="save" - save a field for a guest cart.

3. Amasty\Checkout\Api\GiftMessageInformationManagementInterface - class for managing gift messages for logged-in users:
  1. POST /V1/amasty_checkout/carts/:cartId/gift-message, method="update" - save a gift message for a specific cart by ID;
  2. POST /V1/amasty_checkout/carts/mine/gift-message, method="update" - save a gift message in the current cart.

4. Amasty\Checkout\Api\GuestGiftMessageInformationManagementInterfaceclass for managing gift messages for guest users:
  1. POST /V1/amasty_checkout/guest-carts/:cartId/gift-message, method="update" - save a gift message in a guest cart. 

5. Amasty\Checkout\Api\GiftWrapInformationManagementInterface - class for managing gift wrap for registered users:
  1. POST /V1/amasty_checkout/carts/:cartId/gift-wrap, method="update" - save a gift wrap in a specific cart by ID;
  2. POST /V1/amasty_checkout/carts/mine/gift-wrap, method="update" - save a gift wrap in the current cart.

6. Amasty\Checkout\Api\GuestGiftWrapInformationManagementInterface - class for managing gift wraps for guests:
  1. POST /V1/amasty_checkout/guest-carts/:cartId/gift-wrap, method="update" - save a gift wrap in a guest cart.

7. Amasty\Checkout\Api\DeliveryInformationManagementInterface - class responsible for delivery date for logged-in customers:
  1. POST /V1/amasty_checkout/carts/:cartId/delivery, method="update" - save delivery date in a specific cart by ID;
  2. POST /V1/amasty_checkout/carts/mine/delivery, method="update" - save delivery date in the current cart.

8. Amasty\Checkout\Api\GuestDeliveryInformationManagementInterface - managing delivery date for guest users:
  1. POST /V1/amasty_checkout/guest-carts/:cartId/delivery, method="update" - save delivery date in a guest cart.

9. Amasty\Checkout\Api\ItemManagementInterface - class for managing products in carts of logged-in users:
  1. POST /V1/amasty_checkout/carts/:cartId/remove-item, method="remove" - remove a product from a specific cart by ID;
  2. POST /V1/amasty_checkout/carts/mine/remove-item, method="remove" - remove a product from the current cart;
  3. POST /V1/amasty_checkout/carts/:cartId/update-item, method="update" - edit a product in a specific cart by ID;
  4. POST /V1/amasty_checkout/carts/mine/update-item, method="update" - edit a product in the current cart.

10. Amasty\Checkout\Api\GuestItemManagementInterface - class for managing products in guest carts:
  1. POST /V1/amasty_checkout/guest-carts/:cartId/remove-item, method="remove" - remove a product from a guest cart;
  2. POST /V1/amasty_checkout/guest-carts/:cartId/update-item, method="update" - edit a product in a guest cart.

11. Amasty\Checkout\Api\AccountManagementInterface - class for managing customer account information:
  1. POST /V1/amasty_checkout/guest-carts/:cartId/save-password, method="savePassword" - create a guest account on checkount and save a password.

12. Amasty\Checkout\Api\GuestQuoteManagementInterface - class for managing guest quotes:
  1. POST /V1/checkout/:cartId/saveInsertedInfo, method="saveInsertedInfo" - save a quote for a guest by its ID.

13. Amasty\Checkout\Api\QuoteManagementInterface - class for managing quotes of logged-in users:
  1. POST /V1/checkout/saveInsertedInfo, method="saveInsertedInfo" - save the current quote of a registered customer.

14. Amasty\Checkout\Api\MergeJsInterface - class for managing JS bunling:
  1. POST /V1/amasty_checkout/js/create-bundle, method="createBundle" - create JS bundling for specific files.
      • Related Articles

      • One Step Checkout | GraphQL methods

        Queries getAdditionalFields (cartId: String!) description: get information about additional fields getDefaultIpData description: get information about default IP address getAvailableShippingMethods (cartId: String!) description: get the information ...
      • 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 ...
      • 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 ...
      • Order Attributes API

        1. Amasty\Orderattr\Api\EntityDataRepositoryInterface - class for managing order attributes in the backend: POST /V1/amasty_orderattr/entityData, method="save" - create an attribute; PUT /V1/amasty_orderattr/entityData/:entityId, method="save" - edit ...