Stripe resource_missing: The ID provided isn't valid
Stripe returns resource_missing when the ID you sent doesn't exist in the account and mode you're calling, or belongs to a different kind of object. Most often a test-mode ID is used with a live key (or the reverse), or the ID came from another Stripe account.
Cause: The ID (e.g. price_..., cus_...) doesn't exist for the API key's account and mode.
How to fix it
- Check which key the server uses (
sk_test_vssk_live_) and that the ID was created in that same mode. - Recreate products/prices in live mode and update the IDs in your env vars or config.
- Make sure you pass the right object type (a
price_ID where a price is expected, not aprod_ID). - If using Connect, confirm the request targets the right connected account.
Example
Illustrative example, not from a customer project.
- STRIPE_PRICE_ID=price_test123 # created in test mode
+ STRIPE_PRICE_ID=price_live456 # created in live mode
FAQ
Why does it work in test mode but not live?
Test and live mode objects are separate; IDs don't carry over.
What message accompanies it?
Stripe's error-code docs describe it as: the ID provided isn't valid; either the resource doesn't exist, or an ID for a different resource has been provided.
QUICK FIX · $49 · THIS ERROR ONLY
Get this exact error fixed — $49 Quick FixFixed within scope, or we keep working until it is · Read-only access Not sure it's this error? $149 diagnosis
- Fixed, or we keep working free until it is (within the written scope).
- A human reviews every fix before it ships.
- Read-only access; fixes arrive as pull requests you merge.
- Your $149 diagnosis is credited in full toward any paid job.
One error, one root cause, fixed in your app. If it turns out bigger, we tell you before doing more, and your $49 is credited toward the fix, diagnosis or Launch Path if you book within 14 days. Fixing three? The 3-Error Pack is $119.
Bigger job: Whole Stripe setup not live? Stripe go-live, $400–800 fixed.
Built with Lovable, Bolt, Replit, Cursor or v0? See rescue by platform and the security checklist.