# Export-specific types

The following types are exposed through [export-related operations](/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](/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](/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](/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: 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.mews.com/connector-api/operations/_export-types.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.
