Skip to content

Commit fd39e6d

Browse files
committed
PROMO-1050 Add as_total field to shipping discount action
1 parent c66a71d commit fd39e6d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

reference/promotions.v3.yml

+6
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,12 @@ components:
831831
properties:
832832
discount:
833833
$ref: '#/components/schemas/Discount'
834+
as_total:
835+
type: boolean
836+
description: |-
837+
Set this value to true to distribute the discount as a total among shipping destinations. By default, the discount applies to each destination.
838+
Example: If set to false, the discount is $10 and you have 2 shipping destinations eligible for this discount, the shipping cost for both destinations will be discounted by $10, with a total of $20 off the order.
839+
If set to true, $10 will be distributed among the 2 shipping destinations, weighted by their respective price. In a case where there are 2 destinations sharing the same cost, each will be discounted by $5.
834840
method_ids:
835841
description: ''
836842
oneOf:

0 commit comments

Comments
 (0)