Under Article 18 of the Customs Code (Decree Law 14/2017), you must keep your import and export documents for a minimum of five years (paper or electronic), and you must make them available to Customs upon request.