query_memory: where does data flow after the payments endpoint?