---
title: Sale Object
seo:
  title: Sale Object
  description: 'Object: Sale Object'
slug: api-reference/discounts/objects/sale
sidebar:
  label: Sale
search:
  tags:
    - API reference
    - Discounts
lastModified: '2026-04-13'
---

Sales allow creating discounts for categories, collections or products and are visible to all the customers.

DEPRECATED: this type will be removed. Use `Promotion` type instead.



```graphql
type Sale implements Node & ObjectWithMetadata {
  id: ID!
  privateMetadata: [MetadataItem!]!
  privateMetafield(key: String!): String
  privateMetafields(keys: [String!]): Metadata
  metadata: [MetadataItem!]!
  metafield(key: String!): String
  metafields(keys: [String!]): Metadata
  name: String!
  type: SaleType!
  startDate: DateTime!
  endDate: DateTime
  created: DateTime!
  updatedAt: DateTime!
  categories(before: String, after: String, first: Int, last: Int): CategoryCountableConnection
  collections(before: String, after: String, first: Int, last: Int): CollectionCountableConnection
  products(before: String, after: String, first: Int, last: Int): ProductCountableConnection
  variants(before: String, after: String, first: Int, last: Int): ProductVariantCountableConnection
  translation(languageCode: LanguageCodeEnum!): SaleTranslation
  channelListings: [SaleChannelListing!]
  discountValue: Float
  currency: String
}
```


## Interfaces

[`Node`](/api-reference/miscellaneous/interfaces/node), [`ObjectWithMetadata`](/api-reference/miscellaneous/interfaces/object-with-metadata)

## Fields

### id [#id]

**`id`** · [`ID!`](/api-reference/miscellaneous/scalars/id)

The ID of the sale.
### privateMetadata [#private-metadata]

**`privateMetadata`** · [`[MetadataItem!]!`](/api-reference/miscellaneous/objects/metadata-item)

List of private metadata items. Requires staff permissions to access.
### privateMetafield [#private-metafield]

**`privateMetafield`** · [`String`](/api-reference/miscellaneous/scalars/string)

A single key from private metadata. Requires staff permissions to access.

Tip: Use GraphQL aliases to fetch multiple keys.

#### key [#sale-private-metafield-key]

**`key`** · [`String!`](/api-reference/miscellaneous/scalars/string)


### privateMetafields [#private-metafields]

**`privateMetafields`** · [`Metadata`](/api-reference/miscellaneous/scalars/metadata)

Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.

#### keys [#sale-private-metafields-keys]

**`keys`** · [`[String!]`](/api-reference/miscellaneous/scalars/string)


### metadata [#metadata]

**`metadata`** · [`[MetadataItem!]!`](/api-reference/miscellaneous/objects/metadata-item)

List of public metadata items. Can be accessed without permissions.
### metafield [#metafield]

**`metafield`** · [`String`](/api-reference/miscellaneous/scalars/string)

A single key from public metadata.

Tip: Use GraphQL aliases to fetch multiple keys.

#### key [#sale-metafield-key]

**`key`** · [`String!`](/api-reference/miscellaneous/scalars/string)


### metafields [#metafields]

**`metafields`** · [`Metadata`](/api-reference/miscellaneous/scalars/metadata)

Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.

#### keys [#sale-metafields-keys]

**`keys`** · [`[String!]`](/api-reference/miscellaneous/scalars/string)


### name [#name]

**`name`** · [`String!`](/api-reference/miscellaneous/scalars/string)

The name of the sale.
### type [#type]

**`type`** · [`SaleType!`](/api-reference/discounts/enums/sale-type)

Type of the sale, fixed or percentage.
### startDate [#start-date]

**`startDate`** · [`DateTime!`](/api-reference/miscellaneous/scalars/date-time)

The start date and time of the sale.
### endDate [#end-date]

**`endDate`** · [`DateTime`](/api-reference/miscellaneous/scalars/date-time)

The end date and time of the sale.
### created [#created]

**`created`** · [`DateTime!`](/api-reference/miscellaneous/scalars/date-time)

The date and time when the sale was created.
### updatedAt [#updated-at]

**`updatedAt`** · [`DateTime!`](/api-reference/miscellaneous/scalars/date-time)

The date and time when the sale was updated.
### categories [#categories]

**`categories`** · [`CategoryCountableConnection`](/api-reference/products/objects/category-countable-connection)

List of categories this sale applies to.

#### before [#sale-categories-before]

**`before`** · [`String`](/api-reference/miscellaneous/scalars/string)

