Skip to content

Commit 76f0d8d

Browse files
doc(orders): ORDERS-7176 new field comparisonShippingCost in SF Order API (#1103)
# [ORDERS-7176] ## What changed? new fields in SF Order API as implemented in bigcommerce/bigcommerce#65225: * `comparisonShippingCost` field in order root <img width="1598" height="1722" alt="SCR-20251008-l0w" src="https://github.com/user-attachments/assets/860688c7-8f1b-482d-9749-58a9627e0dcf" /> * `comparisonShippingCost` and `shippingCostBeforeDiscount` fields in `order.consignments.shipping` <img width="1440" height="1680" alt="SCR-20251008-l1e" src="https://github.com/user-attachments/assets/5ef1f2f8-b57a-47e4-b477-df9d94b889bd" /> ## Release notes draft N/A ## Anything else? None ping @bigcommerce/team-orders [ORDERS-7176]: https://bigcommercecloud.atlassian.net/browse/ORDERS-7176?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent a0d6eaa commit 76f0d8d

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

reference/orders.sf.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,18 @@ components:
146146
type: string
147147
description: Shopperʼs provided message for the order.
148148
shippingCostTotal:
149-
type: integer
149+
type: number
150150
shippingCostBeforeDiscount:
151-
type: integer
151+
type: number
152+
description: Estimated total shipping cost before any shipping discounts have been applied.
153+
comparisonShippingCost:
154+
type: number
155+
description: |
156+
The total shipping cost to be shown to shopper in the summary as struck-through.
157+
- If the entered-price and display-price have the same tax setting (e.g.: both are tax-inclusive), this field will be the estimated total shipping cost before any coupons applied (but after automatic promotions applied).
158+
- If the entered-price and display-price have different tax setting (e.g.: one is tax-inclusive, and one is tax-exclusive), this field will be the estimated total shipping cost before any discounts applied, similar to the `shippingCostBeforeDiscount`.
152159
handlingCostTotal:
153-
type: integer
160+
type: number
154161
customerCanBeCreated:
155162
type: boolean
156163
taxes:
@@ -907,6 +914,15 @@ components:
907914
costTaxClassId:
908915
type: integer
909916
example: 2
917+
shippingCostBeforeDiscount:
918+
type: number
919+
description: Estimated consignment shipping cost before any shipping discounts have been applied.
920+
comparisonShippingCost:
921+
type: number
922+
description: |
923+
The consignment shipping cost to be shown to shopper in the summary as struck-through.
924+
- If the entered-price and display-price have the same tax setting (e.g.: both are tax-inclusive), this field will be the estimated shipping cost before any coupons applied (but after automatic promotions applied).
925+
- If the entered-price and display-price have different tax setting (e.g.: one is tax-inclusive, and one is tax-exclusive), this field will be the estimated shipping cost before any discounts applied, similar to the `shippingCostBeforeDiscount`.
910926
baseHandlingCost:
911927
type: number
912928
example: 0.00
@@ -958,6 +974,8 @@ components:
958974
costIncTax: 16.7
959975
costTax: 1.2
960976
costTaxClassId: 2
977+
shippingCostBeforeDiscount: 17.5
978+
comparisonShippingCost: 16.5
961979
baseHandlingCost: 0
962980
handlingCostExTax: 0
963981
handlingCostIncTax: 0

0 commit comments

Comments
 (0)