---
title: "DiscountAllocation"
description: "对已按折扣分配的行进行折扣的金额。"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/discount-allocation'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/discount-allocation.md'
---
# DiscountAllocation

对已按折扣分配的行进行折扣的金额。

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

## Type Signature

`DiscountAllocation`

## Fields

* `allocatedAmount`

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

  分配的折扣金额。

* `discountApplication`

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

  此分配金额的折扣来源

## Schema Definition

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

## Field from

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

  应用的运费折扣

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

  折扣应用程序已分配给结账行项目的折扣。

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes)。

