I am writing to report an issue I'm experiencing with the Cart API implementation. I have tried multiple approaches to add products to a customer's cart programmatically, but I'm encountering difficulties.
API Request Approach
https://commerce.zoho.com/storefront/api/v1/cart in Postman with the following configuration:Headers:
Request Body:
While the API returns a success message with the product details, the products are not actually being added to the cart when I check the cart page (/cart).
HTML Components Approach
- The product ID (first set of numbers).- The quantity separated by a slash (/).- Multiple products separated by an ampersand (&).
Questions:
I would greatly appreciate any guidance on resolving this issue. Our goal is to implement a solution that allows us to programmatically add products to our customers' carts when they scan a QR code, using the Local Storage to save the string with the ID and quantity product.