Skip to main content

VoucherCode Object

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​

id ● ID!​

The ID of the voucher code.

code ● String​

Code to use the voucher.

used ● Int​

Number of times a code has been used.

isActive ● Boolean​

Whether a code is active or not.

createdAt ● DateTime!​

Date time of code creation.

Member Of​

VoucherCodeCountableEdge object ● VoucherCodesCreated object ● VoucherCodesDeleted object