Is there a relationship between a the documents of a template and the documents of a request?

Is there a relationship between a the documents of a template and the documents of a request?

I have a requirement to handle signed documents dynamically. I was hoping to upload a template containing multiple documents, of which I would store the document_id of each in our database along with the appropriate action our system should undertake per document. Then, when a request with that template was signed and returned to me, I could look up each document by document_id and work out which action to take. 

Having tested that, it appears the document_ids of a template are not related to the document_ids of a request. Is there any relationship I can rely on?