# DiscountCodeApplication - admin-graphql - OBJECT Version: 2024-10 ## Description Discount code applications capture the intentions of a discount code at the time that it is applied onto an order. Discount applications don't represent the actual final amount discounted on a line (line item or shipping line). The actual amount discounted on a line is represented by the [DiscountAllocation](https://shopify.dev/api/admin-graphql/latest/objects/discountallocation) object. ### Access Scopes ## Fields * [allocationMethod](/docs/api/admin-graphql/2024-10/enums/DiscountApplicationAllocationMethod): DiscountApplicationAllocationMethod! - The method by which the discount's value is applied to its entitled items. * [code](/docs/api/admin-graphql/2024-10/scalars/String): String! - The string identifying the discount code that was used at the time of application. * [index](/docs/api/admin-graphql/2024-10/scalars/Int): Int! - An ordered index that can be used to identify the discount application and indicate the precedence of the discount application for calculations. * [targetSelection](/docs/api/admin-graphql/2024-10/enums/DiscountApplicationTargetSelection): DiscountApplicationTargetSelection! - How the discount amount is distributed on the discounted lines. * [targetType](/docs/api/admin-graphql/2024-10/enums/DiscountApplicationTargetType): DiscountApplicationTargetType! - Whether the discount is applied on line items or shipping lines. * [value](/docs/api/admin-graphql/2024-10/unions/PricingValue): PricingValue! - The value of the discount application. ## Connections ## Related queries ## Related mutations ## Related Unions ## Examples