Skip to main content
Anchor to SubscriptionContract

SubscriptionContract

object

Requires the read_own_subscription_contracts or write_own_subscription_contracts scope.

Represents a Subscription Contract.

Anchor to Fields and connectionsFields and connections

•App

The subscription app that the subscription contract is registered to.

•URL

The URL of the subscription contract page on the subscription app.

•SubscriptionBillingAttemptConnection!non-null

The list of billing attempts associated with the 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 that's used for the subscription contract.

•[Attribute!]!non-null

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

•Customer

The customer to whom the subscription contract belongs.

Anchor to customerPaymentMethodcustomerPaymentMethod
•CustomerPaymentMethod

The customer payment method that's used for the subscription contract.

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

•SubscriptionManualDiscountConnection!non-null

The list of subscription discounts associated with the subscription contract.

•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

The 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. This field is managed by the apps. Alternatively you can utilize our Billing Cycles APIs, which provide auto-computed billing dates and additional functionalities.

•String

The note field that will be applied to the generated orders.

•OrderConnection!non-null

A list of the subscription contract's orders.

•Order

The order from which this contract originated.

•UnsignedInt64!non-null

The revision id of the contract.

•SubscriptionContractSubscriptionStatus!non-null

The current status of the subscription contract.

•DateTime!non-null

The date and time when the subscription contract was updated.

•Int!non-nullDeprecated

Was this section helpful?

•query

Returns a Subscription Contract resource by ID.

•query

List Subscription Contracts.


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.


Fields

•SubscriptionContract

The new Subscription Contract object.

•[SubscriptionContractStatusUpdateUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Creates a Subscription Contract.

Arguments

•SubscriptionContractAtomicCreateInput!required

The properties of the new Subscription Contract.


Fields

•SubscriptionContract

The new Subscription Contract object.

•[SubscriptionDraftUserError!]!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.


Fields

•SubscriptionContract

The new Subscription Contract object.

•[SubscriptionContractStatusUpdateUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Expires a Subscription Contract.

Arguments

Anchor to subscriptionContractIdsubscriptionContractId
•ID!required

The ID of the Subscription Contract.


Fields

•SubscriptionContract

The new Subscription Contract object.

•[SubscriptionContractStatusUpdateUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Fails a Subscription Contract.

Arguments

Anchor to subscriptionContractIdsubscriptionContractId
•ID!required

The ID of the Subscription Contract.


Fields

•SubscriptionContract

The new Subscription Contract object.

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


Fields

•SubscriptionContract

The new Subscription Contract object.

•[SubscriptionContractStatusUpdateUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Allows for the easy change of a Product in a Contract or a Product price change.

Arguments

•SubscriptionContractProductChangeInput!required

The properties of the Product changes.

•ID!required

The gid of the Subscription Line to update.

Anchor to subscriptionContractIdsubscriptionContractId
•ID!required

The ID of the subscription contract.


Fields

•SubscriptionContract

The new Subscription Contract object.

•SubscriptionLine

The updated Subscription Line.

•[SubscriptionDraftUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Sets the next billing date of a Subscription Contract. This field is managed by the apps. Alternatively you can utilize our Billing Cycles APIs, which provide auto-computed billing dates and additional functionalities.

Arguments

•ID!required

The gid of the Subscription Contract to set the next billing date for.

•DateTime!required

The next billing date.


Fields

•SubscriptionContract

The updated Subscription Contract object.

•[SubscriptionContractUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Commits the updates of a Subscription Contract draft.

Arguments

•ID!required

The gid of the Subscription Contract draft to commit.


Fields

•SubscriptionContract

The updated Subscription Contract object.

•[SubscriptionDraftUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?


Was this section helpful?