← All errors · Stripe

No such customer: 'cus_...'

Exact error

No such customer: 'cus_XXXXXXXX'

What it means

The ID doesn't exist in the Stripe account and mode you are calling. The same pattern applies to "No such price", "No such product", etc.

Likely causes

How to fix it

  1. Check which mode the key is in: sk_test_ vs sk_live_. Test and live data are fully separate.

  2. Look up the ID in the Dashboard with the matching mode toggle.

  3. For Connect, pass the account header:

    await stripe.customers.retrieve('cus_123', { stripeAccount: 'acct_123' });

Related errors

Get new fixes weekly

No spam. Unsubscribe anytime. Privacy