Currently the invite call for documents as well as paymentlinks are passed in as a map of strings (which are directly forwarded into the http request) It would be better to make this a typed request object.