订阅专线-SubscriptionLine 对象

表示订阅行。

所需的访问

需要all_subscription_contracts或own_subscription_contracts范围。


在本页面


字段

  • currentPrice([MoneyV2!](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/moneyv2)
    订阅行的合同货币单位价格。
  • customAttributes([[Attribute!]!](https://shopify.dev/docs/admin-api/graphql/reference/orders/attribute)
    与订单项关联的自定义属性列表。
  • DiscountAllocations([[SubscriptionDiscountAllocation!]!](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptiondiscountallocation)
    折扣分配。
  • id([ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01)
    唯一标识符。
  • lineDiscountedPrice([MoneyV2!](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/moneyv2)
    总线价,包括所有折扣。
  • pricingPolicy([SubscriptionPricingPolicy](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptionpricingpolicy)
    描述该线随时间的价格变化。
  • productId([ID](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01)
    与订阅行关联的产品ID。
  • quantity([Int!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)
    为订购行选择的单位数量。
  • requireShipping([Boolean!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01)
    该变体是否需要物理运输。
  • sellingPlanId([ID](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01)
    与该行关联的销售计划ID。
    指示最初使用哪个销售计划创建此合同行。销售计划ID还用于查找关联的交货资料。
    订阅合同,订阅行或销售计划可能已更改。结果,销售计划的属性可能与合同上的信息不匹配。
  • sellingPlanName([String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
    与该行关联的销售计划名称。此名称描述了从此订阅行为商人和客户创建的订单行项目。
    该值可以不同于销售计划的名称,因为销售计划的名称和订阅行的selling_plan_name属性都可以独立更新。
  • sku([String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
    与订阅行关联的项目的变体SKU编号。
  • taxable([Boolean!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01)
    该变式是否应税。
  • title([String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
    与订阅行关联的项目的产品标题。
  • variantId([ID](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01)
    与订阅行关联的产品变体ID。
  • variantImage([Image](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/image)
    与订单项的变体或产品相关的图像。
  • variantTitle([String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
    与订阅行关联的项目的产品变体标题。


返回SubscriptionLine的类型

  • [SubscriptionContract.lines](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptioncontract#lines-2021-01)
  • [SubscriptionDiscountEntitledLines.lines](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptiondiscountentitledlines#lines-2021-01)
  • [SubscriptionDraft.lines](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptiondraft#lines-2021-01)
  • [SubscriptionDraft.linesAdded](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptiondraft#linesadded-2021-01)
  • [SubscriptionDraft.linesRemoved](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptiondraft#linesremoved-2021-01)

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


在本页面


字段

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

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


在本页面


字段

  • cursor([String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
    用于分页的光标。
  • node([SubscriptionLine!](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptionline)
    SubscriptionLineEdge末尾的项目。


返回SubscriptionLineEdge的类型

  • [SubscriptionLineConnection.edges](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptionline#edges-2021-01)