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.

Show enum values
•ID!
required

The ID of the subscription contract to update.

•SubscriptionContractCalculationContractUpdateInput!
required

The input for the subscription contract update calculation.

Show input fields

Was this section helpful?

Anchor to SubscriptionContractUpdateCalculatePayload returnsSubscriptionContractUpdateCalculatePayload returns

Anchor to subscriptionContractCalculationsubscriptionContractCalculation
•SubscriptionContractCalculation

The result of the subscription contract calculation operation.

Show union types
•[SubscriptionContractUpdateCalculateUserError!]!
non-null

The list of errors that occurred from executing the mutation.

Show fields

Was this section helpful?