Skip to main content
Anchor to SubscriptionDraftUserError

SubscriptionDraftUserError

object

Requires read_own_subscription_contracts access scope.

Represents a Subscription Draft error.

•

The error code.

•

The path to the input field that caused the error.

•
String!non-null

The error message.


Was this section helpful?

•
mutation

Commits the updates of a Subscription Billing Cycle Contract draft.

Arguments

•
ID!required

The gid of the Subscription Contract draft to commit.


Fields

•

The committed Subscription Billing Cycle Edited Contract object.

•

The list of errors that occurred from executing the mutation.

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

Arguments

•

The properties of the new Subscription Contract.


Fields

•

The new 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

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

Arguments

•

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

•

The new Subscription Contract object.

•

The updated Subscription Line.

•

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

Commits the updates of a Subscription Contract draft.

Arguments

•
ID!required

The gid of the Subscription Contract draft to commit.


Fields

•

The updated 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?


Was this section helpful?