Skip to main content
Version: 3.x

VoucherCode

Represents voucher code.

Added in Saleor 3.18
This API is currently in Feature Preview and can be subject to changes at later point.
type VoucherCode {
id: ID!
code: String
used: Int
isActive: Boolean
createdAt: DateTime!
}

Fields

VoucherCode.id ● ID! non-null scalar

The ID of the voucher code.

VoucherCode.code ● String scalar

Code to use the voucher.

VoucherCode.used ● Int scalar

Number of times a code has been used.

VoucherCode.isActive ● Boolean scalar

Whether a code is active or not.

VoucherCode.createdAt ● DateTime! non-null scalar

Date time of code creation.

Member of

VoucherCodeCountableEdge object


Was this page helpful?