I have created some steps between shipping and Payment form and add some field between then and applied ajax on that but i have facing an issue for not logged in user it will gave an error of 401 and redirect on login page on saving first field.
Will anyone help me how to successfully placed order without login.
i'm using Rest Api to save data in magento 2
<route url="/V1/carts/mine/set-save-data" method="PUT"> <service class="Vendor\Module\Api\SaveNoteManagementInterface" method="saveSimpleNote"/> <resources> <resource ref="self" /> </resources> <data> <parameter name="cartId" force="true">%cart_id%</parameter> </data> </route>
This is my webapi.xml code it works properly for logged in user but for guest user it doesn't work and give 401 redirection. If you want i will share my full code for saving the data.