折扣代码共享Url 目的

折扣代码的共享URL。

所需的访问

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


在本页面


属性

  • targetItemImage[Image](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/image)
    折扣适用的商品(产品或收藏)的图片网址。
  • targetType[DiscountShareableUrlTargetType!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountshareableurltargettype)
    与URL关联的页面类型。
  • title[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
    与URL关联的页面的标题。
  • url[URL!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#url-2021-01)
    折扣代码的URL。

返回DiscountShareableUrl的类型

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