Skip to main content
Anchor to SubscriptionManualDiscount

SubscriptionManualDiscount

object

Requires the read_own_subscription_contracts or write_own_subscription_contracts scope.

Custom subscription discount.

•SubscriptionDiscountEntitledLines!non-null

Entitled line items used to apply the subscription discount on.

•ID!non-null

The unique ID.

•Int

The maximum number of times the subscription discount will be applied on orders.

•SubscriptionDiscountRejectionReason

The reason that the discount on the subscription draft is rejected.

•DiscountTargetType!non-null

Type of line the discount applies on.

•String

The title associated with the subscription discount.

•DiscountType!non-null

The type of the subscription discount.

•Int!non-null

The number of times the discount was applied.

•SubscriptionDiscountValue!non-null

The value of the subscription discount.


Was this section helpful?

•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

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

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.


Was this section helpful?
OSZAR »