Get the id of the document doc
Method, Response or Error document.
RPC id if given or else return id 0
Get the id of the document doc