Find answers about implementation, virtual try-on, product visualization, integrations, analytics, and account support.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Multi-Cart Bundling Specification: Shopify
Last Updated:
June 18, 2024
Shopify
If your storefront is located in Shopify, we’ll use the Ajax API. Below is information on how we send requests and push data into the cart. No action items are required for our clients on Shopify.
How it works
1. We’ll use the following API to retrieve product variants:
GET: <client.domain>/products/<product_handle>.js(where product_handle is a product handle)
2. Then we push selected items into the cart:
POST: <client.domain>/cart/add.js3. And finally pass the data in Request Body to the ATC endpoint:
items: [
{
quantity: 1,
id: <variant ID>
}
]
References
Fetch Variations API: Product API reference (shopify.dev)
Add-to-cart API: Cart API reference (shopify.dev)