Developer forum

Forum » Dynamicweb 10 » Add to cart from Api

Add to cart from Api

Jason
Reply

I create a cart using 

after that when I find the order with below api everything is fine. I can see the orderline correctly.


after that i add one more produnt into cart by using 


when i get the order by secret again , the last product's order line is showing Price zero instead of real price.

Please help me to solve this.

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Please provide the payload you send to the post carts/item endpoint.

And a screenshot of your setup of that product in the backend. Do you have live integration?

Also refer to the docs: https://doc.dynamicweb.dev/documentation/headless/delivery-api/commerce.html#carts

 

You must be logged in to post in the forum