---
title: "Download Original File"
method: GET
path: "/v2/transactions/{procurosTransactionId}/original-file"
tags: ["E-Invoicing"]
---

# Download Original File

`GET /v2/transactions/{procurosTransactionId}/original-file`

## Request

- Base URL: `https://api.procuros.io`
- URL: `https://api.procuros.io/v2/transactions/{procurosTransactionId}/original-file`
- Auth: HTTP bearer

Download the original file of an invoice or credit note you received, as your trade partner sent it. Use it to keep the original document on your side, for example next to the invoice in your ERP.

Use the `procurosTransactionId` from `GET /v2/transactions` or from `GET /v2/all-transactions`.

The original file is available when the invoice or credit note reached Procuros as a PDF or as an e-invoice, for example an XRechnung XML or a ZUGFeRD PDF. If your trade partner sent an e-invoice XML together with a PDF copy, you get the XML, because the XML is the e-invoice. The `Content-Type` header tells you which kind of file you got, and the `Content-Disposition` header carries its file name.

The endpoint returns `404` when the transaction does not exist or when its original file is not an e-invoice.

## Path parameters

- `procurosTransactionId` string, uuid, required

## Response `200`

Success

## Other responses

- `404`: Transaction not found, or its original file is not an e-invoice
- `4XX`: Client Error
- `5XX`: Server Error

---

[API](https://skmtc.dev/procuros/apis/procuros-api.md) - [All operations](https://skmtc.dev/procuros/apis/procuros-api/llms.txt) - [OpenAPI document](https://skmtc.dev/procuros/apis/procuros-api/revisions/28a1d5326ce9?raw)
