Skip to main content
Anchor to SubscriptionDraftUserError

SubscriptionDraftUserError

object

Requires read_own_subscription_contracts access scope.

Represents a Subscription Draft error.

•SubscriptionDraftErrorCode

The error code.

•[String!]

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

•SubscriptionBillingCycleEditedContract

The committed Subscription Billing Cycle Edited Contract object.

•[SubscriptionDraftUserError!]!non-null

The list of errors that occurred from executing the mutation.

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

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

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

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

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

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.

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


Was this section helpful?
OSZAR »