Denmark had been waging the Gunboat War since 1807. This eventually caused a financial crisis which ultimately resulted in Denmark defaulting on its international financial obligations on 5 January 1813.
References
Danish state bankruptcy of 1813 Wikipedia(Text) CC BY-SA