Action RequiredAdmin GraphQL API2024-04
shippingLine.discountedPriceSet now includes cart level discounts
As of version 2024-07 in the GraphQL Admin API, the and
fields of the object
will include cart level discounts applied to an order, including the free shipping discount, when calculating the discounted price.
Previously, you would have had to subtract the
from
or
to get an accurate value, but doing so now will subtract the same discount twice.
Learn more about Shipping Lines on Shopify.dev.
Was this section helpful?