Skip to main content
Version: 3.x

VoucherTranslatableContent

Represents voucher's original translatable fields and related translations.

type VoucherTranslatableContent implements Node {
id: ID!
name: String
translation(languageCode: LanguageCodeEnum!): VoucherTranslation
voucher: Voucher @deprecated
}

Fields

VoucherTranslatableContent.id ● ID! non-null scalar

The ID of the voucher translatable content.

VoucherTranslatableContent.name ● String scalar

Voucher name to translate.

VoucherTranslatableContent.translation ● VoucherTranslation object

Returns translated voucher fields for the given language code.

VoucherTranslatableContent.translation.languageCode ● LanguageCodeEnum! non-null enum

A language code to return the translation for voucher.

VoucherTranslatableContent.voucher ● Voucher deprecated object

DEPRECATED

This field will be removed in Saleor 4.0. Get model fields from the root level queries.

Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes.

Requires MANAGE_DISCOUNTSpermission.

Interfaces

Node interface

An object with an ID

Implemented by

TranslatableItem union


Was this page helpful?