It’s better to build your own API for such command, however, below is a solution I provided before, you could adapt it to fit your case, but I won’t provide further help on the matter as using the Quote API this way isn’t really allowed by the dev who made it.