Looks like @robertklep was right. I fixed my issue by wrapping the first API call in a Promise and then executing the second API call after the first one completed.
I'll wait to mark this as the answer just in case anyone comes across a better solution.