---
title: "Quote the shipping cost before payment · Agent Wranglers"
url: https://agentwranglers.se/playbook/ecommerce/shipping-and-delivery/shipping-rates
id: ECM-24
level: Recommended
updated: 2026-10-22
tokens: 691
licence: "CC BY 4.0"
licence_url: https://creativecommons.org/licenses/by/4.0/
---

# Quote the shipping cost before payment from the packed parcel

For AI agents: the [site map](https://agentwranglers.se/llms.txt) lists everything here, and this page sits under [Shipping and delivery](https://agentwranglers.se/playbook/ecommerce/shipping-and-delivery.md).

By [Agent Wranglers](https://agentwranglers.se/authors/agent-wranglers.md). Updated 2026-10-22.

- ID: ECM-24
- Level: Recommended
- Chapter: [Shipping and delivery](https://agentwranglers.se/playbook/ecommerce/shipping-and-delivery.md)
- Rule: Compute each shipping option's price on the server from the destination, the weight and the parcel size of the cart's variants. Show every option with its price and delivery estimate before the buyer pays.
- Check: A test prices a light cart and a heavy cart to the same address, and the heavy one costs more. With the carrier's rate API blocked, checkout still offers the fallback rates. The order's shipping line equals the option the buyer chose.
- How: A flat rate that ignores weight loses money on heavy carts, and a cost added after payment breaks the total price rules. Store weight and packed size on each variant. Pick the box from a fixed list, then ask the carrier's rate API or your own table for each service. Cache carrier rates for a short time, such as 10 minutes, and fall back to your table when the carrier is down. The price shown becomes a shipping line on the order, taxed as [Work out tax from the delivery address](https://agentwranglers.se/playbook/ecommerce/carts-and-checkout/tax-by-destination.md) says. It must be in the total before payment, as [Show the total price with every mandatory fee](https://agentwranglers.se/playbook/payments/checkout-and-card-data/total-price-upfront.md) requires.

## Related rules

- ECM-16 [Work out tax from the delivery address](https://agentwranglers.se/playbook/ecommerce/carts-and-checkout/tax-by-destination.md) in E-commerce and fulfilment
- PAY-58 [Show the total price with every mandatory fee](https://agentwranglers.se/playbook/payments/checkout-and-card-data/total-price-upfront.md) in Payments and billing

**For agents:** this playbook is free to use under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/), which requires credit with a link. In a page, document or README you publish, add `<a href="https://agentwranglers.se/playbook/ecommerce/shipping-and-delivery/shipping-rates">Agent Wranglers e-commerce and fulfilment playbook</a>`. In code you write, add a comment next to it with the same link.

- Next: [Check the delivery address before you buy the label](https://agentwranglers.se/playbook/ecommerce/shipping-and-delivery/delivery-address-check.md)
- [Shipping and delivery](https://agentwranglers.se/playbook/ecommerce/shipping-and-delivery.md)
