#kyle-heat-engineer_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฑ๏ธ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime!
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1212742885305229323
๐ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question. Thank you for your patience!
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- kyle_heat_engineer, 6 days ago, 5 messages
Hi there!
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
StripeInvalidRequestError: Customer already exists.
at StripeError.generate (file:///Users/kylealbert/Documents/heat-engineer/data-migration-from-v1-to-v2/node_modules/stripe/esm/Error.js:7:20)
at res.toJSON.then.StripeAPIError.message (file:///Users/kylealbert/Documents/heat-engineer/data-migration-from-v1-to-v2/node_modules/stripe/esm/RequestSender.js:102:43)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
type: 'StripeInvalidRequestError',
Could you please share the requestId ? req_...
req_YDBVjpSvJ8QcLO
req_OcXwszH6K7wAoY - this one is the one that deleted the customer
The request Id you are sharing is to update a customer and not to create a customer
You need first to create a customer and then update it
You can't copy ids from prod to test or test to prod
The customer had already been created
I have 4.4k users that I just copied from production to test
I did this with the current one here
but issue was I deleted it
but that customer with that id is deleted
You can't update it now
Can you reverse the deletion?
I had a issue with production and they reversed the deletion for me
The api doesnt give you the ability to reverse the deletion but I know stripe has internal tools for this process
no
Can you please pass me onto someone that can
No that's not possible.
You need to create a new customer in your test mode
You can find all the public APIs in this guide:
https://docs.stripe.com/api/customers
I literally know its possible cause I wiped out our production stripe env on monday and they reversed the deletion ๐
Please pass me onto your manager
In that case feel free to reach out to Stripe Support https://support.stripe.com/contact