Skip to main content
Anchor to SubscriptionContract

SubscriptionContract

object

Requires the read_own_subscription_contracts or write_own_subscription_contracts scope.

A Subscription Contract.

•SubscriptionBillingPolicy!
non-null

The billing policy associated with the subscription contract.

Show fields
•DateTime!
non-null

The date and time when the subscription contract was created.

•CurrencyCode!
non-null

The currency used for the subscription contract.

Show enum values
•[Attribute!]!
non-null

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

Show fields
•SubscriptionDeliveryMethod

The delivery method for each billing of the subscription contract.

Show union types
•SubscriptionDeliveryPolicy!
non-null

The delivery policy associated with the subscription contract.

Show fields
•MoneyV2!
non-null

The delivery price for each billing of the subscription contract.

Show fields
•SubscriptionDiscountConnection

The list of subscription discounts associated with the subscription contract.

Show fields

Arguments

•String

The elements that come after the specified cursor.

•String

The elements that come before the specified cursor.

•Int

The first n elements from the paginated list.

•Int

The last n elements from the paginated list.

•Boolean
Default:false

Reverse the order of the underlying list.


•ID!
non-null

A globally-unique ID.

Anchor to lastBillingAttemptErrorTypelastBillingAttemptErrorType
•SubscriptionContractLastBillingErrorType

The last billing error type of the contract.

Show enum values
•SubscriptionContractLastPaymentStatus

The current status of the last payment.

Show enum values
•SubscriptionLineConnection!
non-null

A list of subscription lines associated with the subscription contract.

Show fields

Arguments

•String

The elements that come after the specified cursor.

•String

The elements that come before the specified cursor.

•Int

The first n elements from the paginated list.

•Int

The last n elements from the paginated list.

•Boolean
Default:false

Reverse the order of the underlying list.


•Count

The number of lines associated with the subscription contract.

Show fields
•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.

Show fields

Arguments

•String

The elements that come after the specified cursor.

•String

The elements that come before the specified cursor.

•Int

The first n elements from the paginated list.

•Int

The last n elements from the paginated list.

•Boolean
Default:false

Reverse the order of the underlying list.


•Order

The order from which the contract originated.

Show fields
•UnsignedInt64!
non-null

The revision ID of the contract.

•SubscriptionContractSubscriptionStatus!
non-null

The current status of the subscription contract.

Show enum values
Anchor to upcomingBillingCyclesupcomingBillingCycles
•SubscriptionBillingCycleConnection!
non-null

The upcoming billing cycles on the subscription contract.

Show fields

Arguments

•String

The elements that come after the specified cursor.

•String

The elements that come before the specified cursor.

•Int

The first n elements from the paginated list.

•Int

The last n elements from the paginated list.

•Boolean
Default:false

Reverse the order of the underlying list.

•SubscriptionBillingCyclesSortKeys
Default:CYCLE_INDEX

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

Show enum values

•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.

Show payload

Arguments

Anchor to subscriptionContractIdsubscriptionContractId
•ID!
required

The ID of the subscription contract to activate.


•mutation

Cancels a Subscription Contract.

Show payload

Arguments

Anchor to subscriptionContractIdsubscriptionContractId
•ID!
required

The ID of the Subscription Contract to cancel.


•mutation

Pauses a Subscription Contract.

Show payload

Arguments

Anchor to subscriptionContractIdsubscriptionContractId
•ID!
required

The ID of the subscription contract to pause.


•mutation

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

Show payload

Arguments

•SubscriptionDeliveryMethodInput!
required

The delivery method selected for the subscription contract.

Show input fields
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.



Was this section helpful?

•interface

Was this section helpful?