--- title: CartLineCost - Storefront API description: The cost of the merchandise line that the buyer will pay at checkout. api_version: 2025-10 api_name: storefront type: object api_type: graphql source_url: html: 'https://shopify.dev/docs/api/storefront/latest/objects/CartLineCost' md: 'https://shopify.dev/docs/api/storefront/latest/objects/CartLineCost.md' --- # Cart​Line​Cost object The cost of the merchandise line that the buyer will pay at checkout. ## Fields * amount​Per​Quantity [Money​V2!](https://shopify.dev/docs/api/storefront/latest/objects/MoneyV2) non-null The amount of the merchandise line. * compare​At​Amount​Per​Quantity [Money​V2](https://shopify.dev/docs/api/storefront/latest/objects/MoneyV2) The compare at amount of the merchandise line. * subtotal​Amount [Money​V2!](https://shopify.dev/docs/api/storefront/latest/objects/MoneyV2) non-null The cost of the merchandise line before line-level discounts. * total​Amount [Money​V2!](https://shopify.dev/docs/api/storefront/latest/objects/MoneyV2) non-null The total cost of the merchandise line. *** ## Map ### Fields with this object * ||-[BaseCartLine.cost](https://shopify.dev/docs/api/storefront/latest/interfaces/BaseCartLine#fields-cost) * {}[CartLine.cost](https://shopify.dev/docs/api/storefront/latest/objects/CartLine#field-CartLine.fields.cost) * {}[ComponentizableCartLine.cost](https://shopify.dev/docs/api/storefront/latest/objects/ComponentizableCartLine#field-ComponentizableCartLine.fields.cost)