Skip to content
Saleor
Esc
↑↓navigate↵open⌘Jpreview

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

SaleInput Input Type

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

Fields

name

name · String

Voucher name.

type

type · DiscountValueTypeEnum

Fixed or percentage.

value

value · PositiveDecimal

Value of the voucher.

products

products · [ID!]

Products related to the discount.

variants

variants · [ID!]

categories

categories · [ID!]

Categories related to the discount.

collections

collections · [ID!]

Collections related to the discount.

startDate

startDate · DateTime

Start date of the voucher in ISO 8601 format.

endDate

endDate · DateTime

End date of the voucher in ISO 8601 format.

Used by


Schema: Saleor 3.23.43. Download SDL.

Last updated on April 13, 2026

Was this page helpful?