---
title: "flashSaleCampaignsByProduct"
description: "Query flash sale campaigns by product lists."
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/common-objects/queries/flash-sale-campaigns-by-product'
  md: 'https://developer.shopline.com/docs/storefront-api/common-objects/queries/flash-sale-campaigns-by-product.md'
---
# flashSaleCampaignsByProduct

Query flash sale campaigns by product lists.

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

## Type Signature

`FlashSaleCampaigns`

## Arguments

* `productIds`

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

  Product ID list, up to 100 product IDs can be passed in at a time

* `buyerId`

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

  Buyer ID

## Returns

* `flashSaleInfoByProduct`

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

  FlashSaleProduct

## Code Example

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

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

