折扣兑换码 对象

兑换折扣码。

所需的访问

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


在本页面


属性

  • asyncUsageCount[Int!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)
    使用折扣的次数。该值是异步更新的,并且可以与实际使用次数不同。
  • code[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
    折扣代码。
  • createdBy[App](https://shopify.dev/docs/admin-api/graphql/reference/apps/app)
    创建折扣代码的应用程序。
  • id[ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01)
    折扣兑换代码的全球唯一标识符。

返回DiscountRedeemCode的类型

  • [DiscountCodeBasic.codes](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountcodebasic#codes-2021-01)
  • [DiscountCodeBxgy.codes](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountcodebxgy#codes-2021-01)
  • [DiscountCodeFreeShipping.codes](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountcodefreeshipping#codes-2021-01)

自动生成的类型,用于通过多个DiscountRedeemCodes分页。


在本页面


属性

  • edges[[DiscountRedeemCodeEdge!]!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountredeemcode)
    边列表。
  • pageInfo[PageInfo!](https://shopify.dev/docs/admin-api/graphql/reference/pageinfo)
    有助于分页的信息。

一种自动生成的类型,在分页期间包含一个DiscountRedeemCode和一个光标。


在本页面


属性

  • cursor[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
    用于分页的光标。
  • node[DiscountRedeemCode!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountredeemcode)
    DiscountRedeemCodeEdge末尾的项目。

返回DiscountRedeemCodeEdge的类型

  • [DiscountRedeemCodeConnection.edges](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountredeemcode#edges-2021-01)