Questions, troubleshooting, and feedback on Subscription APIs
So I'm currently building an app for managing subscriptions on shopify but I'm not understanding the Subscription Drafts. I've already been able to create them modify and commit them but how do I associate them to a contract? How can I modify an existing contract? (Ex: How to pause/cancel a contract?)
Solved! Go to the solution
This is an accepted solution.
When you commit a subscription draft the changes are applied to the contract itself. If there is no contract, a new one will be created: https://shopify.dev/api/admin/graphql/reference/orders/subscriptiondraftcommit
To get a contract draft from an existing contract you can use the subscriptionContractUpdate mutation: https://shopify.dev/api/admin/graphql/reference/orders/subscriptioncontractupdate#interactive-exampl...
You can get more information on this here: https://shopify.dev/apps/subscriptions/contracts
This is an accepted solution.
When you commit a subscription draft the changes are applied to the contract itself. If there is no contract, a new one will be created: https://shopify.dev/api/admin/graphql/reference/orders/subscriptiondraftcommit
To get a contract draft from an existing contract you can use the subscriptionContractUpdate mutation: https://shopify.dev/api/admin/graphql/reference/orders/subscriptioncontractupdate#interactive-exampl...
You can get more information on this here: https://shopify.dev/apps/subscriptions/contracts
Hi, I am able to create a Subscription contract draft, with subscriptionContractCreate mutation. I get the draft id & I immediately would like to commit it because i am creating a new contract, but I get {"data"=>{"subscriptionDraftCommit"=>{"contract"=>nil}} a nil contract with no errors at all. several attempts still return nil. What am I doing wrong? Please help me out.
As a business owner, have you ever wondered when your customer's first impression of yo...
By Skye Jun 6, 2023We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023