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.


•mutation

Concatenates a contract to a Subscription Draft.

Arguments

•ID!
required

The gid of the Subscription Contract draft to update.

Anchor to concatenatedBillingCycleContractsconcatenatedBillingCycleContracts
•[SubscriptionBillingCycleInput!]!
required

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


•mutation

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

Arguments

•SubscriptionBillingCycleInput!
required

Input object for selecting and using billing cycles.


•mutation

Creates a Subscription Contract.

Arguments

•SubscriptionContractAtomicCreateInput!
required

The properties of the new Subscription Contract.


•mutation

Creates a subscription contract draft, which is an intention to create a new subscription. The draft lets you incrementally build and modify subscription details before committing them to create the actual SubscriptionContract.

The mutation requires Customer information, billing details, and contract configuration including the SubscriptionBillingPolicy and SubscriptionDeliveryPolicy. You can specify the CustomerPaymentMethod, the MailingAddress for shipping, and subscription intervals.

After you create the draft, you can either modify it with the subscriptionDraftUpdate mutation or finalize and create the active subscription contract with subscriptionDraftCommit.

Learn more about building subscription contracts.

Arguments

•SubscriptionContractCreateInput!
required

The properties of the new Subscription Contract.


•mutation

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

Arguments

Anchor to subscriptionContractIdsubscriptionContractId
•ID!
required

The ID of the subscription contract.

•ID!
required

The gid of the Subscription Line to update.

•SubscriptionContractProductChangeInput!
required

The properties of the Product changes.


•mutation

Creates a draft of an existing SubscriptionContract. The draft captures the current state of the contract and allows incremental modifications through draft mutations such as subscriptionDraftLineAdd, subscriptionDraftDiscountAdd, and subscriptionDraftUpdate.

Changes remain in draft state and don't affect the live contract until committed. After you've made all necessary changes to the draft, commit it using subscriptionDraftCommit to apply the updates to the original contract.

Learn more about updating subscription contracts.

Arguments

•ID!
required

The gid of the Subscription Contract to update.


•mutation

Commits the updates of a Subscription Contract draft.

Arguments

•ID!
required

The gid of the Subscription Contract draft to commit.


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


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


•mutation

Removes a subscription discount from a subscription draft.

Arguments

•ID!
required

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

•ID!
required

The gid of the subscription draft discount to remove.


•mutation

Updates a subscription discount on a subscription draft.

Arguments

•ID!
required

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

•ID!
required

The gid of the Subscription Discount to update.

•SubscriptionManualDiscountInput!
required

The properties to update on the Subscription Discount.


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


•mutation

Updates a subscription free shipping discount on a subscription draft.

Arguments

•ID!
required

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

•ID!
required

The gid of the Subscription Discount to update.

•SubscriptionFreeShippingDiscountInput!
required

The properties to update on the Subscription Free Shipping Discount.


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


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


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

•ID!
required

The gid of the Subscription Line to update.

•SubscriptionLineUpdateInput!
required

The properties of the new Subscription Line.


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



Was this section helpful?


Was this section helpful?