We have created a public API collection for Request a Quote with sample queries and data, you can copy it to run local tests in your Magento environment. More details about using public collections can be found in the following FAQ post.
1. Amasty\RequestQuote\Api\RemarkServiceInterface:
- PUT /V1/amasty_quote/updateRemark, method="save" - add information to the Remark field.
2. Amasty\RequestQuote\Api\QuoteRepositoryInterface - class for managing quotes:
- PUT /V1/amasty_quote/approve/:quoteId, method="approve" - approve a quote;
- PUT /V1/amasty_quote/expire/:quoteId, method="expire" - mark a quote as expired;
- GET /V1/amasty_quote/search, method="getRequestsList" - get a list of all requests;
- PUT /V1/amasty_quote/quote/note/customer:quoteId, method="addCustomerNote" - add customer comment to the quote;
- PUT /V1/amasty_quote/quote/note/admin:quoteId, method="addAdminNote" - add admin comment to the quote.
3. Amasty\RequestQuote\Api\QuoteItemRepositoryInterface - class for managing quote items:
- PUT /V1/amasty_quote/quote_item/note/customer:quoteId, method="addCustomerNote" - add customer comment to a quote item;
- PUT /V1/amasty_quote/quote_item/note/admin:quoteId, method="addAdminNote" - add admin comment to a quote item;
- GET /V1/quote-carts/:quoteId/items, method="getList" - get list of quote items;
- POST /V1/quote-carts/:quoteId/items, method="save" - save quote items;
- DELETE /V1/quote-carts/:quoteId/items/:itemId, method="deleteById" - delete items from the quote cart;
- GET /V1/quote-carts/mine/items, method="getList" - get list of my quote cart items.
4. Amasty\RequestQuote\Api\QuoteManagementInterface - class for managing quote carts:
- POST /V1/quote-carts, method="createEmptyQuoteCart" - create an empty quote cart;
- POST /V1/customers/:customerId/quote-carts, method="createEmptyQuoteCartForCustomer" - create an empty quote cart by customer ID;
- PUT /V1/quote-carts/:quoteId, method="assignCustomer" - assign a customer to a quote;
- POST /V1/quote-carts/mine, method="createEmptyQuoteCartForCustomer" - create an empty quote cart;
- GET /V1/quote-carts/mine, method="getQuoteCartForCustomer" - get info about a quote cart;
- POST /V1/quote-carts/:quoteId/in-cart, method="moveInCart" - move items to cart;
- POST /V1/quote-carts/mine/in-quote, method="moveInQuote" - move items to quote cart;
- PUT /V1/quote-carts/mine/update-customer-note, method="updateCustomerNote" - edit customer quote cart note;
- DELETE /V1/quote-carts/mine/clear, method="clear" - clear quote cart.
5. Amasty\RequestQuote\Api\QuoteItemManagementInterface
- POST /V1/quote-carts/mine/items, method="save" - save items in my quote cart;
- PUT /V1/quote-carts/mine/items/:itemId, method="save" - save an item in my quote cart.
6. Amasty\RequestQuote\Api\QuoteServiceInterface:
- PUT V1/quote-carts/:quoteId/cancel, method="cancelQuote" - cancel a quote request;
- PUT /V1/quote-carts/mine/submit, method="submit" - submit my quote request.
7. Amasty\RequestQuote\Api\CartManagementInterface
- DELETE /V1/quote-carts/mine/remove-from-cart, method="removeQuoteFromCart" - remove quote from my cart.
8. Amasty\RequestQuote\Api\GuestQuoteManagementInterface
- POST /V1/guest-quote-carts, method="createEmptyQuoteCart" - create an empty quote cart for a guest customer;
- GET /V1/guest-quote-carts/:quoteMaskId, method="get" - get info about a guest quote cart;
- POST /V1/guest-quote-carts/:cartMaskId/in-quote/:quoteMaskId, method="moveInQuote" - move quest cart to quote;
- PUT /V1/guest-quote-carts/:quoteMaskId, method="assignCustomer" - assign a customer to a quest cart;
- PUT /V1/guest-quote-carts/:quoteMaskId/update-customer-info, method="updateCustomerNote" - update quest customer info in quote;
- DELETE /V1/guest-quote-carts/:quoteMaskId/clear, method="clear" - clear guest quote;
- PUT /V1/guest-quote-carts/:quoteMaskId/submit, method="submit" - submit guest quote cart.
9. Amasty\RequestQuote\Api\GuestQuoteItemRepositoryInterface
- GET /V1/guest-quote-carts/:quoteMaskId/items, method="getList" - get list of items in a quest quote cart;
- POST /V1/guest-quote-carts/:quoteMaskId/items, method="save" - save guest quote cart items;
- DELETE /V1/guest-quote-carts/:quoteMaskId/items/:itemId, method="deleteById" - delete an item from guest quote cart.
10. Amasty\RequestQuote\Api\GuestQuoteItemManagementInterface
- PUT /V1/guest-quote-carts/:quoteMaskId/items/:itemId, method="save" - save an item in guest quote cart.
11. Amasty\RequestQuote\Api\AccountManagementInterface
- GET /V1/amasty_quote/isEmailAvailable/:customerEmail, method="isEmailAvailable" - get info about customer email notification.
12. Amasty\RequestQuote\Api\ShippingInformationManagementInterface
- - POST /V1/quote-carts/:quoteId/shipping-information, method = "saveAddressInformation" - add shipping information to quote.
In the API request to add shipping information to the quote, it is now possible specify Custom shipping method and Custom Fee.