Stripe pins each account, and many SDK setups, to an API version. Level 2 and Level 3 fields only exist from one version on.
The rule
- Stripe, Understand the Visa Commercial Enhanced Data Program and Stripe changelog, Adds support for payment line items: payment line items on the PaymentIntent arrived with API version 2025-10-29.clover.
- Later options build on it: opting out of strict arithmetic validation came with 2026-01-28.clover (Stripe changelog, opt out of strict arithmetic validation).
- Stripe lets you set the version per request with the
Stripe-Versionheader, so you can move these calls without upgrading everything at once.
Why it happens
The account default stays on the version from when the integration was built, and the code that adds amount_details runs on it.
Wrong and right
Wrong: line items on an older pinned version
Stripe-Version: 2025-03-31.basil{
"amount": 10058,
"currency": "usd",
"amount_details": { "tax": { "total_tax_amount": 658 }, "line_items": [ { "product_name": "Hex bolts 3/8 in, zinc", "quantity": 200, "unit_cost": 35 } ] }
}Right: the same body on 2025-10-29.clover or later
Stripe-Version: 2025-10-29.cloverWhat to do
- Check your account's default version and the version your SDK sends.
- Set
Stripe-Versionon the create, confirm, update and capture calls that carry line items. - Read the changelog between your version and 2025-10-29.clover before switching: other fields change too.
Sources
- Stripe changelog, Adds support for payment line items (read November 24, 2026).
- Stripe changelog, opt out of strict arithmetic validation.
Run this sale through the checker.
The sale from this page is already filled in. Press Check transaction, then change it to one of your own. No account needed.