---
title: "Create an export and retrieve export content"
method: POST
path: "/cleemy/services/v3/createExpenseAccountingExport"
tags: ["CreateExpenseAccountingExport"]
---

# Create an export and retrieve export content

`POST /cleemy/services/v3/createExpenseAccountingExport`

Create a new export and retrieve the export content directly in the response body for a given business-establishment.

**In the v3 API model, the business-establishment is often called "legal-entity". As a result, the `legalEntityId` query parameter corresponds to the ID of a business-establishment.**

The response contains all the exported entry lines for the given business-establishment.

The date query parameters can operate comparisons with a given date-time value. For examples :
  - `?approvedOn=2021-01-01`: strict equality.
  - `?approvedOn=since,2021-01-01`: greater than or equal.
  - `?approvedOn=until,2021-01-01`: lower than or equal.
  - `?approvedOn=between,2021-01-01,2021-01-31`: comprised between two dates.

## Response `200`

The export file is successfully generated.

## Other responses

- `400` — Problem
- `401` — Problem
- `403` — Problem
- `500` — Problem

---

[API](https://skmtc.net/luccasoftware/apis/lucca-expenses.md) · [All operations](https://skmtc.net/luccasoftware/apis/lucca-expenses/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/luccasoftware/lucca-expenses/revisions/110f9897756c/schema)
