US convenience store operator 7-Eleven has said it has agreed to sell its headquarters building for US$142m to Prentiss Properties.