---
title: "List all files of a credit memo"
method: GET
path: "/v1/credit-memos/{creditMemoKey}/files"
tags: ["Credit Memos"]
---

# List all files of a credit memo

`GET /v1/credit-memos/{creditMemoKey}/files`

## Request

- Base URL: `https://rest.test.zuora.com`
- URL: `https://rest.test.zuora.com/v1/credit-memos/{creditMemoKey}/files`
- Auth: HTTP bearer

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

Credit 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

- `creditMemoKey` 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

- GETCreditMemoFilesResponse
  - `creditMemoFiles` CreditMemoFile[]: Container for credit memo PDF files.
    - `id` string: The ID of the credit 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 credit 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/8a90a24f8e128020018e12cf610903f8`.
    - `versionNumber` integer: The version number of the credit 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.dev/zuora/apis/api-reference/revisions/2deecb0dd041?raw)
