Skip to main content
Anchor to SubscriptionContract

SubscriptionContract

object

A Subscription Contract.

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

•SubscriptionDiscountConnection

The list of subscription discounts associated with the subscription contract.

Arguments

•Int

The first n elements from the paginated list.

•String

The elements that come after the specified cursor.

•Int

The last n elements from the paginated list.

•String

The elements that come before the specified cursor.

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

•SubscriptionContractLastPaymentStatus

The current status of the last payment.

•SubscriptionLineConnection!
non-null

A list of subscription lines associated with the subscription contract.

Arguments

•Int

The first n elements from the paginated list.

•String

The elements that come after the specified cursor.

•Int

The last n elements from the paginated list.

•String

The elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.


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

Arguments

•Int

The first n elements from the paginated list.

•String

The elements that come after the specified cursor.

•Int

The last n elements from the paginated list.

•String

The elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.


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

Arguments

•Int

The first n elements from the paginated list.

•String

The elements that come after the specified cursor.

•Int

The last n elements from the paginated list.

•String

The elements that come before the specified cursor.

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


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


•mutation

Cancels a Subscription Contract.

Arguments

Anchor to subscriptionContractIdsubscriptionContractId
•ID!
required

The ID of the Subscription Contract to cancel.


•mutation

Pauses a Subscription Contract.

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.

Arguments

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.

•SubscriptionDeliveryMethodInput!
required

The delivery method selected for the subscription contract.



Was this section helpful?


Was this section helpful?