sharepoint rest api – How to use Excel Service (/Model) with Document ID enabled


I’m currently running SharePoint 2016 and have Document ID service enabled.
Knew that once I enable the Document ID service, documents’ URL will change from ~/DOCLIB/filename.xlsx to ~/_layouts/15/DocIDRedir.aspx?ID=BLAH. I was fine with that.

Recently got a new project that will have to use the Excel Service (/Model); so I followed the Microsoft documentation https://docs.microsoft.com/en-us/sharepoint/dev/general-development/basic-uri-structure-and-path; the example the documentation had was : ServerName/_vti_bin/ExcelRest.aspx/Docs/Documents/sampleWorkbook.xlsx/model

and of course I replaced the URL path with documentID URL like below ServerName/_vti_bin/ExcelRest.aspx/_layouts/15/DocIdRedir.aspx?ID=BLAH/Model and I got “sorry, something went wrong” error.

Does anybody using both services and know how to get around the issue that I’m having or is there a way to get default URL path and still keeping the Document ID?

Thank you.