Return the elements in the list that come before the specified cursor.

#### after [#sale-categories-after]

**`after`** · [`String`](/api-reference/miscellaneous/scalars/string)

Return the elements in the list that come after the specified cursor.

#### first [#sale-categories-first]

**`first`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

#### last [#sale-categories-last]

**`last`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.
### collections [#collections]

**`collections`** · [`CollectionCountableConnection`](/api-reference/products/objects/collection-countable-connection)

List of collections this sale applies to.



Requires one of the following permissions: `MANAGE_DISCOUNTS`.



#### before [#sale-collections-before]

**`before`** · [`String`](/api-reference/miscellaneous/scalars/string)

Return the elements in the list that come before the specified cursor.

#### after [#sale-collections-after]

**`after`** · [`String`](/api-reference/miscellaneous/scalars/string)

Return the elements in the list that come after the specified cursor.

#### first [#sale-collections-first]

**`first`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

#### last [#sale-collections-last]

**`last`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.
### products [#products]

**`products`** · [`ProductCountableConnection`](/api-reference/products/objects/product-countable-connection)

List of products this sale applies to.



Requires one of the following permissions: `MANAGE_DISCOUNTS`.



#### before [#sale-products-before]

**`before`** · [`String`](/api-reference/miscellaneous/scalars/string)

Return the elements in the list that come before the specified cursor.

#### after [#sale-products-after]

**`after`** · [`String`](/api-reference/miscellaneous/scalars/string)

Return the elements in the list that come after the specified cursor.

#### first [#sale-products-first]

**`first`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

#### last [#sale-products-last]

**`last`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.
### variants [#variants]

**`variants`** · [`ProductVariantCountableConnection`](/api-reference/products/objects/product-variant-countable-connection)

List of product variants this sale applies to.



Requires one of the following permissions: `MANAGE_DISCOUNTS`.



#### before [#sale-variants-before]

**`before`** · [`String`](/api-reference/miscellaneous/scalars/string)

Return the elements in the list that come before the specified cursor.

#### after [#sale-variants-after]

**`after`** · [`String`](/api-reference/miscellaneous/scalars/string)

Return the elements in the list that come after the specified cursor.

#### first [#sale-variants-first]

**`first`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

#### last [#sale-variants-last]

**`last`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.
### translation [#translation]

**`translation`** · [`SaleTranslation`](/api-reference/discounts/objects/sale-translation)

Returns translated sale fields for the given language code.

#### languageCode [#sale-translation-language-code]

**`languageCode`** · [`LanguageCodeEnum!`](/api-reference/miscellaneous/enums/language-code-enum)

A language code to return the translation for sale.
### channelListings [#channel-listings]

**`channelListings`** · [`[SaleChannelListing!]`](/api-reference/discounts/objects/sale-channel-listing)

List of channels available for the sale.



Requires one of the following permissions: `MANAGE_DISCOUNTS`.


### discountValue [#discount-value]

**`discountValue`** · [`Float`](/api-reference/miscellaneous/scalars/float)

Sale value.
### currency [#currency]

**`currency`** · [`String`](/api-reference/miscellaneous/scalars/string)

Currency code for sale.

## Used by

- [sale (queries)](/api-reference/deprecated/discounts/queries/sale)
- [SaleAddCatalogues (objects)](/api-reference/discounts/objects/sale-add-catalogues)
- [SaleChannelListingUpdate (objects)](/api-reference/discounts/objects/sale-channel-listing-update)
- [SaleCountableEdge (objects)](/api-reference/discounts/objects/sale-countable-edge)
- [SaleCreate (objects)](/api-reference/discounts/objects/sale-create)
- [SaleCreated (objects)](/api-reference/discounts/objects/sale-created)
- [SaleDelete (objects)](/api-reference/discounts/objects/sale-delete)
- [SaleDeleted (objects)](/api-reference/discounts/objects/sale-deleted)
- [SaleRemoveCatalogues (objects)](/api-reference/discounts/objects/sale-remove-catalogues)
- [SaleToggle (objects)](/api-reference/discounts/objects/sale-toggle)
- [SaleTranslatableContent (objects)](/api-reference/discounts/objects/sale-translatable-content)
- [SaleTranslate (objects)](/api-reference/discounts/objects/sale-translate)
- [SaleUpdate (objects)](/api-reference/discounts/objects/sale-update)
- [SaleUpdated (objects)](/api-reference/discounts/objects/sale-updated)

---

Schema: **Saleor 3.23.43**. [Download SDL](/schema/saleor.graphql).
