Skip to content

Stripe API error

Stripe: “No such price: ‘price_…’”

Creating a Checkout Session or subscription fails with resource_missing: No such price, or on older code No such plan. The ID you passed doesn’t exist in the account and mode your secret key points to. Most often it is a product ID, a test ID used with a live key, or a price from another Stripe account.

Rather hand it over? Stripe Billing Fix and Setup: Subscriptions, webhooks, customer portal and failed payments set up or fixed, tested in Stripe test mode.

Full refund if Simon can’t take it on once he sees your project, or if you cancel before work starts. Refund terms.

Short answer

Open the price in the Dashboard, in the same mode as your key, and copy its API ID: it starts with price_, not prod_. Test and live mode have separate prices, so create the live price and put its ID in your production config. To avoid hard-coding IDs, give prices a lookup_key and fetch them by key.

Rather not fix it yourself? Stripe Billing Fix and Setup handles it at a fixed price, agreed before work starts.

Why Stripe can’t find the price, and the fix

  1. 01

    A product ID where a price ID belongs

    “The ID provided isn’t valid. Either the resource doesn’t exist, or an ID for a different resource has been provided.” Stripe, Error codes (resource_missing)

    A product (prod_…) holds the name; its prices (price_…) hold the amount and interval. line_items and subscription items need the price ID. Copy it from the pricing section of the product in the Dashboard.

    line_items: [{ price: 'price_1Q…', quantity: 1 }] // not prod_…
  2. 02

    A test price with a live key, or the reverse

    “Test and live mode API keys, requests, and objects are only available within the corresponding mode.” Stripe, Error codes (livemode_mismatch)

    Prices made in test mode or a sandbox don’t exist in live mode. When you go live, create the products and prices in live mode and switch the IDs in your production environment variables together with the keys.

  3. 03

    Hard-coded IDs that drift

    “If these prices are hard-coded and you want to change them, the process is often manual and requires you to deploy new code.” Stripe, Manage prices (Lookup keys)

    IDs copied into code break when someone recreates a price or switches accounts. A lookup_key such as standard_monthly stays the same: fetch the price by key and use the ID it returns.

    const { data } = await stripe.prices.list({ lookup_keys: ['standard_monthly'] });
    const priceId = data[0]?.id;
  4. 04

    Old plan IDs on code written for Plans

    No such plan comes from older integrations that pass plan. Stripe says new plans or recurring prices work in the plan parameter, but a one-time price won’t, so check the ID type first. With Connect, also check that the call carries the connected account the price was created on.

Checked against the vendor’s docs on : Stripe docs: Error codes; Stripe docs: Manage prices; Stripe docs: Checkout prices migration guide.

Rather hand it over?

Fixed scope, fixed price, paid upfront. The work happens in writing; no call needed.

“Working with Simon makes everything run so smoothly and better than I could ask for it. Amazingly communicative, extremely knowledgeable of coding and the backend processes. I strongly recommend.”
A buyer in the United States, January 2026. App development on Fiverr
Read 126 of the 127 Fiverr reviews

Related: Stripe “No such customer” in test or live mode · Stripe works in test mode but not live · Stripe “No such PaymentMethod” · Stripe invoice_no_payment_method_types

Questions

More on this error

Can I copy test prices to live mode?

Yes, the Dashboard can copy a product and its prices from a sandbox or test mode to live mode. The live copies get new IDs, so update the price IDs in your production config after copying.

The ID is right and it still fails. What else?

Check which key the server really uses in production (a leftover test key is common), and whether the price was archived or belongs to a connected account that the request doesn’t name.

Can you fix it for me?

If one bug is the whole problem, the App Fix Ticket covers it. If you already know the cause, you can pay for the fix directly; if not, start with a written diagnosis, which is credited toward the fix. If the app has more going on, the Launch Check is a written check of the whole app. Each issue found is rated critical, high, medium or low, with where it is and how it was confirmed. No issues worth fixing, no charge. If the Launch Check finds nothing rated medium or higher, Simon refunds the full $450. You keep the report either way. This applies to the first 10 Launch Checks bought after October 30, 2026.

A different error?

Ask Simon for a price range

Send the error and what you were doing. Simon replies by email, usually within one business day, with a price range.