Tm Document API
This is documentation for the old TM Document API. If possible, please use the new API that is documented on the developer portal → Talent Manager API Documentation
Please read the API Usage Notice before implementing API consumption. |
URL
https://manager-api.hr-manager.net/EmployeeDocument.svc
Methods:
Method |
|
---|---|
| Retrieve list of meta-information for documents |
| Method used to do the Add Employee Documents |
| Method used to do the Delete Employee Documents |
| Method used to do the Update Employee Documents |
|
|
|
|
GetEmployeeDocumentList
Minimum fields required in order to get a list
|
|
---|---|
AuthenticationToken | This token is used to validate the request so that only authorized users can perform the import. This is to provide the security to the API and restrict the unauthorized access. We can either user customer specific API Key or the Master Key to get access to the system. |
CustomerId | This is customer identification id to let system know where a particular employee should be imported |
ReferenceToken | A unique value (i.e a GUID). This field is required, The value can be any unique string. |
EmployeeId | Id of the employee in the manager system for whom we need the list of documents. |
|
|
Basic request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://schemas.hr-manager.net/remoting/1.0/">
<soapenv:Header/>
<soapenv:Body>
<ns:GetEmployeeDocumentList>
<ns:request>
<ns:AuthenticationToken></ns:AuthenticationToken>
<ns:CustomerId></ns:CustomerId>
<ns:ReferenceToken></ns:ReferenceToken>
<ns:EmployeeId></ns:EmployeeId>
</ns:request>
</ns:GetEmployeeDocumentList>
</soapenv:Body>
</soapenv:Envelope>
Response structure:
|
|
---|---|
ReferenceToken | It is the same token value which was sent in request. |
SystemLanguageType | Language specified in the request. Default will be English. |
TransactionStatus | It contains the details of the customer specified in the request and validated through Authentication Token. It also holds the status of the Request sent e.g. Success or Failure. |
DocumentList | It can have 0 or more occurrence of employee documents specified in the request. |
Document | It contains the details of the document identified by the Id field. Contents of the documents are not included in the response. Actual file can be downloaded using DownloadUrl provided in the Document details. |
|
|
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<GetEmployeeDocumentListResponse xmlns="http://schemas.hr-manager.net/remoting/1.0/">
<GetEmployeeDocumentListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ReferenceToken></ReferenceToken>
<SystemLanguageType></SystemLanguageType>
<TransactionStatus>
<Customer>
<Details i:nil="true"/>
<Id></Id>
<Name></Name>
</Customer>
<DebugOverview i:nil="true"/>
<StatusDescription></StatusDescription>
<StatusType></StatusType>
</TransactionStatus>
<DocumentList xmlns:a="http://schemas.hr-manager.net/restful/2.0/">
<a:Document>
<a:Id></a:Id>
<a:Name></a:Name>
<a:Extension></a:Extension>
<a:ByteCount></a:ByteCount>
<a:DownloadUrl></a:DownloadUrl>
<a:Bytes i:nil="true"/>
<a:Type></a:Type>
<a:StorageId/>
</a:Document>
</DocumentList>
<EmployeeDocumentStatusType></EmployeeDocumentStatusType>
</GetEmployeeDocumentListResult>
</GetEmployeeDocumentListResponse>
</s:Body>
</s:Envelope>
EmployeeDocumentAdd
Minimum fields required in order to add
|
|
---|---|
AuthenticationToken | This token is used to validate the request so that only authorized users can perform the import. This is to provide the security to the API and restrict the unauthorized access. We can either user customer specific API Key or the Master Key to get access to the system. |
CustomerId | This is customer identification id to let system know where a particular employee should be imported |
ReferenceToken | A unique value (i.e a GUID). This field is required, The value can be any unique string. |
EmployeeDocuments | Minimum one Document should be sent when adding employee document using the API. |
Basic request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://schemas.hr-manager.net/remoting/1.0/" xmlns:hrm="http://schemas.datacontract.org/2004/07/HRMTS.TalentManager.Common.Models.Remoting.Employees">
<soapenv:Header/>
<soapenv:Body>
<ns:EmployeeDocumentAdd>
<ns:request>
<ns:AuthenticationToken></ns:AuthenticationToken>
<ns:CustomerId></ns:CustomerId>
<ns:ReferenceToken></ns:ReferenceToken>
<ns:EmployeeDocuments>
<hrm:EmployeeDocument>
<hrm:Content></hrm:Content>
<hrm:DocumentCategory></hrm:DocumentCategory>
<hrm:FileName></hrm:FileName>
<hrm:IsEmployeeVisible></hrm:IsEmployeeVisible>
</hrm:EmployeeDocument>
</ns:EmployeeDocuments>
<ns:EmployeeId></ns:EmployeeId>
</ns:request>
</ns:EmployeeDocumentAdd>
</soapenv:Body>
</soapenv:Envelope>
Response structure:
|
|
---|---|
ReferenceToken | It is the same token value which was sent in request. |
SystemLanguageType | Language specified in the request. Default will be English. |
TransactionStatus | It contains the details of the customer specified in the request and validated through Authentication Token. |
EmployeeDocumentStatusList | It can have 1 or more occurrence of Document status specified in the request. |
EmployeeDocumentStatus | It contains the details of the document status like System generated ID of the document, |
|
|
EmployeeDocumentDelete
Minimum fields required
|
|
---|---|
AuthenticationToken | This token is used to validate the request so that only authorized users can perform the import. This is to provide the security to the API and restrict the unauthorized access. We can either user customer specific API Key or the Master Key to get access to the system. |
CustomerId | This is customer identification id to let system know where a particular employee should be imported |
ReferenceToken | A unique value (i.e a GUID). This field is required, The value can be any unique string. |
EmployeeDocuments | Minimum one Document should be sent when deleting employee documents using the API. |
Basic request structure:
Response structure:
|
|
---|---|
ReferenceToken | It is the same token value which was sent in request. |
SystemLanguageType | Language specified in the request. Default will be English. |
TransactionStatus | It contains the details of the customer specified in the request and validated through Authentication Token. |
EmployeeDocumentStatusList | It can have 1 or more occurrence of Document status specified in the request. |
EmployeeDocumentStatus | It contains the details of the document status whether document has been deleted or not, |
|
|
EmployeeDocumentUpdate
Minimum fields required in order to update.
|
|
---|---|
AuthenticationToken | This token is used to validate the request so that only authorized users can perform the import. This is to provide the security to the API and restrict the unauthorized access. We can either user customer specific API Key or the Master Key to get access to the system. |
CustomerId | This is customer identification id to let system know where a particular employee should be imported |
ReferenceToken | A unique value (i.e a GUID). This field is required, The value can be any unique string. |
EmployeeDocuments | Minimum one Document should be sent when updating employee documents using the API. Following fields should be set for each document: |
Basic request structure:
Response structure:
|
|
---|---|
ReferenceToken | It is the same token value which was sent in request. |
SystemLanguageType | Language specified in the request. Default will be English |
TransactionStatus | It contains the details of the customer specified in the request and validated through Authentication Token. |
EmployeeDocumentStatusList | It can have 1 or more occurrence of Document status specified in the request. |
EmployeeDocumentStatus | It contains the details of the document status whether document has been updated or not any error message while updating the document. |
|
|