discountAutomaticBxgyUpdate - admin-graphql - MUTATION
Version: 2025-01
Description:
Updates an existing Buy X, Get Y (BXGY) automatic discount.
Access Scopes
Apps must have `write_discounts` access scope.
Arguments
-
automaticBxgyDiscount:
DiscountAutomaticBxgyInput! -
The input data used to update the automatic discount.
-
id:
ID! -
The ID of the automatic discount to update.
Returns
-
automaticDiscountNode:
DiscountAutomaticNode
The updated automatic discount.
-
userErrors:
DiscountUserError!
The list of errors that occurred from executing the mutation.
Examples