cart API and subscriptions

Solved
greg12
Excursionist
31 1 5

Hi all, 

As we all know https://shopify.dev/api/ajax/reference/cart we can easy add product to cart by specifying variantId and quantity. But it is not documented how one can add subscription created using sellingPlan API to the cart. Any idea where to look for related docs? Or for some reason this is not allowed? 

0 Likes
greg12
Excursionist
31 1 5

This is an accepted solution.

My bad, it is there. I ws searching for bad phrase "subscription" while I should "selling_plan" 

0 Likes