Returns the list of all document type definitions configured in the system. Document types allow documents to be classified and associated with a required custom property set.
/srv.asmx/GetDocumentTypes
GET /srv.asmx/GetDocumentTypes?AuthenticationTicket=...
POST /srv.asmx/GetDocumentTypes (form data)
SOAP Action: http://tempuri.org/GetDocumentTypes
| Parameter | Type | Required | Description |
|---|---|---|---|
AuthenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser. |
Returns a <response> root element containing a <DocumentTypes> child with one <DocumentType> element per defined document type. If no document types are configured, <DocumentTypes> is present but empty.
<response success="true" error="">
<DocumentTypes>
<DocumentType TypeID="1"
TypeName="Contract"
PropertySetID="5"
PropertySetName="Contract Details" />
<DocumentType TypeID="2"
TypeName="Invoice"
PropertySetID="8"
PropertySetName="Invoice Metadata" />
<DocumentType TypeID="3"
TypeName="General"
PropertySetID="0"
PropertySetName="" />
</DocumentTypes>
</response>
| Attribute | Description |
|---|---|
TypeID |
Unique integer ID of the document type. |
TypeName |
Display name of the document type. |
PropertySetID |
Integer ID of the custom property set associated with this document type. 0 if no property set is linked. |
PropertySetName |
Name of the associated property set. Empty string if no property set is linked. |
When no document types are configured in the system:
<response success="true" error="">
<DocumentTypes />
</response>
<response success="false" error="[900] Authentication failed" />
Any authenticated user may call this API.
GET /srv.asmx/GetDocumentTypes
?AuthenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301
HTTP/1.1
POST /srv.asmx/GetDocumentTypes HTTP/1.1
Content-Type: application/x-www-form-urlencoded
AuthenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tns="http://tempuri.org/">
<soap:Body>
<tns:GetDocumentTypes>
<tns:AuthenticationTicket>3f2504e0-4f89-11d3-9a0c-0305e82c3301</tns:AuthenticationTicket>
</tns:GetDocumentTypes>
</soap:Body>
</soap:Envelope>
All document types defined in the system are returned; there is no filtering or pagination.
PropertySetID="0" and PropertySetName="" indicate the document type has no associated property set requirement.
To create, update, or delete document type definitions, use CreateDocumentTypeDef, UpdateDocumentTypeDef, or DeleteDocumentTypeDef.
CreateDocumentTypeDef - Create a new document type definition
DeleteDocumentTypeDef - Delete a document type definition
GetDocument - Get document properties (includes DocTypeID and DocTypeName)
| Error | Description |
|---|---|
[900] Authentication failed |
Invalid or missing authentication ticket. |
[901] Session expired or Invalid ticket |
The ticket has expired or does not exist. |
SystemError:... |
An unexpected server-side error occurred. |