subscription Contract Calculation Commit
Requires access scope. Also: The user must have manage_orders_information permission.
Commits a succeeded subscription contract calculation. For a create or update calculation, committing makes the calculated contract the contract's new active version used for future billing. For a billing cycle edit, committing applies the calculated contract only to the selected cycle.
The calculation must be in a succeeded state, which you can confirm with the
query. Returns the committed contract as a ,
or a for a billing cycle edit.
Learn how to build a subscription contract.
Arguments
- id (ID!)
- •ID!required
The ID of the Subscription Contract Calculation to commit.
Anchor to SubscriptionContractCalculationCommitPayload returnsSubscription Contract Calculation Commit Payload returns
- contract (SubscriptionCommittedContract)
- userErrors ([SubscriptionContractCalculationCommitUserError!]!)
- Anchor to contractcontract•Subscription
Committed Contract The contract produced by committing the calculation. A create or update returns a SubscriptionContract; a billing cycle edit returns a SubscriptionBillingCycleEditedContract.
- Anchor to userErrorsuser•[Subscription
Errors Contract Calculation Commit User Error!]! non-null The list of errors that occurred from executing the mutation.