--- title: DiscountCustomerBuys - GraphQL Admin description: >- The prerequisite items and prerequisite value that a customer must have on the order for the discount to be applicable. api_version: 2024-10 api_name: admin type: object api_type: graphql source_url: html: >- https://shopify.dev/docs/api/admin-graphql/2024-10/objects/DiscountCustomerBuys md: >- https://shopify.dev/docs/api/admin-graphql/2024-10/objects/DiscountCustomerBuys.txt --- # Discount​Customer​Buys object Requires Apps must have `read_discounts` access scope. The prerequisite items and prerequisite value that a customer must have on the order for the discount to be applicable. ## Fields * items [Discount​Items!](https://shopify.dev/docs/api/admin-graphql/2024-10/unions/DiscountItems) non-null The items required for the discount to be applicable. * value [Discount​Customer​Buys​Value!](https://shopify.dev/docs/api/admin-graphql/2024-10/unions/DiscountCustomerBuysValue) non-null The prerequisite value. *** ## Map ### Fields with this object * {}[DiscountAutomaticBxgy.customerBuys](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/DiscountAutomaticBxgy#field-customerBuys) * {}[DiscountCodeBxgy.customerBuys](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/DiscountCodeBxgy#field-customerBuys)