---
title: "DiscountAllocation"
description: "An amount discounting the line that has been allocated by a discount."
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/common-objects/objects/discount-allocation'
  md: 'https://developer.shopline.com/docs/storefront-api/common-objects/objects/discount-allocation.md'
---
# DiscountAllocation

An amount discounting the line that has been allocated by a discount.

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

## Type Signature

`DiscountAllocation`

## Fields

* `allocatedAmount`

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

  Amount of discount allocated.

* `discountApplication`

  [DiscountApplication](https://developer.shopline.com/docs/storefront-api/common-objects/objects/discount-application.md)

  The discount this allocated amount originated from.

## Schema Definition

```graphql
type DiscountAllocation { 
	allocatedAmount: Money
	discountApplication: DiscountApplication 
}
```

## Field from

* [CheckoutLineItem](https://developer.shopline.com/docs/storefront-api/checkouts/objects/checkout-line-item.md).discountAllocations

  The discounts that have been allocated onto the checkout line item by discount applications.

* [Checkout](https://developer.shopline.com/docs/storefront-api/checkouts/objects/checkout.md).shippingDiscountAllocations

  The discounts that have been allocated onto the shipping line by discount applications.

## 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).

