Skip to main content
object

Requires read_own_subscription_contracts access scope.

Represents a Subscription Draft.

Anchor to Fields and connectionsFields and connections

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

The billing policy for the subscription contract.

Anchor to concatenatedBillingCyclesconcatenatedBillingCycles

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

The currency used for the subscription contract.

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

The customer payment method used for the subscription contract.

The delivery method for each billing of the subscription contract.

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

The delivery policy for the subscription contract.

The delivery price for each billing the subscription contract.

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

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

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

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

ID!non-null

A globally-unique ID.

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

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

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

The next billing date for the subscription contract.

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

The original subscription contract.

The current status of the subscription contract.

Available Shipping Options for a given delivery address. Returns NULL for pending requests.


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

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

The Subscription Draft object.

The list of errors that occurred from executing the mutation.

mutation

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

Arguments

Input object for selecting and using billing cycles.


Fields

The draft subscription contract object.

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

The properties of the new Subscription Contract.


Fields

The Subscription Contract object.

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

The Subscription Contract object.

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.

The properties of the new Subscription Discount.


Fields

The added Subscription Discount.

The Subscription Contract draft object.

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

The added subscription discount.

The subscription contract draft object.

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

The removed subscription draft discount.

The subscription contract draft object.

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.

The properties to update on the Subscription Discount.


Fields

The updated Subscription Discount.

The Subscription Contract draft object.

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.

The properties of the new subscription free shipping discount.


Fields

The added subscription free shipping discount.

The subscription contract draft object.

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.

The properties to update on the Subscription Free Shipping Discount.


Fields

The updated Subscription Discount.

The Subscription Contract draft object.

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.

The properties of the new Subscription Line.


Fields

The Subscription Contract draft object.

The added Subscription Line.

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

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

The Subscription Contract draft object.

The removed Subscription Line.

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.

The properties of the new Subscription Line.

ID!required

The gid of the Subscription Line to update.


Fields

The Subscription Contract draft object.

The updated Subscription Line.

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.

The properties of the new Subscription Contract.


Fields

The Subscription Draft object.

The list of errors that occurred from executing the mutation.


Was this section helpful?

interface

Was this section helpful?
OSZAR »