At the latest at the end of the temporary detention and any renewal thereof, the cash is returned to the person referred to in article 67 ter B, unless it has been seized by customs officers under the conditions provided for in article 323 of this Code or in III of article L. 152-4 of the Monetary and Financial Code.