> For the complete documentation index, see [llms.txt](https://docs.mews.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mews.com/connector-api/operations/_export-types.md).

# Export-specific types

The following types are exposed through [export-related operations](https://docs.mews.com/connector-api/use-cases/data-export.md) but are not used elsewhere in the Connector API.

### Ledger entry

For `LedgerEntry` entity type.

> #### Restricted!
>
> This entity is currently in beta-test and as such it is subject to change.

| Property               | Type                                                          | Contract | Description                                                                                                                                                                                                                                                                                                       |
| ---------------------- | ------------------------------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Id`                   | string                                                        | required | Unique identifier of the entry.                                                                                                                                                                                                                                                                                   |
| `EnterpriseId`         | string                                                        | required | Unique identifier of the [Enterprise](https://docs.mews.com/connector-api/operations/enterprises.md#enterprise).                                                                                                                                                                                                  |
| `TransactionId`        | string                                                        | optional | Unique identifier of the transaction in which the ledger entry was created. `null` for ledger entries created before transaction identifiers were introduced.                                                                                                                                                     |
| `AccountId`            | string                                                        | required | Unique identifier of the account (for example `Customer`) associated with this ledger entry.                                                                                                                                                                                                                      |
| `BillId`               | string                                                        | optional | Unique identifier of the [Bill](https://docs.mews.com/connector-api/operations/bills.md#bill) associated with this ledger entry. Note that this may reference a bill that has since been deleted; ledger entries are immutable and retain their original `BillId` even when the associated bill no longer exists. |
| `AccountingCategoryId` | string                                                        | optional | Unique identifier of the [Accounting category](https://docs.mews.com/connector-api/operations/accountingcategories.md#accounting-category) for this ledger entry.                                                                                                                                                 |
| `AccountingItemId`     | string                                                        | required | Unique identifier of the item linked to this ledger entry.                                                                                                                                                                                                                                                        |
| `AccountingItemType`   | [Accounting item type](#accounting-item-type)                 | required | Type of item linked to this ledger entry.                                                                                                                                                                                                                                                                         |
| `LedgerType`           | [Accounting ledger type](#accounting-ledger-type)             | required | Type of accounting ledger where this entry is recorded.                                                                                                                                                                                                                                                           |
| `LedgerEntryType`      | [Accounting ledger entry type](#accounting-ledger-entry-type) | required | Whether this is a debit or credit entry in the ledger.                                                                                                                                                                                                                                                            |
| `PostingDate`          | string                                                        | required | Date when this entry was posted to the ledger in ISO 8601 format.                                                                                                                                                                                                                                                 |
| `Value`                | decimal                                                       | required | Monetary value of this ledger entry. Always a positive number.                                                                                                                                                                                                                                                    |
| `NetBaseValue`         | decimal                                                       | optional | Net value from which tax is calculated. Only populated for entries on the tax ledger.                                                                                                                                                                                                                             |
| `TaxRateCode`          | string                                                        | optional | Code of the tax rate. Only populated for entries on the tax ledger.                                                                                                                                                                                                                                               |
| `CreatedUtc`           | string                                                        | required | Date and time when this ledger entry was created in UTC timezone in ISO 8601 format.                                                                                                                                                                                                                              |

#### Accounting item type

* `OrderItem`
* `OutletItem`
* `Invoice`
* `Payment`
* `DepositBalancingPayment`
* `CityLedgerBalancingPayment`
* `DepositItem`

#### Accounting ledger type

* `Revenue`
* `Tax`
* `Payment`
* `Deposit`
* `Guest`
* `City`
* `NonRevenue`

#### Accounting ledger entry type

* `Debit`
* `Credit`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mews.com/connector-api/operations/_export-types.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
