# GET /v1/invoices/{}/document is deprecated

Lexware Office API deprecated GET /v1/invoices/{}/document without giving a shutdown date yet.

Lexware Office deprecated the GET /v1/invoices/{}/document endpoint on August 13, 2025, without announcing a shutdown date. The provider states that this endpoint should no longer be used. Calls to this endpoint will eventually fail once it is removed.

## What to use instead

Download the PDF with GET /v1/invoices/{id}/file instead.

- API: Lexware Office API (api.lexware.io)
- Kind: Endpoint removal
- Announced: August 13, 2025
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `GET /v1/invoices/{}/document`
- Source: [Announcement](https://developers.lexware.io/docs/)
- Verified: October 26, 2026, against Lexware Office API's own pages
- Page: https://www.okapi.bot/providers/lexware-office-api/breaking-changes/get-v1-invoices-document-is-deprecated/

## Lexware Office API's words

> This endpoint is deprecated and should no longer be used. Instead, use the invoice file subresource to directly download the document by specifying the id of the invoice.

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
