Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Subscription Contract Mutation Error

Subscription Contract Mutation Error

jaysanders
Shopify Partner
3 0 2

Hello,

 

I am receiving this error when trying to update a subscription contract by API:

{
  field: ['contractId'],
  message: "Subscription contract cannot update when having a future contract or schedule edit.",
  __typename: "SubscriptionDraftUserError"
}

I understand the error message, however haven't seen any documentation on how to resolve this issue or find a workaround. Any suggestions?

Replies 2 (2)

Cleankitchen
Shopify Partner
13 1 5

I wonder if this error is returned when given SubscriptionContract has some scheduled future Order? However, I would still expect to be able to tell that I want to pause the contract after the BillingCycle of the already scheduled Order without having to wait.

Cleankitchen
Shopify Partner
13 1 5

Looks like the issue is:
If the contract has a current or future billing cycle with committed edits, then you can't update the source subscription contract until you delete all of the edits.


Source: https://shopify.dev/docs/apps/selling-strategies/subscriptions/billing-cycles#:~:text=If%20the%20con....