All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
48 views

Magento2 Rest API - How to add dynamic option to cart item during adding product to cart

I am getting issue with checkout_cart_product_add_after event. Actually I have created one method with this event which adding dynamic product option during product add. Below is by code: public ...
5
votes
1answer
122 views

Do I need to add shipping address every time whenever I place a new order in Magento 2 REST API?

STEP 1 - Using REST API I created a customer,And in address data I passed default shipping and billing true "defaultShipping": true, "defaultBilling": true, STEP 2 - In GET customer detail API ...
2
votes
0answers
124 views

How to get window.checkoutConfig data via REST API?

I am building a custom frontend for Magento 2 Checkout. Sometimes the checkout uses window.checkoutConfigin the built-in frontend. My frontend uses the REST API provided by Magento 2, but how can I ...
0
votes
1answer
71 views

Pass the values to rest api from magento2 checkout page

Get the values from magento2 checkout page but I need to pass into the rest api. How to pass the values. *$params = array( 'OrderLineId'=>$orderLineId, 'MaterialNo'=>$...
1
vote
1answer
1k views

Check products in cart if they are out of stock before place order REST API : Magento 2

I am building mobile application using Magento 2, I had an old defined cart which had a product and when checking out it gives an error saying the item is out of stock, that happened after payment and ...
2
votes
0answers
1k views

Magento 2: Debug REST error – 400 (Bad Request)

I can't process orders for some reason. The error I get in the console is: POST http://test-site.net/rest/default/V1/carts/mine/payment-information 400 (Bad Request) and POST https://test-...
8
votes
1answer
6k views

Magento 2: How shipping rest api function called On Checkout?

When u click on "Ship here" on Checkout Page it calls magento/rest/default/V1/carts/mine/estimate-shipping-methods-by-address-id Then it goes to below JS files magento\vendor\magento\module-...
2
votes
1answer
584 views

Magento 2.1 : How can I save a shipping address using the REST V1 API

I'm trying to save just the shipping address using the REST V1 API of Magento 2. I know there is an endpoint to save the billing-address, but there seems to be lack of a way to save the shipping ...
24
votes
4answers
15k views

Magento 2 - Create order using REST API

I need to use the Magento REST API to create an order from a mobile client. In my case, mobile side will implement the payment directly using PayPal SDK. What I need to do is to create an order by ...
4
votes
1answer
1k views

Magento 2 REST api for guest cart - display product in Magento's checkout

I have an Ember app that handles adding to basket via the REST API. I then want to jump back into Magento's front end for the checkout process, however the cart is empty. Is there a way to pass a ...