---
title: "PurchaseLimitConfiguration"
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/purchase-limit-configuration'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/purchase-limit-configuration.md'
---
# PurchaseLimitConfiguration

客户购买数量限制设置

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

## Type Signature

`PurchaseLimitConfiguration`

## Fields

* `allowOversold`

  [Boolean](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/boolean.md)

  客户购买次数超出活动限购数量时，是否允许按照原价售卖

* `purchaseLimitQuantity`

  [Int](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/int.md)

  限购数量

* `purchaseLimitType`

  [Int](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/int.md)

  限购类型
  ● 0：无限购
  ● 1：限制每人每活动购买数量； 
  ● 2：限制每人每个商品购买数量
  ● 3：限制每人每个款式的购买数量

## Schema Definition

```graphql
type PurchaseLimitConfiguration { 
	allowOversold: Boolean
	purchaseLimitQuantity: Int
	purchaseLimitType: Int 
}
```

## Field from

* [FlashSaleCampaign](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/flash-sale-campaign.md).purchaseLimitConfiguration

  客户购买数量限制设置

## Error Handling

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

