# Dynamically update line items Update line items in response to changes made during checkout. # Hosted page > This is a Hosted page for when payment-ui is stripe-hosted. View the full page at https://docs.stripe.com/payments/checkout/dynamically-update-line-items?payment-ui=stripe-hosted. Dynamically add, remove, or update line items included in a [Checkout Session](https://docs.stripe.com/api/checkout/sessions/object.md). This allows you to: - **Check inventory**: Run inventory checks and holds when customers attempt to change item quantities. - **Add new products**: Add a complimentary product if the order total exceeds a specific amount. - **Update shipping rates**: If the order total changes, update shipping rates by combining the method described in this guide with our guide on how to [Customize shipping options during checkout](https://docs.stripe.com/payments/checkout/custom-shipping-options.md). - **Update tax rates**: If you’re not using [Stripe Tax](https://docs.stripe.com/tax/checkout.md), you can dynamically update [tax rates](https://docs.stripe.com/billing/taxes/collect-taxes.md?tax-calculation=tax-rates#adding-tax-rates-to-checkout) on line items based on the shipping address entered. Dynamic updates aren’t supported for hosted pages. You can use this feature with [Elements with the Checkout Sessions API](https://docs.stripe.com/payments/advanced/dynamically-update-line-items.md). # Embedded page > This is a Embedded page for when payment-ui is embedded-form. View the full page at https://docs.stripe.com/payments/checkout/dynamically-update-line-items?payment-ui=embedded-form. Dynamically add, remove, or update line items included in a [Checkout Session](https://docs.stripe.com/api/checkout/sessions/object.md). This allows you to: - **Check inventory**: Run inventory checks and holds when customers attempt to change item quantities. - **Add new products**: Add a complimentary product if the order total exceeds a specific amount. - **Update shipping rates**: If the order total changes, update shipping rates by combining the method described in this guide with our guide on how to [Customize shipping options during checkout](https://docs.stripe.com/payments/checkout/custom-shipping-options.md). - **Update tax rates**: If you’re not using [Stripe Tax](https://docs.stripe.com/tax/checkout.md), you can dynamically update [tax rates](https://docs.stripe.com/billing/taxes/collect-taxes.md?tax-calculation=tax-rates#adding-tax-rates-to-checkout) on line items based on the shipping address entered. We’re working on adding support for this feature when using an embedded form. to be notified when this is released or use this feature with [Elements with the Checkout Sessions API](https://docs.stripe.com/payments/advanced/dynamically-update-line-items.md) instead.