---
title: "Download a debit memo in the specified file format"
method: GET
path: "/v1/debit-memos/{debitMemoKey}/e-invoice/download"
tags: ["E-Invoicing"]
---

# Download a debit memo in the specified file format

`GET /v1/debit-memos/{debitMemoKey}/e-invoice/download`

## Request

- Base URL: `https://rest.test.zuora.com`
- URL: `https://rest.test.zuora.com/v1/debit-memos/{debitMemoKey}/e-invoice/download`
- Auth: HTTP bearer

Downloads the debit memo based on the specified file format. 
The system supports XML, UBL, PNG, or QR codes formats that each country requires or supports.

## Path parameters

- `debitMemoKey` string, required

## Query parameters

- `fileFormat` 'XML' | 'PDF' | 'ZIP' | 'OASIS_Universal_Business_Language_XML'

## Headers

- `Accept-Encoding` string
- `Content-Encoding` string
- `Zuora-Track-Id` string
- `Zuora-Entity-Ids` string
- `Zuora-Org-Ids` string
- `Zuora-Version` string

## Response `200`

OK

- DebitMemosEinvoiceDownload
  - `success` unknown
  - `error` GETDebitMemosEinvoiceDownload[]: Container for downloading Debit Memo.
    - `processId` string: Process Id of the validation error.
    - `reasons` GETEinvoiceDownloadErrors[]: Container for error reasons.
      - `code` string: Code for the validation error.
      - `message` string: Validation error message.
    - `requestId` string: Request Id for the validation error.

## Other responses

- `500`: Internal Server Error
- `4XX`: Request Errors

---

[API](https://skmtc.dev/zuora/apis/api-reference.md) · [All operations](https://skmtc.dev/zuora/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc.dev/zuora/apis/api-reference/revisions/2deecb0dd041?raw)
