The documentation for the cart Ajax API documents how to add a line item with a selling plan. I'm not seeing a way to set a selling plan when using the Storefront API. For example, the checkoutLineItemsAdd mutation doesn't include a sellingPlan field. The roadmap (https://shopify.dev/apps/subscriptions#product-roadmap) says that the "Storefront API" feature was launched in July 2021.
How can I add a selling plan to a line item using the Storefront API?
Solved! Go to the solution