invalid_customer_account HTTP 402 Stripe Declines Stripe Error: invalid_customer_account – lpm
When the Stripe API encounters an invalid customer account, it triggers this error code. This occurs when the provided customer ID does not match any existing customer in your Stripe account. It's essential to verify customer information before attempting payments.
Root Causes
Invalid Customer ID
The customer ID used for payment is incorrect or does not exist.
Account Status Issues
The customer's account status might be restricted or suspended, preventing payments.
Resolution
1.Verify Customer Information
Ensure the customer ID is correct and matches an existing customer in your Stripe account.
2.Check Account Status
Review the customer's account status to ensure it's not restricted or suspended.
Code Examples
stripe.Customer.retrieve('customer_id').status
stripe.customer.retrieve('customer_id').status
Stripe\Customer::retrieve('customer_id')->status
curl -X GET 'https://api.stripe.com/v1/customers/customer_id' -H 'Authorization: Bearer YOUR_SECRET_KEY'
FAQ
What does an invalid customer account error mean? ▾
It means the customer ID provided is incorrect or doesn't exist in your Stripe account.
How do I resolve this issue? ▾
Verify the customer's information and check their account status to ensure it's not restricted or suspended.
Independent reference. Always verify against the official Stripe Declines documentation.