Skip to main content
Anchor to DiscountCodeBxgyUpdatePayload

DiscountCodeBxgyUpdatePayload

payload

Return type for discountCodeBxgyUpdate mutation.

•DiscountCodeNode

The code 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 a buy X get Y discount (BXGY) that's applied on a cart and at checkout when a customer enters a code.


Note

To update discounts that are automatically applied on a cart and at checkout, use the discountAutomaticBxgyUpdate mutation.


Arguments

•ID!
required

The ID of the BXGY code discount to update.

•DiscountCodeBxgyInput!
required

The input data used to update the BXGY code discount.



Was this section helpful?