Stripe | Financial Infrastructure to Grow Your Revenue

Stripe | Financial Infrastructure to Grow Your Revenue

4466 articles

Dynamically update line items


Private preview

Dynamically update line items Private preview

Update line items in response to changes made during checkout.

Dynamically add, remove, or update line items included in a Checkout Session.

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 .
  • Update tax rates : If you’re not using Stripe Tax , you can dynamically update tax rates on line items based on the shipping address entered.

Dynamic updates aren’t supported for hosted pages. To dynamically update line items, use the embedded form or Elements with the Checkout Sessions API.

Last verified 2026-09-24

Is this helpful?