DocumentID is the identifier extracted from any particular TN transaction (XML (PO number or Invoice# or EDI control number) etc…
DoctypeID is the TN Internallly generated ID stored in the database for the document type
You can always review the TN user guide or concepts guide for more info:
HTH,
RMG
#B2B-Integration#webMethods#Integration-Server-and-ESB