Ryoji refers to a document issued under the Ritsuryo system (a system of centralized government based on the ritsuryo code by princes, empresses, etc.) for conveying orders of princes and three sango (Grand Empress Dowager, Empress Dowager, and Empress).
令旨（りょうじ）とは、律令制のもとで出された、皇太子・三后（太皇太后・皇太后・皇后）の命令を伝えるために出した文書。