---
title: "flashSaleCampaignsByProduct"
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/queries/flash-sale-campaigns-by-product'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/queries/flash-sale-campaigns-by-product.md'
---
# flashSaleCampaignsByProduct

根据商品列表查询限时活动

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

## Type Signature

`FlashSaleCampaigns`

## Arguments

* `productIds`

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

  商品ID列表，单次最多支持传入100个商品ID

* `buyerId`

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

  买家id

## Returns

* `flashSaleInfoByProduct`

  [[FlashSaleProduct]](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/flash-sale-product.md)

  商品列表的限时促销活动信息

## Code Example

```graphql
 {
	flashSaleCampaignsByProduct(productIds, buyerId ) 
		 {
			# FlashSaleCampaigns fields
		}
}
```

## Error Handling

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

