Skip to main content
object

Requires read_own_subscription_contracts access scope.

Represents a Subscription Draft.

Anchor to Fields and connectionsFields and connections

SubscriptionBillingCycle

The billing cycle that the subscription contract will be associated with.

SubscriptionBillingPolicy!non-null

The billing policy for the subscription contract.

Anchor to concatenatedBillingCyclesconcatenatedBillingCycles
SubscriptionBillingCycleConnection!non-null

The billing cycles of the contracts that will be concatenated to the subscription contract.

CurrencyCode!non-null

The currency used for the subscription contract.

[Attribute!]!non-null

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

Customer!non-null

The customer to whom the subscription contract belongs.

Anchor to customerPaymentMethodcustomerPaymentMethod
CustomerPaymentMethod

The customer payment method used for the subscription contract.

SubscriptionDeliveryMethod

The delivery method for each billing of the subscription contract.

SubscriptionDeliveryOptionResult

The available delivery options for a given delivery address. Returns null for pending requests.

SubscriptionDeliveryPolicy!non-null

The delivery policy for the subscription contract.

MoneyV2

The delivery price for each billing the subscription contract.

SubscriptionDiscountConnection!non-null

The list of subscription discounts which will be associated with the subscription contract.

SubscriptionDiscountConnection!non-null

The list of subscription discounts to be added to the subscription contract.

SubscriptionDiscountConnection!non-null

The list of subscription discounts to be removed from the subscription contract.

SubscriptionDiscountConnection!non-null

The list of subscription discounts to be updated on the subscription contract.

ID!non-null

A globally-unique ID.

SubscriptionLineConnection!non-null

The list of subscription lines which will be associated with the subscription contract.

SubscriptionLineConnection!non-null

The list of subscription lines to be added to the subscription contract.

SubscriptionLineConnection!non-null

The list of subscription lines to be removed from the subscription contract.

DateTime

The next billing date for the subscription contract.

String

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

SubscriptionContract

The original subscription contract.

SubscriptionContractSubscriptionStatus

The current status of the subscription contract.


Was this section helpful?

query

Returns a Subscription Draft resource by ID.


Was this section helpful?

mutation

Concatenates a contract to a Subscription Draft.

Arguments

Anchor to concatenatedBillingCycleContractsconcatenatedBillingCycleContracts
[SubscriptionBillingCycleInput!]!required

An array of Subscription Contracts with their selected billing cycles to concatenate to the subscription draft.

ID!required

The gid of the Subscription Contract draft to update.


Fields

SubscriptionDraft

The Subscription Draft object.

[SubscriptionDraftUserError!]!non-null

The list of errors that occurred from executing the mutation.

mutation

Edit the contents of a subscription contract for the specified billing cycle.

Arguments

SubscriptionBillingCycleInput!required

Input object for selecting and using billing cycles.


Fields

SubscriptionDraft

The draft subscription contract object.

[SubscriptionDraftUserError!]!non-null

The list of errors that occurred from executing the mutation.

mutation

Creates a Subscription Contract Draft. You can submit all the desired information for the draft using Subscription Draft Input object. You can also update the draft using the Subscription Contract Update mutation. The draft is not saved until you call the Subscription Draft Commit mutation.

Arguments

SubscriptionContractCreateInput!required

The properties of the new Subscription Contract.


Fields

SubscriptionDraft

The Subscription Contract object.

[SubscriptionDraftUserError!]!non-null

The list of errors that occurred from executing the mutation.

mutation

The subscriptionContractUpdate mutation allows you to create a draft of an existing subscription contract. This draft can be reviewed and modified as needed. Once the draft is committed with subscriptionDraftCommit, the changes are applied to the original subscription contract.

Arguments

ID!required

The gid of the Subscription Contract to update.


Fields

SubscriptionDraft

The Subscription Contract object.

[SubscriptionDraftUserError!]!non-null

The list of errors that occurred from executing the mutation.

mutation

Adds a subscription discount to a subscription draft.

Arguments

ID!required

The ID of the Subscription Contract draft to add a subscription discount to.

SubscriptionManualDiscountInput!required

The properties of the new Subscription Discount.


Fields

SubscriptionManualDiscount

The added Subscription Discount.

