Skip to main content
Anchor to SubscriptionContract

SubscriptionContract

object

A Subscription Contract.

Anchor to Fields and connectionsFields and connections

•SubscriptionBillingPolicy!
non-null

The billing policy associated with the subscription contract.

•DateTime!
non-null

The date and time when the subscription contract was created.

•CurrencyCode!
non-null

The currency used for the subscription contract.

•[Attribute!]!
non-null

A list of custom attributes to be added to the generated orders.

•SubscriptionDeliveryMethod

The delivery method for each billing of the subscription contract.

•SubscriptionDeliveryPolicy!
non-null

The delivery policy associated with the subscription contract.

•MoneyV2!
non-null

The delivery price for each billing of the subscription contract.

•ID!

A globally-unique ID.

Anchor to lastBillingAttemptErrorTypelastBillingAttemptErrorType
•SubscriptionContractLastBillingErrorType

The last billing error type of the contract.

•SubscriptionContractLastPaymentStatus

The current status of the last payment.

•SubscriptionLineConnection!
non-null

A list of subscription lines associated with the subscription contract.

•Count

The number of lines associated with the subscription contract.

•DateTime

The next billing date for the subscription contract.

•String

A note that will be applied to the generated orders.

•OrderConnection!
non-null

A list of the subscription contract's orders.

•Order

The order from which the contract originated.

•UnsignedInt64!
non-null

The revision ID of the contract.

•SubscriptionContractSubscriptionStatus!
non-null

The current status of the subscription contract.

Anchor to upcomingBillingCyclesupcomingBillingCycles
•SubscriptionBillingCycleConnection!
non-null

The upcoming billing cycles on the subscription contract.

•DateTime!
non-null

The date and time when the subscription contract was updated.


Was this section helpful?

•mutation

Activates a Subscription Contract. Contract status must be either active, paused, or failed.

Arguments

Anchor to subscriptionContractIdsubscriptionContractId
•ID!
required

The ID of the subscription contract to activate.


Fields

•SubscriptionContract

The activated Subscription Contract.

•[SubscriptionContractStatusUpdateUserError!]!
non-null

The list of errors that occurred from executing the mutation.

•mutation

Cancels a Subscription Contract.

Arguments

Anchor to subscriptionContractIdsubscriptionContractId
•ID!
required

The ID of the Subscription Contract to cancel.


Fields

•SubscriptionContract

The canceled Subscription Contract.

•[SubscriptionContractStatusUpdateUserError!]!
non-null

The list of errors that occurred from executing the mutation.

•mutation

Pauses a Subscription Contract.

Arguments

Anchor to subscriptionContractIdsubscriptionContractId
•ID!
required

The ID of the subscription contract to pause.


Fields

•SubscriptionContract

The updated Subscription Contract after the pause operation.

•[SubscriptionContractStatusUpdateUserError!]!
non-null

The list of errors that occurred from executing the mutation.

•mutation

Selects an option from a delivery options result and updates the delivery method on a Subscription Contract.

Arguments

•SubscriptionDeliveryMethodInput!
required

The delivery method selected for the subscription contract.

Anchor to subscriptionContractIdsubscriptionContractId
•ID!
required

The ID of the subscription contract.

Anchor to subscriptionDeliveryOptionsResultTokensubscriptionDeliveryOptionsResultToken
•String!
required

The token associated with the successfully fetched delivery options result for the subscription contract.


Fields

•SubscriptionContract

The updated subscription contract object.

•[SubscriptionContractUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?


Was this section helpful?