From da74a839aa28060e9d4d0c06b20a1d1c6f46add6 Mon Sep 17 00:00:00 2001 From: Kevin Mao <94155782+kev-mao@users.noreply.github.com> Date: Thu, 20 Aug 2026 14:29:04 -0400 Subject: [PATCH] Update fulfillment and total amounts in discount spec example The mixed-discounts example in the discount extension shows a 599 free-shipping discount as both `discount: -599` and `fulfillment: 0`, with `total: 2601`. This double-counts the discount. Fixed by changing to `fulfillment: 599` and `total: 3200` as expected. --- docs/specification/discount.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/specification/discount.md b/docs/specification/discount.md index 033fc8e4c..9be9d83ec 100644 --- a/docs/specification/discount.md +++ b/docs/specification/discount.md @@ -502,8 +502,8 @@ to line items, and an automatic shipping discount at the order level. {"type": "subtotal", "display_text": "Subtotal", "amount": 4000}, {"type": "items_discount", "display_text": "Item Discounts", "amount": -800}, {"type": "discount", "display_text": "Order Discounts", "amount": -599}, - {"type": "fulfillment", "display_text": "Shipping", "amount": 0}, - {"type": "total", "display_text": "Total", "amount": 2601} + {"type": "fulfillment", "display_text": "Shipping", "amount": 599}, + {"type": "total", "display_text": "Total", "amount": 3200} ] } ```