订单级折扣适用于草稿订单-DraftOrderAppliedDiscount 对象

订单级折扣适用于草稿订单。

所需的访问

read_draft_orders 访问范围。


在本页面


字段

  • amountV2[MoneyV2!](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/moneyv2)
    贴现金额。
  • description[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
    订单级别折扣的描述。
  • tile[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
    订单级折扣的名称。
  • value[Float!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#float-2021-01)
    订单级别折扣的金额(当value_type为百分比时,此字段中的值为折扣百分比)。
  • valueType[DraftOrderAppliedDiscountType!](https://shopify.dev/docs/admin-api/graphql/reference/orders/draftorderapplieddiscounttype)
    订单级别折扣的类型。


返回DraftOrderAppliedDiscount的类型

  • [CalculatedDraftOrder.appliedDiscount](https://shopify.dev/docs/admin-api/graphql/reference/orders/calculateddraftorder#applieddiscount-2021-01)
  • [CalculatedDraftOrderLineItem.appliedDiscount](https://shopify.dev/docs/admin-api/graphql/reference/orders/calculateddraftorderlineitem#applieddiscount-2021-01)
  • [DraftOrder.appliedDiscount](https://shopify.dev/docs/admin-api/graphql/reference/orders/draftorder#applieddiscount-2021-01)
  • [DraftOrderLineItem.appliedDiscount](https://shopify.dev/docs/admin-api/graphql/reference/orders/draftorderlineitem#applieddiscount-2021-01)