SubscriptionDraft

The Subscription Contract draft object.

[SubscriptionDraftUserError!]!non-null

The list of errors that occurred from executing the mutation.

mutation

Applies a code discount on the subscription draft.

Arguments

ID!required

The gid of the subscription contract draft to apply a subscription code discount on.

String!required

Code discount redeem code.


Fields

SubscriptionAppliedCodeDiscount

The added subscription discount.

SubscriptionDraft

The subscription contract draft object.

[SubscriptionDraftUserError!]!non-null

The list of errors that occurred from executing the mutation.

mutation

Removes a subscription discount from a subscription draft.

Arguments

ID!required

The gid of the subscription draft discount to remove.

ID!required

The gid of the subscription contract draft to remove a subscription discount from.


Fields

SubscriptionDiscount

The removed subscription draft discount.

SubscriptionDraft

The subscription contract draft object.

[SubscriptionDraftUserError!]!non-null

The list of errors that occurred from executing the mutation.

mutation

Updates a subscription discount on a subscription draft.

Arguments

ID!required

The gid of the Subscription Discount to update.

ID!required

The ID of the Subscription Contract draft to update a subscription discount on.

SubscriptionManualDiscountInput!required

The properties to update on the Subscription Discount.


Fields

SubscriptionManualDiscount

The updated Subscription Discount.

SubscriptionDraft

The Subscription Contract draft object.

[SubscriptionDraftUserError!]!non-null

The list of errors that occurred from executing the mutation.

mutation

Adds a subscription free shipping discount to a subscription draft.

Arguments

ID!required

The ID of the subscription contract draft to add a subscription free shipping discount to.

SubscriptionFreeShippingDiscountInput!required

The properties of the new subscription free shipping discount.


Fields

SubscriptionManualDiscount

The added subscription free shipping discount.

SubscriptionDraft

The subscription contract draft object.

[SubscriptionDraftUserError!]!non-null

The list of errors that occurred from executing the mutation.

mutation

Updates a subscription free shipping discount on a subscription draft.

Arguments

ID!required

The gid of the Subscription Discount to update.

ID!required

The ID of the Subscription Contract draft to update a subscription discount on.

SubscriptionFreeShippingDiscountInput!required

The properties to update on the Subscription Free Shipping Discount.


Fields

SubscriptionManualDiscount

The updated Subscription Discount.

SubscriptionDraft

The Subscription Contract draft object.

[SubscriptionDraftUserError!]!non-null

The list of errors that occurred from executing the mutation.

mutation

Adds a subscription line to a subscription draft.

Arguments

ID!required

The gid of the Subscription Contract draft to add a subscription line to.

SubscriptionLineInput!required

The properties of the new Subscription Line.


Fields

SubscriptionDraft

The Subscription Contract draft object.

SubscriptionLine

The added Subscription Line.

[SubscriptionDraftUserError!]!non-null

The list of errors that occurred from executing the mutation.

mutation

Removes a subscription line from a subscription draft.

Arguments

ID!required

The gid of the Subscription Contract draft to remove a subscription line from.

ID!required

The gid of the Subscription Line to remove.


Fields

[SubscriptionManualDiscount!]

The list of updated subscription discounts impacted by the removed line.

SubscriptionDraft

The Subscription Contract draft object.

SubscriptionLine

The removed Subscription Line.

[SubscriptionDraftUserError!]!non-null

The list of errors that occurred from executing the mutation.

mutation

Updates a subscription line on a subscription draft.

Arguments

ID!required

The gid of the Subscription Contract draft to update a subscription line from.

SubscriptionLineUpdateInput!required

The properties of the new Subscription Line.

ID!required

The gid of the Subscription Line to update.


Fields

SubscriptionDraft

The Subscription Contract draft object.

SubscriptionLine

The updated Subscription Line.

[SubscriptionDraftUserError!]!non-null

The list of errors that occurred from executing the mutation.

mutation

Updates a Subscription Draft.

Arguments

ID!required

The gid of the Subscription Draft to update.

SubscriptionDraftInput!required

The properties of the new Subscription Contract.


Fields

SubscriptionDraft

The Subscription Draft object.

[SubscriptionDraftUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?

interface

Was this section helpful?