Skip to main content

VoucherCode

A redeemable code belonging to a voucher.

type VoucherCode implements Node {
id: ID!
code: String!
used: Int!
isActive: Boolean!
createdAt: DateTime!
}

Fields​

VoucherCode.id ● ID! non-null scalar​

The Globally Unique ID of this object

VoucherCode.code ● String! non-null scalar​

The code value.

VoucherCode.used ● Int! non-null scalar​

Number of times this code was used.

VoucherCode.isActive ● Boolean! non-null scalar​

Whether the code can still be redeemed.

VoucherCode.createdAt ● DateTime! non-null scalar​

When the code was created.

Interfaces​

Node interface​

An object with a Globally Unique ID

Member Of​

VoucherCodeCountableEdge object

Was this page helpful?