Skip to main content

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 miscellaneous

The ID of the voucher code.

VoucherCode.code ● String scalar miscellaneous

Code to use the voucher.

VoucherCode.used ● Int scalar miscellaneous

Number of times a code has been used.

VoucherCode.isActive ● Boolean scalar miscellaneous

Whether a code is active or not.

VoucherCode.createdAt ● DateTime! non-null scalar miscellaneous

Date time of code creation.

Member Of

VoucherCodeCountableEdge object ● VoucherCodesCreated object ● VoucherCodesDeleted object