How to Specify the SellingPlan with the createCheckout mutation?

diegoeche2
Tourist
3 0 0

We are experimenting with Subscriptions.

We have a little app that creates checkouts using the createCheckout mutation which uses createCheckoutInput as a parameter

https://shopify.dev/api/storefront/reference/checkouts/checkoutcreateinput

I Installed Recharge in a test store, marked one of my variants as a Subscription object, but I haven't been able to create the checkout link. The LineItem contract is missing a SellingPlan attribute.

Is this a problem of the documentation? or is it not possible to use this endpoint to add Subscriptions? (I've tried passing it as the customAttributes param... maybe I'm missing the right format there)

If it's not possible at the moment, what are the alternatives? (Using GraphQL, maybe there's another endpoint?)

0 Likes