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

# Download a total SEPA file

`GET /v2/providers/employers/payrolladministrations/payrollruns/{payrollrunId}/totalsepafile`

## Request

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

> **Deprecated.**

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

Returns the total SEPA payments file as a XML file. This file contains the payments of all the available SEPA payment files available for the specified payroll run.

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

## Path parameters

- `payrollrunId` 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/:payrollrunId/totalsepafile/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)
