Skip to main content
Anchor to subscriptionBillingCycleContractEditCalculate

subscriptionBillingCycleContractEditCalculate

mutation

Requires write_own_subscription_contracts access scope. Also: The user must have manage_orders_information permission.

Starts an asynchronous calculation for changes to a single billing cycle of an existing subscription contract. Committing the calculation applies the changes only to the selected cycle, leaving the recurring contract unchanged.

Poll the subscriptionContractCalculation query to review the calculated contract, then commit it with the subscriptionContractCalculationCommit mutation.

Learn how to update a subscription contract.

•SubscriptionActor

The actor who initiated a subscription action.

Anchor to billingCycleEditInputbillingCycleEditInput
•SubscriptionContractCalculationBillingCycleEditInput!
required

The input for the single billing cycle contract edit calculation.

Anchor to billingCycleSelectorbillingCycleSelector
•SubscriptionBillingCycleSelector!
required

Selects the billing cycle to edit, by index or date.

•ID!
required

The ID of the subscription contract to edit.


Was this section helpful?

Anchor to SubscriptionBillingCycleContractEditCalculatePayload returnsSubscriptionBillingCycleContractEditCalculatePayload returns

Anchor to subscriptionContractCalculationsubscriptionContractCalculation
•SubscriptionContractCalculation

The result of the subscription contract calculation operation.

•[SubscriptionBillingCycleContractEditCalculateUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?