---
title: SaleInput Input Type
seo:
  title: SaleInput Input Type
  description: SaleInput Input Type - no description
slug: api-reference/discounts/inputs/sale-input
sidebar:
  label: SaleInput
search:
  tags:
    - API reference
    - Discounts
lastModified: '2026-04-13'
---

```graphql
input SaleInput {
  name: String
  type: DiscountValueTypeEnum
  value: PositiveDecimal
  products: [ID!]
  variants: [ID!]
  categories: [ID!]
  collections: [ID!]
  startDate: DateTime
  endDate: DateTime
}
```


## Fields

### name [#name]

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

Voucher name.
### type [#type]

**`type`** · [`DiscountValueTypeEnum`](/api-reference/discounts/enums/discount-value-type-enum)

Fixed or percentage.
### value [#value]

**`value`** · [`PositiveDecimal`](/api-reference/miscellaneous/scalars/positive-decimal)

Value of the voucher.
### products [#products]

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

Products related to the discount.
### variants [#variants]

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


### categories [#categories]

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

Categories related to the discount.
### collections [#collections]

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

Collections related to the discount.
### startDate [#start-date]

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

Start date of the voucher in ISO 8601 format.
### endDate [#end-date]

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

End date of the voucher in ISO 8601 format.

## Used by

- [saleCreate (mutations)](/api-reference/deprecated/discounts/mutations/sale-create)
- [saleUpdate (mutations)](/api-reference/deprecated/discounts/mutations/sale-update)

---

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