---
title: "Get batch error files"
method: GET
path: "/api/batches/{batchId}/files"
tags: ["Batch"]
---

# Get batch error files

`GET /api/batches/{batchId}/files`

## Request

- Base URL: `https://sandbox-l.ppay.io`
- URL: `https://sandbox-l.ppay.io/api/batches/{batchId}/files`
- Auth: HTTP bearer

Returns a set of URLs that can be accessed to retrieve the batch error files.

For sample calls, see the [public Postman collection](https://www.postman.com/peachpayments/peach-payments-public-workspace/request/8h7ed7l/payment-links-public?action=share&creator=20323380&ctx=documentation&active-environment=13324425-10da86ae-9bc2-4124-8f55-f7255fa3ff55).

## Response `200`

Batch error files successfully retrieved.

- object
  - `errorFileUrl` string, url
  - `errorDetailsFileUrl` string, url

## Other responses

- `404`: The specified resource was not found.

---

[API](https://skmtc.dev/peachpayments/apis/payment-links.md) - [All operations](https://skmtc.dev/peachpayments/apis/payment-links/llms.txt) - [OpenAPI document](https://skmtc.dev/peachpayments/apis/payment-links/revisions/3a63dca6b297?raw)
