Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Adding a product to cart through Saleor Api #1063

Open
SalmanTayyab454 opened this issue Jun 24, 2021 · 1 comment
Open

Adding a product to cart through Saleor Api #1063

SalmanTayyab454 opened this issue Jun 24, 2021 · 1 comment
Labels
question Further information is requested

Comments

@SalmanTayyab454
Copy link

SalmanTayyab454 commented Jun 24, 2021

Hello, By using Saleor api I am adding a product into the cart.Like this this.$saleor.cart.addItem('UHJvZHVjdFZhcmlhbnQ6MjA5', 1);
I am getting a response that you have to add the product in the cart to create the checkout process. What is the correct way of adding a product in cart through api?

@krzysztofwolski
Copy link
Member

Hello, documentation can be found here: https://docs.saleor.io/docs/3.0/developer/checkout#creating-a-checkout-session

@krzysztofwolski krzysztofwolski added the question Further information is requested label Aug 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants