用于创建或更新基本代码折扣的输入字段。
Fields
code ● String!non-null
折扣码。
usageLimit ● Int
折扣可使用的最大次数。若为 null 或不传,则表示不限制总共使用次数。
取值范围:1-99,999,999
customerSelection ● DiscountCustomerSelectionInput
指定可参与此折扣的客户范围。在更新操作中,若为 null 或不传,则保持原值不变。
More
startsAt ● Date
折扣开始的日期和时间。
title ● String
折扣的标题。
appliesTimesPerCustomer ● Int
每个客户可使用该折扣的最大次数。若为 null 或不传,则表示不限制使用次数。
取值范围:1-99,999,999
endsAt ● Date
折扣结束的日期和时间。若为 null 或不传,则表示该折扣无到期时间。
combinesWith ● DiscountCombinesWithInput
该折扣可叠加使用的折扣类型。若为 null、空对象({})或不传,则该折扣不与其他折扣叠加。
More
customerGets ● DiscountCustomerGetsInput
订单中符合条件的商品、每件商品的数量以及折扣总价值。
More
minimumRequirement ● DiscountMinimumRequirementInput
折扣所需的最少商品数量或最小订单小计。若为 null 或不传,则表示无门槛。
More
这篇文章对你有帮助吗?