Create pre-filled shopping carts
Checkout API allows you to create URLs that open a shopping cart and fill it with products and delivery details. These links can be used for promotions or sharing pre-filled carts with customers.
Here's how you can get such a link:
Create a JSON with cart details using the cart structure from JS API cart management methods.
Convert it to a string (
JSON.stringify()).Encode it to URI format (
encodeURIComponent()).Combine it with the base URL to get the resulting URL. Use the code example below to get the format.
Last updated
Was this helpful?
