Export Invoices from Zahara
This task will export invoices from Zahara, and output them to an XML file.
Settings
Connection
Required
Select the Zahara connection you want to use. See Connecting to Zahara.
Export Settings > Date Created
Required
Used when exporting new records. The date shown will update automatically when the task runs.
Note
When manually changing this setting, ensure the Date Modified setting is changed to the same date too. Otherwise certain records may not appear in the export.
Export Settings > Date Modified
Required
Used when exporting modified records. The date shown will update automatically when the task runs.
Export Settings > Export New, Modified or All Records
Required
Select the type of export to perform. The following options are available:
- New - Will export new records since the task last ran. It works using a combination of the dates shown in the 'Date Created' and 'Date Modified' settings.
- Modified - Will export new/modified records since the date shown in the 'Date Modified' setting.
- All - Will export all records.
Include Deleted
Required
Set to True to include deleted records in the export.
Page Size
Required
The number of records to request from Zahara at a time.
Record IDs
Optional
Provide a list of record IDs to export specific records from Zahara. Doing so will override all other export settings.
Output File
Required
The XML file to save the exported records to.
Zynk Settings
Examples
A sample input file is shown below.
<?xml version="1.0" encoding="utf-8"?>
<Invoices xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Invoice>
<Id>23547388</Id>
<ExternalId />
<DateCreated>2025-10-02T15:16:27Z</DateCreated>
<LastUpdated>2025-10-02T15:23:27Z</LastUpdated>
<Supplier>
<Id>3119004</Id>
<DateCreated>2025-06-23T14:12:06Z</DateCreated>
<LastUpdated>2025-09-09T16:02:49Z</LastUpdated>
<BankAccountNumber />
<BankSortCode />
<BusinessUnitId>69576</BusinessUnitId>
<ContactName />
<CountryCode>gb</CountryCode>
<CountryCodeId>77</CountryCodeId>
<DefaultNominalCodeId>1225149</DefaultNominalCodeId>
<DefaultPaymentTerms>30</DefaultPaymentTerms>
<PaymentTermStartType>3</PaymentTermStartType>
<PaymentTermDaysNumber>30</PaymentTermDaysNumber>
<PaymentTermType>8</PaymentTermType>
<Products />
<ReferenceNumber>ZYNK0001</ReferenceNumber>
<SupplierId>3119004</SupplierId>
<SupplierName>Zynk Software Ltd</SupplierName>
<Telephone>0191 820 1484</Telephone>
<VatReg>123456789</VatReg>
<Void>false</Void>
<IsActive>true</IsActive>
<TrustedStatus>false</TrustedStatus>
</Supplier>
<InvoiceNumber>17208802</InvoiceNumber>
<TotalNetValue>516.800000000000000000</TotalNetValue>
<TotalGrossValue>620.160000000000000000</TotalGrossValue>
<RaisedDate>2025-10-01T00:00:00Z</RaisedDate>
<DueDate>2025-11-30T00:00:00Z</DueDate>
<DocumentId>23547388</DocumentId>
<BusinessDivisionId>167127</BusinessDivisionId>
<CreatedBy>145724</CreatedBy>
<SupplierId>3119004</SupplierId>
<Description />
<Type>2</Type>
<Status>5</Status>
<Void>false</Void>
<LineItemMatchType>3</LineItemMatchType>
<ProcessId>327776</ProcessId>
<ProcessStatus>4</ProcessStatus>
<ProcessToken>4b683675-981f-477e-8610-cbf963a1279c</ProcessToken>
<CurrentStepIndex>2</CurrentStepIndex>
<CurrentStepKey>486ae358a20efd6591823b5fa4cf8a83fc38f21d8d8a0c0657822e02b415ae47</CurrentStepKey>
<InvoiceType>1</InvoiceType>
<LineItems>
<LineItem>
<LineItemId>31653733</LineItemId>
<DocumentId>23547388</DocumentId>
<OrderNumber>00771</OrderNumber>
<Quantity>3.0</Quantity>
<Price>169.950000000000000000</Price>
<Description>SAMSUNG TAB A9+</Description>
<NominalCodeId>1225149</NominalCodeId>
<NominalCode>5000</NominalCode>
<TaxCodeId>266532</TaxCodeId>
<TaxCode>VAT</TaxCode>
<TaxPercentage>20.000000000000000000</TaxPercentage>
<TaxValue>101.970000000000000000</TaxValue>
<NetValue>509.850000000000000000</NetValue>
<QuantityReceived>0.0</QuantityReceived>
<LastUpdated>2025-10-02T15:16:27Z</LastUpdated>
<ProductCode>SAMT0001</ProductCode>
<DiscountPercentage>0.0</DiscountPercentage>
<MatchType>1</MatchType>
<DivisionId>167127</DivisionId>
</LineItem>
<LineItem>
<LineItemId>31653734</LineItemId>
<DocumentId>23547388</DocumentId>
<OrderNumber>00771</OrderNumber>
<Quantity>1.0</Quantity>
<Price>6.950000000000000000</Price>
<Description>Packaging</Description>
<NominalCodeId>1225149</NominalCodeId>
<NominalCode>5000</NominalCode>
<TaxCodeId>266532</TaxCodeId>
<TaxCode>VAT</TaxCode>
<TaxPercentage>20.000000000000000000</TaxPercentage>
<TaxValue>1.390000000000000000</TaxValue>
<NetValue>6.950000000000000000</NetValue>
<QuantityReceived>0.0</QuantityReceived>
<LastUpdated>2025-10-02T15:16:27Z</LastUpdated>
<ProductCode>PACK0001</ProductCode>
<DiscountPercentage>0.0</DiscountPercentage>
<MatchType>3</MatchType>
<DivisionId>167127</DivisionId>
</LineItem>
</LineItems>
<ReprocessCount>0</ReprocessCount>
<CurrencyId>1</CurrencyId>
<Exported>true</Exported>
<ExportedDate>2025-10-02T15:23:24Z</ExportedDate>
<CurrentExportStatus>3</CurrentExportStatus>
<CurrentExportType>0</CurrentExportType>
<CurrentExportMessage />
<ExportedByWorkflow>true</ExportedByWorkflow>
<PriorityApprovalDocument>false</PriorityApprovalDocument>
<PaymentStatus>0</PaymentStatus>
</Invoice>
</Invoices>