Requires write_discounts access scope.
An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
A Buy X get Y (BXGY) code discount will be created.
Arguments
bxgyCodeDiscount ● DiscountCodeBxgyInput!non-null
Input fields for creating a Buy X Get Y discount code.
More
Return
codeDiscountNode ● DiscountCodeNode
The created code discount.
More
userErrors ● [DiscountUserError!]!non-null
The list of errors that occurred from executing the mutation.
More
Status and error codes
For detailed information about common codes, see Status and error codes.
Was this article helpful to you?