Skip to main content
Anchor to subscriptionContractCreateCalculate

subscriptionContractCreateCalculate

mutation

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

Starts an asynchronous calculation for a new subscription contract. The contract isn't created until you commit the calculation.

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 build a subscription contract.

•SubscriptionContractCalculationContractCreateInput!
required

The input for the new subscription contract calculation.


Was this section helpful?

Anchor to SubscriptionContractCreateCalculatePayload returnsSubscriptionContractCreateCalculatePayload returns

Anchor to subscriptionContractCalculationsubscriptionContractCalculation
•SubscriptionContractCalculation

The result of the subscription contract calculation operation.

•[SubscriptionContractCreateCalculateUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?