---
title: "flashSaleCampaign"
description: "根据活动id查询限时活动"
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-campaign'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/queries/flash-sale-campaign.md'
---
# flashSaleCampaign

根据活动id查询限时活动

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

## Type Signature

`FlashSaleInfo`

## Arguments

* `id`

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

  限时活动唯一id

## Returns

* `endsAt`

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

  活动结束时间

* `flashSaleInfoByVariant`

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

  活动适用的商品款式信息。限制最多返回50个活动商品

* `id`

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

  限时活动唯一id

* `productLabelText`

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

  商品活动标签的文案

* `seoHandleUrl`

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

  用于在网店查看活动商品信息的活动落地页链接。当活动未创建落地页时，返回null。

* `startsAt`

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

  活动开始时间

* `title`

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

  限时活动标题

## Code Example

```graphql
 {
	flashSaleCampaign(id ) 
		 {
			# FlashSaleInfo fields
		}
}
```

## Error Handling

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

