# Xero

The Xero export are based on export template.

Example on template to be used can be found [here](/help/moment-by-topic/integrations/file-exports/file-export-accounting-system/xero/xero-templates.md)

## Export configuration

Configuration of export is to be done following the standard configuration.

Xero has no additional required settings.

## File

The file produced is a comma separated CSV file with the following columns.

| Description       | Comment                       |
| ----------------- | ----------------------------- |
| ContactName       | Name of customer              |
| EmailAddress      | Customer email                |
| POAddressLine1    | Customer address line 1       |
| POAddressLine2    | Customer address line 2       |
| POAddressLine3    | Customer address line 3       |
| POAddressLine4    |                               |
| POCity            | Customer city                 |
| PORegion          |                               |
| POPostalCode      | Customer postal code          |
| POCountry         | Customer country code         |
| SAAddressLine1    |                               |
| SAAddressLine2    |                               |
| SAAddressLine3    |                               |
| SAAddressLine4    |                               |
| SACity            |                               |
| SARegion          |                               |
| SAPostalCode      |                               |
| SACountry         |                               |
| InvoiceNumber     | Invoice number                |
| Reference         | Project number + project name |
| InvoiceDate       | Issue date                    |
| DueDate           | Due date                      |
| PlannedDate       |                               |
| Total             | Total sum of invoice          |
| TaxTotal          |                               |
| InvoiceAmountPaid |                               |
| InvoiceAmountDue  |                               |
| InventoryItemCode |                               |
| Description       | Description from invoice line |
| Quantity          | Quantity                      |
| UnitAmount        | Price from invoice line       |
| Discount          | Discount from invoice line    |
| LineAmount        | Total invoice line            |
| AccountCode       | Financial account             |
| TaxType           | VAT percentage                |
| TaxAmount         | VAT invoice line              |
| TrackingName1     |                               |
| TrackingOption1   |                               |
| TrackingName2     |                               |
| TrackingOption2   |                               |
| Currency          | Currency code from invoice    |
| Type              | "Sales Invoice"               |
| Sent              | "Sent"                        |
| Status            | "Awaiting Payment"            |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.milientsoftware.com/help/moment-by-topic/integrations/file-exports/file-export-accounting-system/xero.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
