Skip to main content
Anchor to DiscountAutomaticBxgyUpdatePayload

DiscountAutomaticBxgyUpdatePayload

payload

Return type for discountAutomaticBxgyUpdate mutation.

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?

Anchor to Mutations with this payloadMutations with this payload

•mutation

Updates an existing buy X get Y discount (BXGY) that's automatically applied on a cart and at checkout.


Note

To update code discounts, use the discountCodeBxgyUpdate mutation instead.


Arguments

•ID!
required

The ID of the automatic BXGY discount to update.

Anchor to automaticBxgyDiscountautomaticBxgyDiscount
•DiscountAutomaticBxgyInput!
required

The input data used to update the automatic BXGY discount.



Was this section helpful?