Skip to content
Stripe

Stripe line items and the API version: what to change

Stripe added payment line items, amount_details and payment_details, to the PaymentIntent in API version 2025-10-29.clover. An integration pinned to an older version is not on the version that defines these fields; send the Stripe-Version header 2025-10-29.clover or later on the requests that carry them.

Last reviewed Nov 24, 2026
On this page

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

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.clover

What to do

  1. Check your account's default version and the version your SDK sends.
  2. Set Stripe-Version on the create, confirm, update and capture calls that carry line items.
  3. Read the changelog between your version and 2025-10-29.clover before switching: other fields change too.

Sources

Check one transaction

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.

Allow analytics cookies? Privacy