Skip to main content
Anchor to subscriptionContractUpdateCalculate

subscriptionContractUpdateCalculate

mutation

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

Starts an asynchronous calculation for changes to an existing subscription contract. The changes aren't applied to the contract until you commit the calculation, and fields omitted from the input remain unchanged.

Poll the subscriptionContractCalculation query to review the calculated contract, its projected order totals, and any warnings, then commit it with the subscriptionContractCalculationCommit mutation.

Learn how to update a subscription contract.

•SubscriptionActor

The actor who initiated a subscription action.

•ID!
required

The ID of the subscription contract to update.

•SubscriptionContractCalculationContractUpdateInput!
required

The input for the subscription contract update calculation.


Was this section helpful?

Anchor to SubscriptionContractUpdateCalculatePayload returnsSubscriptionContractUpdateCalculatePayload returns

Anchor to subscriptionContractCalculationsubscriptionContractCalculation
•SubscriptionContractCalculation

The result of the subscription contract calculation operation.

•[SubscriptionContractUpdateCalculateUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?