Prosecutors are gearing up to question Brazilian President Michel Temer about whether he received political donations from Rodrimar, a shipping agency and terminal operator.

Supreme Court judge Roberto Barroso has authorised Attorney General Raquel Dodge to depose the president and eight others, as well as obtain documents that might show whether Temer received "electoral donations" from Rodrimar or any of its subsidiaries, court documents show.