# DiscountCode - admin-graphql - UNION Version: 2024-10 ## Description The type of discount associated with the discount code. For example, the discount code might offer a basic discount of a fixed percentage, or a fixed amount, on specific products or the order. Alternatively, the discount might offer the customer free shipping on their order. A third option is a Buy X, Get Y (BXGY) discount, which offers a customer discounts on select products if they add a specific product to their order. ### Access Scopes Apps must have `read_discounts` access scope. ## Possible types * [DiscountCodeApp](/docs/api/admin-graphql/2024-10/objects/DiscountCodeApp) * [DiscountCodeBasic](/docs/api/admin-graphql/2024-10/objects/DiscountCodeBasic) * [DiscountCodeBxgy](/docs/api/admin-graphql/2024-10/objects/DiscountCodeBxgy) * [DiscountCodeFreeShipping](/docs/api/admin-graphql/2024-10/objects/DiscountCodeFreeShipping) ## Fields with this union * [DiscountCodeNode.codeDiscount](/docs/api/admin-graphql/2024-10/objects/DiscountCodeNode) ## Examples