You can use common objects to access common Discounts Allocator API objects. ## In this section * Attribute — A custom property. Attributes are used to store additional information about a Shopify resource, such as products, customers, or orders. Attributes are stored as key-value pairs. For example, a list of attributes might include whether a customer is a first-time buyer (`'customer_first_order': 'true'`), whether an order is gift-wrapped (`'gift_wrapped': 'true'`), a preferred delivery date (`'preferred_delivery_date': '2025-10-01'`), the discount applied (`'loyalty_discount_applied': '10%'`), and any notes provided by the customer (`'customer_notes': 'Please leave at the front door'`). * BuyerIdentity — Information about the customer that’s interacting with the cart. It includes details such as the customer’s email and phone number, and the total amount of money the customer has spent in the store. This information helps personalize the checkout experience and ensures that accurate pricing and delivery options are displayed to customers. * Cart — The cart where the Function is running. A cart contains the merchandise that a customer intends to purchase and information about the customer, such as the customer’s email address and phone number. * CartCost — A breakdown of the costs that the customer will pay at checkout. It includes the total amount, the subtotal before taxes and duties, the tax amount, and duty charges. * CartDeliveryGroup — Information about items in a cart that are grouped by shared delivery characteristics. Delivery groups streamline fulfillment by organizing items that can be shipped together, based on the customer’s shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. * CartDeliveryOption — Information about a delivery option that’s available for an item in a cart. Delivery options are the different ways that customers can choose to have their orders shipped. Examples include express shipping or standard shipping. * CartLine — Information about an item in a cart that a customer intends to purchase. A cart line is an entry in the customer’s cart that represents a single unit of a product variant. For example, if a customer adds two different sizes of the same t-shirt to their cart, then each size is represented as a separate cart line. * CartLineCost — The cost of an item in a cart that the customer intends to purchase. Cart lines are entries in the customer’s cart that represent a single unit of a product variant. For example, if a customer adds two different sizes of the same t-shirt to their cart, then each size is represented as a separate cart line. * CartLineTarget — * CollectionMembership — Whether the product is in the specified collection. A collection is a group of products that can be displayed in online stores and other sales channels in categories, which makes it easy for customers to find them. For example, an athletics store might create different collections for running attire and accessories. * Company — Represents information about a company which is also a customer of the shop. * CompanyContact — A company’s main point of contact. * CompanyLocation — A company’s location. * Country — The country for which the store is customized, reflecting local preferences and regulations. Localization might influence the language, currency, and product offerings available in a store to enhance the shopping experience for customers in that region. * CountryCode — The code designating a country/region, which generally follows ISO 3166-1 alpha-2 guidelines. If a territory doesn’t have a country code value in the `CountryCode` enum, then it might be considered a subdivision of another country. For example, the territories associated with Spain are represented by the country code `ES`, and the territories associated with the United States of America are represented by the country code `US`. * CurrencyCode — The three-letter currency codes that represent the world currencies used in stores. Currency codes include [standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. * CustomProduct — A custom product represents a product that doesn’t map to Shopify’s [standard product categories](https://help.shopify.com/manual/products/details/product-type). For example, you can use a custom product to manage gift cards, shipping requirements, localized product information, or weight measurements and conversions. * Customer — Represents a [customer](https://help.shopify.com/manual/customers/manage-customers) who has an [account](https://help.shopify.com/manual/customers/customer-accounts) with the store. `Customer` returns data including the customer’s contact information and order history. * DeliverableCartLine — Represents information about the merchandise in the cart. * DeliveryMethod — List of different delivery method types. * Discount — * DiscountApplicationStrategy — The approach that determines how multiple discounts are evaluated and applied to a cart. You can apply all discounts with conditions that are met, apply a discount only to the first line item in a cart that meets conditions, or apply only the discount that offers a maximum price reduction. * DiscountClass — List of the classes of discounts. * DiscountProposal — The input object for the Function. * FixedAmount — A fixed amount value. * GateConfiguration — Represents a gate configuration. * GateSubject — Represents a connection from a subject to a gate configuration. * HasGates — Gate subjects associated to the specified resource. * HasMetafields — Represents information about the metafields associated to the specified resource. * HasTagResponse — Whether a Shopify resource, such as a product or customer, has a specified tag. * Language — The language for which the store is customized, ensuring content is tailored to local customers. This includes product descriptions and customer communications that resonate with the target audience. * LanguageCode — Language codes supported by Shopify. * LineDiscount — * LocalTime — The current time based on the [store’s timezone setting](https://help.shopify.com/manual/intro-to-shopify/initial-setup/setup-business-settings). * Localization — Details about the localized experience for the store in a specific region, including country and language settings. The localized experience is determined by the store’s settings and the customer’s location. Localization ensures that customers can access relevant content and options while browsing or purchasing products in a store. * LocalizedField — Represents the value captured by a localized field. Localized fields are additional fields required by certain countries on international orders. For example, some countries require additional fields for customs information or tax identification numbers. * LocalizedFieldKey — Unique key identifying localized fields. * MailingAddress — Represents a mailing address. * Market — A market is a group of one or more regions that you want to target for international sales. By creating a market, you can configure a distinct, localized shopping experience for customers from a specific area of the world. For example, you can [change currency](https://shopify.dev/api/admin-graphql/current/mutations/marketCurrencySettingsUpdate), [configure international pricing](https://shopify.dev/api/examples/product-price-lists), or [add market-specific domains or subfolders](https://shopify.dev/api/admin-graphql/current/objects/MarketWebPresence). * MarketRegion — Represents a region. * MarketRegionCountry — A country which comprises a market. * Merchandise — The item that a customer intends to purchase. Merchandise can be a product variant or a custom product. A product variant is a specific version of a product that comes in more than one option, such as size or color. For example, if a merchant sells t-shirts with options for size and color, then a small, blue t-shirt would be one product variant and a large, blue t-shirt would be another. A custom product represents a product that doesn’t map to Shopify’s [standard product categories](https://help.shopify.com/manual/products/details/product-type). For example, you can use a custom product to manage gift cards, shipping requirements, localized product information, or weight measurements and conversions. * Metafield — [Custom fields](https://shopify.dev/docs/apps/build/custom-data) that store additional information about a Shopify resource, such as products, orders, and [many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType). Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries) enables you to customize the checkout experience. * MoneyV2 — A precise monetary value and its associated currency. For example, 12.99 USD. * OutputAllocations — * Percentage — A percentage value. * Product — The goods and services that merchants offer to customers. Products can include details such as title, vendor, and custom data stored in [metafields](https://shopify.dev/docs/apps/build/custom-data). Products can be organized by grouping them into a collection. Learn more about [managing products in a merchant’s store](https://help.shopify.com/manual/products). * ProductVariant — A specific version of a product that comes in more than one option, such as size or color. For example, if a merchant sells t-shirts with options for size and color, then a small, blue t-shirt would be one product variant and a large, blue t-shirt would be another. * PurchasingCompany — The company of a B2B customer that’s interacting with the cart. Used to manage and track purchases made by businesses rather than individual customers. * SellingPlan — Represents how products and variants can be sold and purchased. * SellingPlanAllocation — Represents an association between a variant and a selling plan. Selling plan allocations describe the options offered for each variant, and the price of the variant when purchased with a selling plan. * SellingPlanAllocationPriceAdjustment — The resulting prices for variants when they’re purchased with a specific selling plan. * Shop — Information about the store, including the store’s timezone setting and custom data stored in [metafields](https://shopify.dev/docs/apps/build/custom-data). * Value — The value of the discount. The value can be a fixed amount, like $5 (5.0), or a percentage, such as 10% (0.1). * WeightUnit — Units of measurement for weight.