Sample Code

IMPORTANT  The SOAP API entered a limited enhancement phase in Q4 2020. Access to version 1.6 will eventually be deactivated. At this time, there is no end-of-lifecycle date.

NOTE  Datto will not assist you with the creation or troubleshooting of your application code. Refer to Limits of API support.

Autotask code samples

Autotask has created a number of code samples that will help you get started. You can find it here: https://github.com/AutotaskDevelopment/Sample-Code

Customer-provided sample code

For developers working with PHP, OpenDNS Engineering has generously published their Autotask Web Services API client as open source. You can access it here: OpenDNS Open Sources Autotask Web Service API Client. For additional information, refer to OpenDNS Open Sources Autotask Web Service API Client.

SOAP XML examples

At the bottom of the API calls topics, you will find SOAP XML samples:

Attachment API calls - CreateAttachment(), GetAttachment(), DeleteAttachment()
create()
delete()
query()
update()
The getEntityInfo() SOAP API call
The getFieldInfo() SOAP API call
GetInvoiceMarkup()
getThresholdAndUsageInfo()
getUDFInfo()
getWsdlVersion()
getZoneInfo()