---
title: "Download a SEPA file"
method: GET
path: "/v2/providers/employers/payrolladministrations/payrollruns/sepafiles/{sepafileId}"
tags: ["Payroll run downloads"]
deprecated: true
---

# Download a SEPA file

`GET /v2/providers/employers/payrolladministrations/payrollruns/sepafiles/{sepafileId}`

## Request

- Base URL: `https://api.loket.nl`
- URL: `https://api.loket.nl/v2/providers/employers/payrolladministrations/payrollruns/sepafiles/{sepafileId}`
- Auth: none required

> **Deprecated.**

__Activity name :__ <a href="https://developer.loket-ontw.nl/Activities/GetSepaFileBySepaFileId" target="_blank">GetSepaFileBySepaFileId</a>

Returns the specified SEPA payments file as a XML file.

__Deprecated:__ This endpoint will be unavailable after 2026-12-31.

## Path parameters

- `sepafileId` string, uuid, required

## Query parameters

- `paymentType` 'Other' | 'Salary'
- `batchBooking` 'BtchBookgExclude' | 'BtchBookgTrue' | 'BtchBookgFalse'
- `requestedExecutionDate` string, date, required

## Headers

- `Authorization` string, required
- `Accept` string, required

## Response `200`

OK

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

## Changes

- **2026-11-03** `32170564148f`: 1 info
  - endpoint deprecated

[Operation history](https://skmtc.dev/loket/apis/loket-api/changes/v2/providers/employers/payrolladministrations/payrollruns/sepafiles/:sepafileId/get.md)

---

[API](https://skmtc.dev/loket/apis/loket-api.md) - [All operations](https://skmtc.dev/loket/apis/loket-api/llms.txt) - [OpenAPI document](https://skmtc.dev/loket/apis/loket-api/revisions/32170564148f?raw)
