订阅草稿-SubscriptionDraft 对象
表示订阅草稿。
所需的访问
read_own_subscription_contracts 访问范围。
在本页面
Connections
- 折扣(
[SubscriptionDiscountConnection!](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptiondiscount))
与订阅合同相关的订阅折扣列表。 
| 参数 | 描述 | 
|---|---|
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列表中的最后一个元素。 | 
reverse() [Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01) | 
颠倒基础列表的顺序。 默认值: false | 
- 折扣贴(
[SubscriptionDiscountConnection!](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptiondiscount))
要添加到订购合同中的订购折扣列表。 
| 参数 | 描述 | 
|---|---|
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列表中的最后一个元素。 | 
reverse() [Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01) | 
颠倒基础列表的顺序。 默认值: false | 
- 折扣已移除(
[SubscriptionDiscountConnection!](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptiondiscount))
要从订购合同中删除的订购折扣列表。 
| 参数 | 描述 | 
|---|---|
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列表中的最后一个元素。 | 
reverse() [Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01) | 
颠倒基础列表的顺序。 默认值: false | 
- 折扣已更新(
[SubscriptionDiscountConnection!](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptiondiscount))
订阅合同上要更新的订阅折扣列表。 
| 参数 | 描述 | 
|---|---|
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列表中的最后一个元素。 | 
reverse() [Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01) | 
颠倒基础列表的顺序。 默认值: false | 
- 行(
[SubscriptionLineConnection!](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptionline))
将与订阅合同关联的订阅行列表。 
| 参数 | 描述 | 
|---|---|
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列表中的最后一个元素。 | 
reverse() [Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01) | 
颠倒基础列表的顺序。 默认值: false | 
- 线路收藏夹(
[SubscriptionLineConnection!](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptionline))
要添加到订阅合同中的订阅行列表。 
| 参数 | 描述 | 
|---|---|
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列表中的最后一个元素。 | 
reverse() [Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01) | 
颠倒基础列表的顺序。 默认值: false | 
- linesRemoved(
[SubscriptionLineConnection!](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptionline))
要从订阅合同中删除的订阅行列表。 
| 参数 | 描述 | 
|---|---|
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列表中的最后一个元素。 | 
reverse() [Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01) | 
颠倒基础列表的顺序。 默认值: false | 
字段
- billingPolicy(
[SubscriptionBillingPolicy!](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptionbillingpolicy))
订阅合同的计费政策。 - currencyCode(
[CurrencyCode!](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/currencycode))
订阅合约所使用的货币。 - customer(
[Customer!](https://shopify.dev/docs/admin-api/graphql/reference/customers/customer))
订阅合同所属的客户。 - customerPaymentMethod(
[CustomerPaymentMethod](https://shopify.dev/docs/admin-api/graphql/reference/customers/customerpaymentmethod))
订阅合同使用的客户付款方式。 
| 参数 | 描述 | 
|---|---|
showRevoked() [Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01) | 
是否显示客户被撤销的付款方式。 默认值: false | 
- deliveryMethod(
[SubscriptionDeliveryMethod](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptiondeliverymethod))
订阅合同每次开票的交付方式。 - deliveryPolicy(
[SubscriptionDeliveryPolicy!](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptiondeliverypolicy))
订阅合同的交付策略。 - deliveryPrice(
[MoneyV2](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/moneyv2))
每个结算订阅合同的交货价格。 - id(
[ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01))
全局唯一标识符。 - nextBillingDate(
[DateTime](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01))
订阅合同的下一个结算日期。 - originalContract(
[SubscriptionContract](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptioncontract))
原始订阅合同。 - shippingOptions(
[SubscriptionShippingOptionResult](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptionshippingoptionresult))
给定收货地址的可用送货选项。对于未决请求,返回NULL。 
| 参数 | 描述 | 
|---|---|
deliveryAddress() [MailingAddressInput](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/mailingaddressinput) | 
要将订购合同交付到的地址。 | 
- status(
[SubscriptionContractSubscriptionStatus](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptioncontractsubscriptionstatus))
订阅合同的当前状态。 
返回SubscriptionDraft的类型
[QueryRoot.subscriptionDraft](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/queryroot#subscriptiondraft-2021-01)
订阅草稿的变异
- subscriptionDraftCommit
提交订阅合同草稿的更新。 - subscriptionDraftDiscountAdd
为订阅草稿添加订阅折扣。 - subscriptionDraftDiscountCodeApply
在订阅草稿上应用代码折扣。 - subscriptionDraftDiscountRemove
从订阅草稿中删除订阅折扣。 - subscriptionDraftDiscountUpdate
更新订阅草稿的订阅折扣。 - subscriptionDraftFreeShippingDiscountAdd
将订购免费送货折扣添加到订购草稿中。 - subscriptionDraftFreeShippingDiscountUpdate
在订阅草稿上更新订阅免费送货折扣。 - subscriptionDraftLineAdd
将订阅行添加到订阅草稿。 - subscriptionDraftLineRemove
从订阅草稿中删除订阅行。 - subscriptionDraftLineUpdate
在订阅草稿上更新订阅行。 - subscriptionDraftUpdate
更新订阅草稿。 
派生关系
[Node](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/node)
