---
title: "OrderDiscountAllocation"
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/zh-hans-cn/docs/storefront-api/common-objects/objects/order-discount-allocation'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/order-discount-allocation.md'
---
# OrderDiscountAllocation

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

`OrderDiscountAllocation`

## Fields

* `allocatedAmount`

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

  分配的折扣金额

## Schema Definition

```graphql
type OrderDiscountAllocation { 
	allocatedAmount: Money 
}
```

## Field from

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

  应用在商品行上的折扣信息

* [Order](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/order.md).shippingDiscountAllocations

  订单运费折扣信息

## Error Handling

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

