Anchor to subscriptionContractUpdateCalculatesubscription
mutationsubscription Contract Update Calculate
Requires 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 query to review the calculated contract, its projected order totals, and any
warnings, then commit it with the mutation.
Learn how to update a subscription contract.
Anchor to Arguments
Arguments
- actor (SubscriptionActor)
- contractId (ID!)
- contractUpdateInput (SubscriptionContractCalculationContractUpdateInput!)
- Anchor to actoractor•Subscription
Actor The actor who initiated a subscription action.
- Anchor to contractIdcontract•ID!
Id required The ID of the subscription contract to update.
- Anchor to contractUpdateInputcontract•Subscription
Update Input Contract Calculation Contract Update Input! required The input for the subscription contract update calculation.
Was this section helpful?
Anchor to SubscriptionContractUpdateCalculatePayload returnsSubscription Contract Update Calculate Payload returns
- subscriptionContractCalculation (SubscriptionContractCalculation)
- userErrors ([SubscriptionContractUpdateCalculateUserError!]!)
- Anchor to subscriptionContractCalculationsubscription•Subscription
Contract Calculation Contract Calculation The result of the subscription contract calculation operation.
- Anchor to userErrorsuser•[Subscription
Errors Contract Update Calculate User Error!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?