subscription Contract Calculation
Requires access scope. Also: The user must have manage_orders_information permission.
Returns a subscription contract calculation by ID. Use this query to poll a
calculation started by , , or
until it succeeds or fails.
The result resolves to a pending, succeeded, or failure type. Commit a
succeeded calculation with the mutation.
Learn how to build a subscription contract.
Arguments
- id (ID!)
- •ID!required
The ID of the Subscription Contract Calculation to return.
Anchor to Possible returnsPossible returns
- SubscriptionContractCalculation (SubscriptionContractCalculation)
- Anchor to SubscriptionContractCalculationSubscription•Subscription
Contract Calculation Contract Calculation The result of a subscription contract calculation, returned by the
query. Because calculations run asynchronously, the concrete type reflects the calculation's current state:while it's still processing,once it's ready to commit, orif it failed, whoseerrorsfield describes what went wrong. Poll the query until the type is no longer pending.- •OBJECT
A subscription contract calculation that has failed.
- •OBJECT
A subscription contract calculation that is still processing asynchronously.
- •OBJECT
A subscription contract calculation that has completed successfully.
- •OBJECT