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....