I've found what the issue is and what to do about it, I can make a video and give you over chat, just send me a message
I am working on this to find what exactly is the API returning for the customer flow, Please have a chat with me to follow up on progress. I am giving 2 days right now but I am trying to find reason right away.
One of the weird things I found was why are you using request promise when you actually have node fetch that you are using for all the other requests, any reason?
Also I hope you know request is now deprecated, request promise internally uses request
You need a backend engineer for this requirement I have 3 years of experience in nodejs/javascript and I have VSCode setup to debug the entire flow.