Stripe Checkout says “the product tax code is missing”
If Checkout fails with Invalid line_items[0]: the product tax code is missing (often followed by “Product tax code is required for Managed Payments, which is enabled by default on your account”), Stripe Managed Payments is active for that session and requires an eligible product tax code for each item sold through a Managed Payments Checkout Session or Payment Link. Start with the line item in the error and identify how your integration creates it. Stripe’s eligibility rules
stripe products list --limit 100 into our Stripe Managed Payments Tax-Code Checker → to flag every missing or ineligible tax_code and search all 76 eligible codes. Runs client-side only; nothing is uploaded.
Did not intend to use Stripe as merchant of record for this session? You can opt out per Checkout Session by passing managed_payments[enabled]=false (or review your account’s Managed Payments setting in the Stripe Dashboard). See unsupported parameters and per-session opt-out. Otherwise, keep Managed Payments on and assign an eligible tax code:
- Existing Price ID. In Stripe’s Product catalog, open the product attached to the Price. Edit the product and choose the code that describes what you sell. The Dashboard labels codes eligible for Managed Payments.
- Inline product. If your Checkout integration creates a new product via
line_items[].price_data.product_data, supply the appropriatetax_codethere. Stripe’s Checkout API reference - Verify in a Stripe sandbox. Recreate the affected Checkout flow with the same kind of line items and check that it reaches the payment page. Repeat for each managed Checkout path that uses the product. Stripe’s Checkout setup and testing steps
If the code is present and Checkout still fails, compare it against Stripe’s current eligible-code list and verify you’re inspecting the same Stripe account and mode as the failing request. Check supported product categories before proceeding if you sell physical goods, consulting, or live in-person events. If Checkout instead rejects incompatible parameters (such as automatic_tax, payment_method_types, or shipping_address_collection), see unsupported parameters and per-session opt-out.
Check catalog products automatically (browser or CLI)
For a quick offline check without creating an API key, paste your product list JSON into the browser Tax-Code Checker. To check specific Stripe Product IDs from a terminal or CI, use mp-doctor (MIT, Node.js 18+, zero dependencies). It sends only read-only GET requests using a restricted Stripe key (Products: Read and Prices: Read) and flags missing or ineligible tax_code values, archived products, and prices with unspecified tax_behavior. Both tools check catalog products only—not inline price_data.product_data items. Need a written async review of redacted mp-doctor --json output? See our request-only audit page.
Moving from Lemon Squeezy?
Use the Lemon Squeezy migration checklist and our 11 Migration Hub gotchas to plan customer communication, handle subscriptions that require manual action, and test your new billing setup.