--- title: ScriptDiscountApplication - Customer API description: Captures the intentions of a discount that was created by a Shopify Script. api_version: 2025-01 api_name: customer type: object api_type: graphql source_url: html: https://shopify.dev/docs/api/customer/2025-01/objects/ScriptDiscountApplication md: https://shopify.dev/docs/api/customer/2025-01/objects/ScriptDiscountApplication.md --- # Script​Discount​Application object Captures the intentions of a discount that was created by a Shopify Script. ## Fields * allocation​Method [Discount​Application​Allocation​Method!](https://shopify.dev/docs/api/customer/2025-01/enums/DiscountApplicationAllocationMethod) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The method by which the discount's value is allocated to its entitled items. * target​Selection [Discount​Application​Target​Selection!](https://shopify.dev/docs/api/customer/2025-01/enums/DiscountApplicationTargetSelection) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The lines of targetType that the discount is allocated over. * target​Type [Discount​Application​Target​Type!](https://shopify.dev/docs/api/customer/2025-01/enums/DiscountApplicationTargetType) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The type of line that the discount is applicable towards. * title [String!](https://shopify.dev/docs/api/customer/2025-01/scalars/String) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The title of the application as defined by the Script. * value [Pricing​Value!](https://shopify.dev/docs/api/customer/2025-01/unions/PricingValue) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The value of the discount application. *** ## Map No referencing types *** ## Interfaces * [Discount​Application](https://shopify.dev/docs/api/customer/2025-01/interfaces/DiscountApplication) interface *** ## ||-ScriptDiscountApplication Implements ### Implements * ||-[Discount​Application](https://shopify.dev/docs/api/customer/2025-01/interfaces/DiscountApplication)