fix: store key of invoices for retrieval