---
title: "Export invoice"
method: GET
path: "/Export/invoiceCsv"
tags: ["Export"]
---

# Export invoice

`GET /Export/invoiceCsv`

Export all invoices as csv

## Query parameters

- `download` boolean
- `sevQuery` object, required
  - `limit` integer — Limit export
  - `modelName` string, required — Model name, which is 'Invoice'
  - `objectName` string, required — Model name, which is 'SevQuery'
  - `filter` object
    - `invoiceType` string[] — Type of invoices you want to export 1. RE - Rechnung 2. SR - Stornorechnung 3. TR - Teilrechnung 4. AR - Abschlagsrechnung 5. ER - Endrechnung 6. WKR - Wiederkehrende Rechnung 7. MA - Mahnung
    - `startDate` string, date-time — Start date of the invoice
    - `endDate` string, date-time — End date of the invoice
    - `contact` object — filters the invoices by contact
      - `id` integer, required — ID of the contact
      - `objectName` string, required — Model name, which is 'Contact'
    - `startAmount` integer — filters the invoices by amount
    - `endAmount` integer — filters the invoices by amount

## Response `200`

Successful operation without download

- object
  - `objects` object
    - `filename` string
    - `mimetype` string
    - `base64Encoded` boolean
    - `content` string

## Other responses

- `400` — Bad request
- `401` — Authentication required
- `409` — Conflict
- `500` — Server Error

---

[API](https://skmtc.net/sevdesk/apis/sevdesk-api.md) · [All operations](https://skmtc.net/sevdesk/apis/sevdesk-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sevdesk/sevdesk-api/revisions/a32cec0fecea/schema)
