Skip to main content
Anchor to discountAutomaticBasicUpdate

discountAutomaticBasicUpdate

mutation

Requires Apps must have write_discounts access scope.

Updates an existing amount off discount that's automatically applied on a cart and at checkout.


Note

To update code discounts, use the discountCodeBasicUpdate mutation instead.


Anchor to automaticBasicDiscountautomaticBasicDiscount
DiscountAutomaticBasicInput!required

The input data used to update the automatic amount off discount.

ID!required

The ID of the automatic amount off discount to update.


Was this section helpful?

Anchor to DiscountAutomaticBasicUpdatePayload returnsDiscountAutomaticBasicUpdatePayload returns

Anchor to automaticDiscountNodeautomaticDiscountNode
DiscountAutomaticNode

The automatic discount that was updated.

[DiscountUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?