> ## Documentation Index
> Fetch the complete documentation index at: https://www.marqeta.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List files for an account

> Retrieve an array of statement files for a specific credit account.

GET/credit/accounts/\{account\_token}/statements/files

Retrieve an array of statement files for a specific credit account.

## URL path parameters

| Fields | Description |
| - | - |
| account\_token string  Required | The unique identifier of the credit account for which to retrieve statement files. Send a `GET` request to `/credit/accounts` to retrieve existing credit account tokens. **Allowable Values:**  Existing account token |

## URL query parameters

| Fields | Description |
| - | - |
| start\_date datetime  Optional | The start date of the statement files to return. **Allowable Values:**  Example: 2020-01-01T00:00:00Z |
| end\_date datetime  Optional | The end date of the statement files to return. **Allowable Values:**  Example: 2020-03-01T03:59:59Z |
| count integer  Optional | The number of resources to retrieve. **Allowable Values:**  1–100 |
| start\_index integer  Optional | Sort order index of the first resource in the returned array. **Allowable Values:**  0 min |
| sort\_by string  Optional | Field on which to sort. Prefix the field name with a hyphen (`-`) to sort in descending order. Omit the hyphen to sort in ascending order. **NOTE:** You must sort using system field names such as `createdTime`, and not by the field names appearing in response bodies such as `created_time`. **Allowable Values:**  `createdTime`, `-createdTime` |

## Response body

| Fields | Description |
| - | - |
| count integer  Returned | Number of resources returned. **Allowable Values:**  1-10 |
| start\_index integer  Returned | Sort order index of the first resource in the returned array. **Allowable Values:**  Any integer |
| end\_index integer  Returned | Sort order index of the last resource in the returned array. **Allowable Values:**  Any integer |
| is\_more boolean  Returned | A value of `true` indicates that more unreturned resources exist. **Allowable Values:**  `true`, `false` |
| data array of objects  Returned | List of statement files. **Allowable Values:**  One or more statement files |
| data\[].**token** string  Conditionally returned | Unique identifier of the statement file. **Allowable Values:**  36 char max |
| data\[].**account\_token** string  Conditionally returned | Unique identifier of the credit account on which the statement PDF file is generated. **Allowable Values:**  36 char max  Existing account token |
| data\[].**statement\_summary\_token** uuid  Conditionally returned | Unique identifier of the statement summary. **Allowable Values:**  Existing statement summary token |
| data\[].**opening\_date** datetime  Conditionally returned | Date and time when the statement period began. **Allowable Values:**  Format: yyyy-MM-ddThh:mm:ssZ |
| data\[].**closing\_date** datetime  Conditionally returned | Date and time when the statement period ended. **Allowable Values:**  Format: yyyy-MM-ddThh:mm:ssZ |
| data\[].**signed\_url** string  Conditionally returned | The signed URL to retrieve the statement PDF file. **Allowable Values:**  A valid signed URL |
| data\[].**type** string  Conditionally returned | Type of file. **Allowable Values:**  `STATEMENT_PDF` |

## Sample response body

```json JSON expandable lines wrap theme={null}
{
  "count": 1,
  "start_index": 0,
  "end_index": 0,
  "is_more": false,
  "data": [
    {
      "token": "file_token",
      "account_token": "credit_account_token1234",
      "statement_summary_token": "37f07818-2a2c-4c82-a721-a479936d5b2e",
      "opening_date": "2021-07-01T00:27:09Z",
      "closing_date": "2021-07-31T00:27:09Z",
      "signed_url": "<signed_https_url_pointing_to_a_resource_on_S3>",
      "type": "STATEMENT_PDF"
    },
    {
      "token": "file_token",
      "account_token": "credit_account_token4567",
      "statement_summary_token": "79938791-5e15-456a-bf13-c39142c9a763",
      "opening_date": "2021-06-01T00:27:09Z",
      "closing_date": "2021-06-30T00:27:09Z",
      "signed_url": "<signed_https_url_pointing_to_a_resource_on_S3>",
      "type": "STATEMENT_PDF"
    }
  ]
}
```


## Related topics

- [Statements Overview](https://www.marqeta.com/docs/core-api/credit-account-statements.md)
- [List files for a statement summary](https://www.marqeta.com/docs/core-api/credit-account-statements/list-files-summary.md)
- [List files on a bundle or application](https://www.marqeta.com/docs/core-api/credit-applications/list-files-on-bundle.md)
- [Credit Accounts](https://www.marqeta.com/docs/diva-api/credit-accounts.md)
- [Credit Account Adjustments](https://www.marqeta.com/docs/diva-api/credit-account-adjustments.md)
