---
title: "CartDiscountAllocation"
description: "CartDiscountAllocation"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/cart/objects/cart-discount-allocation'
  md: 'https://developer.shopline.com/docs/storefront-api/cart/objects/cart-discount-allocation.md'
---
# CartDiscountAllocation

CartDiscountAllocation

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`CartDiscountAllocation`

## Fields

* `code`

  [String!](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  code

* `discountedAmount`

  [Money](https://developer.shopline.com/docs/storefront-api/common-objects/objects/money.md)

  discountedAmount

## Schema Definition

```graphql
type CartDiscountAllocation { 
	code: String!
	discountedAmount: Money 
}
```

## Field from

* [CartLine](https://developer.shopline.com/docs/storefront-api/cart/objects/cart-line.md).discountAllocations

  The discounts that have been applied to the cart line.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes).

