Subscription Contract
A Subscription Contract.
Anchor to Fields and connectionsFields and connections
- Anchor to createdAtcreated•Date
At Time!non-null The date and time when the subscription contract was created.
- •ID!non-nullPre-auth accessible
A globally-unique ID.
- Anchor to lastPaymentStatuslast•Subscription
Payment Status Contract Last Payment Status The current status of the last payment.
- Anchor to nextBillingDatenext•Date
Billing Date Time The next billing date for the subscription contract.
- Anchor to originOrderorigin•Order
Order The order from which the contract originated.
- Anchor to revisionIdrevision•Unsigned
Id Int64!non-null The revision ID of the contract.
- Anchor to statusstatus•Subscription
Contract Subscription Status!non-null The current status of the subscription contract.
- Anchor to upcomingBillingCyclesupcoming•Subscription
Billing Cycles Billing Cycle Connection!non-null The upcoming billing cycles on the subscription contract.
Anchor to MutationsMutations
- •mutation
Activates a Subscription Contract. Contract status must be either active, paused, or failed.
- Anchor to subscriptionContractIdsubscription•ID!required
Contract Id The ID of the subscription contract to activate.
Arguments
- Anchor to contractcontract•Subscription
Contract The activated Subscription Contract.
Fields
- •mutation
Cancels a Subscription Contract.
- Anchor to subscriptionContractIdsubscription•ID!required
Contract Id The ID of the Subscription Contract to cancel.
Arguments
- Anchor to contractcontract•Subscription
Contract The canceled Subscription Contract.
Fields
- •mutation
Pauses a Subscription Contract.
- Anchor to subscriptionContractIdsubscription•ID!required
Contract Id The ID of the subscription contract to pause.
Arguments
- Anchor to contractcontract•Subscription
Contract The updated Subscription Contract after the pause operation.
Fields
- •mutation
Selects an option from a delivery options result and updates the delivery method on a Subscription Contract.
- Anchor to subscriptionContractIdsubscription•ID!required
Contract Id The ID of the subscription contract.
- Anchor to subscriptionDeliveryOptionsResultTokensubscription•String!required
Delivery Options Result Token The token associated with the successfully fetched delivery options result for the subscription contract.
Arguments
- Anchor to contractcontract•Subscription
Contract The updated subscription contract object.
Fields