运费折扣码-DiscountCodeFreeShipping object

运费优惠折扣码。

所需的访问

应用程序必须具有read_discounts访问范围。


在本页面


连接数

codes([DiscountRedeemCodeConnection!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountredeemcode))
折扣的兑换代码列表。

参数 描述
after
() [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
返回指定游标之后的元素。
before
() [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
返回指定游标之前的元素。
first
() [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)
返回n列表中的第一个元素。
last
() [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)
返回n列表中的最后一个元素。
query
() [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
支持的过滤器参数:
+ times_used
有关使用过滤器的更多信息,请参见详细的搜索语法。
reverse
() [Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01)
颠倒基础列表的顺序。
默认值:false
savedSearchId
() [ID](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01)
现有已保存搜索的ID。搜索的查询字符串用作查询参数。
sortKey
() [DiscountCodeSortKeys](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountcodesortkeys)
按给定键对基础列表进行排序。
默认值:ID

属性

  • applyOnOneTimePurchase([Boolean!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01))
    折扣是否适用于常规的一次性购买运输线路。
  • applyOnSubscription([Boolean!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01))
    折扣是否适用于订购运输线。
  • applyOncePerCustomer([Boolean!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01))
    每个客户是否只能享受一次折扣。
  • asyncUsageCount([Int!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01))
    使用折扣的次数。
  • codeCount([Int!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01))
    折扣的兑换代码数。
  • createdAt([DateTime!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01))
    创建折扣的日期和时间。
  • customerSelection([DiscountCustomerSelection!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountcustomerselection))
    可以使用折扣的客户。
  • destinationSelection([DiscountShippingDestinationSelection!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountshippingdestinationselection))
    有资格享受折扣的送货目的地。
  • endsAt([DateTime](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01))
    折扣结束的日期和时间。对于开放式折扣,请使用null。
  • hasTimelineComment([Boolean!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01))
    指示是否有关于折扣的时间表注释。
  • maximumShippingPrice([MoneyV2](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/moneyv2))
    可以享受折扣的最高运费。
  • minimumRequirement([DiscountMinimumRequirement](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountminimumrequirement))
    要应用折扣所需的最小小计或数量。
  • recurringCycleLimit([Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01))
    折扣适用于重复购买(订购)的次数。
  • shareableUrls([[DiscountShareableUrl!]!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountshareableurl))
    可用于共享折扣的URL。
  • shortSummary([String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
    折扣的简短摘要。
  • startsAt([DateTime!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01))
    折扣开始的日期和时间。
  • status([DiscountStatus!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountstatus))
    折扣的状态。
  • summary([String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
    折扣的详细摘要。
  • title([String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
    折扣的标题。
  • totalSales([MoneyV2](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/moneyv2))
    使用折扣的订单的总销售额。
  • usageLimit([Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01))
    可以使用折扣的最大次数。

DiscountCodeFreeShipping的mutation