折扣码Bxgy-DiscountCodeBxgy object

一个BXGY折扣码。

需要权限

Apps 必须拥有 读取折扣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

属性

  • 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))
    创建折扣的日期和时间。
  • customerBuys([DiscountCustomerBuys!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountcustomerbuys))
    客户必须购买的合格物品和每件的数量才能获得折扣。
  • customerGets([DiscountCustomerGets!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountcustomergets))
    订单中的合格项目,每个项目的数量以及折扣的总价值。
  • customerSelection([DiscountCustomerSelection!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountcustomerselection))
    可以使用折扣的客户。
  • 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))
    指示是否有关于折扣的时间表注释。
  • shareableUrls([[DiscountShareableUrl!]!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountshareableurl))
    可用于共享折扣的URL。
  • 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))
    可以使用折扣的最大次数。
  • UsesPerOrderLimit([Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01))
    折扣可应用于订单的最大次数。

DiscountCodeBxgy的mutation