---
title: "flashSaleCampaign"
description: "Query the flash sale campaign using the campaign ID."
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/common-objects/queries/flash-sale-campaign'
  md: 'https://developer.shopline.com/docs/storefront-api/common-objects/queries/flash-sale-campaign.md'
---
# flashSaleCampaign

Query the flash sale campaign using the campaign ID. 

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

## Type Signature

`FlashSaleInfo`

## Arguments

* `id`

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

  The unique ID of the flash sale campaign. 

## Returns

* `endsAt`

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

  The date and time when the campaign ends

* `flashSaleInfoByVariant`

  [[FlashSaleItem]](https://developer.shopline.com/docs/storefront-api/common-objects/objects/flash-sale-item.md)

  The information of product variants the campaign applies to. Limit the returned information to 50 products at most

* `id`

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

  The unique ID of the flash sale campaign

* `productLabelText`

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

  The text of Product image label for the campaign

* `seoHandleUrl`

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

  The URL used for viewing the campaign products on the shop's Online Store. Returns null if the campaign does not generate a landing page.

* `startsAt`

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

  The date and time when the campaign starts

* `title`

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

  The title of the campaign

## Code Example

```graphql
 {
	flashSaleCampaign(id ) 
		 {
			# FlashSaleInfo 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).

