自动计算应用折扣-CalculatedAutomaticDiscountApplication 对象

折扣代码应用程序可在将折扣代码应用于订单时捕获其意图。

所需的访问

read_order_edits 访问范围。


在本页面


字段

  • locationMethod([DiscountApplicationAllocationMethod!](https://shopify.dev/docs/admin-api/graphql/reference/orders/discountapplicationallocationmethod))
    折扣值分配给其应享项目的方法。
  • applyTo([DiscountApplicationLevel!](https://shopify.dev/docs/admin-api/graphql/reference/orders/discountapplicationlevel))
    应用折扣的级别。
  • description([String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
    折扣申请说明。指示应用折扣的原因。
  • id([ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01))
    全局唯一标识符。
  • targetSelection([DiscountApplicationTargetSelection!](https://shopify.dev/docs/admin-api/graphql/reference/orders/discountapplicationtargetselection))
    折扣金额如何在折扣行上分配。
  • targetType([DiscountApplicationTargetType!](https://shopify.dev/docs/admin-api/graphql/reference/orders/discountapplicationtargettype))
    折扣适用于行项目还是运输行。
  • value([PricingValue!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/pricingvalue))
    折扣应用程序的值。


派生关系

  • [CalculatedDiscountApplication](https://shopify.dev/docs/admin-api/graphql/reference/orders/calculateddiscountapplication)