subscription Billing Cycle Contract Edit Calculate
Requires 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 query to review the calculated contract, then commit it with the mutation.
Learn how to update a subscription contract.
Arguments
- actor (SubscriptionActor)
- billingCycleEditInput (SubscriptionContractCalculationBillingCycleEditInput!)
- billingCycleSelector (SubscriptionBillingCycleSelector!)
- contractId (ID!)
- Anchor to actoractor•Subscription
Actor The actor who initiated a subscription action.
- Anchor to billingCycleEditInputbilling•Subscription
Cycle Edit Input Contract Calculation Billing Cycle Edit Input! required The input for the single billing cycle contract edit calculation.
- Anchor to billingCycleSelectorbilling•Subscription
Cycle Selector Billing Cycle Selector! required Selects the billing cycle to edit, by index or date.
- Anchor to contractIdcontract•ID!
Id required The ID of the subscription contract to edit.
Anchor to SubscriptionBillingCycleContractEditCalculatePayload returnsSubscription Billing Cycle Contract Edit Calculate Payload returns
- subscriptionContractCalculation (SubscriptionContractCalculation)
- userErrors ([SubscriptionBillingCycleContractEditCalculateUserError!]!)
- Anchor to subscriptionContractCalculationsubscription•Subscription
Contract Calculation Contract Calculation The result of the subscription contract calculation operation.
- Anchor to userErrorsuser•[Subscription
Errors Billing Cycle Contract Edit Calculate User Error!]! non-null The list of errors that occurred from executing the mutation.