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

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

VoucherCode Object

Represents voucher code.

Added in Saleor 3.18
type VoucherCode {
  id: ID!
  code: String
  used: Int
  isActive: Boolean
  createdAt: DateTime!
}

Fields

id

id · ID!

The ID of the voucher code.

code

code · String

Code to use the voucher.

used

used · Int

Number of times a code has been used.

isActive

isActive · Boolean

Whether a code is active or not.

createdAt

createdAt · DateTime!

Date time of code creation.

Used by


Schema: Saleor 3.23.43. Download SDL.

Last updated on April 13, 2026

Was this page helpful?