---
title: "List all files of a debit memo"
method: GET
path: "/v1/debit-memos/{debitMemoKey}/files"
tags: ["Debit Memos"]
---

# List all files of a debit memo

`GET /v1/debit-memos/{debitMemoKey}/files`

Retrieves the information about all PDF files of a specified debit memo. 

Debit Memo PDF files are returned in reverse chronological order by the value of the `versionNumber` field.
**Note**: This API only retrieves the PDF files that have been generated. If the latest PDF file is being generated, it will not be included in the response.

## Path parameters

- `debitMemoKey` string, required

## Query parameters

- `pageSize` integer
- `page` integer

## 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

- GETDebitMemoFilesResponse
  - `debitMemoFiles` DebitMemoFile[] — Container for debit memo PDF files.
    - `id` string — The ID of the debit memo PDF file. This is the ID for the file object and different from the file handle ID in the `pdfFileUrl` field. To open a file, you have to use the file handle ID.
    - `pdfFileUrl` string — The relative URL of the debit memo PDF file. You can obtain the absolute URL for downloading the file by adding a prefix in the following format: `{environment_base_url}/apps` For example, `https://apisandbox.zuora.com/apps/v1/files/2c98901f62d7d83d0162d7facea6262d`.
    - `versionNumber` integer — The version number of the debit memo PDF file.
  - `nextPage` string, URL — URL to retrieve the next page of the response if it exists; otherwise absent.
  - `success` boolean — Returns `true` if the request was processed successfully.

## 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-service-production.skmtc.workers.dev/v1/apis/zuora/api-reference/revisions/d11e237f3e54/schema)
