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