How to export the accounting with details of payments and categories ?

You want to export your accounting, including the details of payments and your different categories