When an API takes seconds and nobody can say why, I measure a single request at four points and line the numbers up.
The first point is the web server access log. Nginx writes the total request time and the time it spent waiting on the application in one line, and the gap between those two numbers is network and buffering, which people spend days hunting inside their own code.
The next two points sit in the application. Wrap the handler in a timer and log the elapsed value under the request id. Then count the database queries for that request and log the count right next to it. A handler firing a few hundred small queries looks healthy in any single-query log, and it still eats most of a second.
The fourth point is outbound calls. Card, KYC and delivery providers are usually the honest answer, and once the call count sits in the same log line as the total, you can see whether something is making them one at a time inside a loop.