Questions, troubleshooting, and feedback on Subscription APIs
Hello,
I have an application that has been happily using checkouts as carts on the Storefront API (carts did not exist at that time).
Now I would like to add subscription products, and I see that subscriptions are not supported on checkout line items https://shopify.dev/api/storefront/reference/checkouts/checkoutlineiteminput
I see that the new(ish) Carts do support selling plans, which I assume allow subscriptions https://shopify.dev/api/storefront/reference/cart/cartlineinput
However, carts have no mutation to apply gift cards like checkouts do, with https://shopify.dev/api/storefront/reference/checkouts/checkoutgiftcardapply
My store needs gift card application, and subscription products, but I don't see any way to do that in the storefront api.
Is this possible?
Hey Matt_Lein,
I want to apologize for not getting back to you about this in a timely manner.
If this problem is still relevant to you, can I ask that you submit this question again? (with information about your current situation)
Sincerely,
J-ROM
I had completely forgotten about it. From looking at the latest docs, it looks like 13 months later nothing has changed. I may be wrong.
I did my best to lay out what I need in the original question, if anything is unclear I can go into more detail. Rephrasing it:
I have an application that uses the storefront API.
I would like something that looks like a cart to users.
Currently I use Checkouts. I create a Checkout for each user to act as a cart. They add products, apply gift cards, discount codes, etc. It works well. However, I don't think there is a way to add subscription products to a Checkout.
The alternative would be to use Carts. They can add subscription products. However, I think there is no way to apply gift cards to a Cart. I'm not sure what other limitations there would be.
If Carts had all the mutations/features of Checkouts (applying gift cards and more), I could use them.
Or, if Checkouts line items accepted a subscription product (through seller id or whatever method makes that work) I could use them.
But as is now, I don't seem to be able to use either for this purpose.
Hey Matt_Lein,
Thanks for confirming your question still applies, I will do my best to answer it now.
There's no plan to introduce Selling Plans in the Checkout API. In general, it's recommended to add subscription products via the Cart API, and redirect the customer to the web checkout where they will be able to apply their gift cards. Hope this helps.
Sincerely,
J-ROM
User | RANK |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023