GetInvoiceMarkup()
IMPORTANT The SOAP API entered a limited enhancement phase in Q4 2020. Access to version 1.6 will be deactivated.
GetInvoiceMarkup() is a SOAP API call available for querying invoice information in Autotask.
API calls will return invoice data available from the Autotask UI invoice XML export. The data format is XML or HTML.
The function requires 2 parameters:
- InvoiceID as an integer
- The preferred markup format as a string (HTML or XML)
XML and HTML are returned as HTML-encoded strings.
GetInvoiceMarkup() security requirements
By default, the API User (system) (API-only) security level grants Full access permissions, but copies of this security level may have been modified. The API user must have access to the appropriate Autotask module for the entity type and sufficient rights to perform the specified API call.
For details about Autotask custom security levels, refer to the Help topic Create or edit a custom security level.
Sample GetInvoiceMarkup() SOAP XML
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<AutotaskIntegrations xmlns="http://autotask.net/ATWS/v1_6/">
<IntegrationCode>[insert your own tracking identifier]</IntegrationCode>
</AutotaskIntegrations>
</soap:Header>
<soap:Body>
<GetInvoiceMarkup xmlns="http://autotask.net/ATWS/v1_6/">
<InvoiceId>
</InvoiceId>
<Format>XML</Format>
</GetInvoiceMarkup>
</soap:Body>
</soap:Envelope>