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

# Download a total SEPA file

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

__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.

## 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

---

[API](https://skmtc.net/loket-acc/apis/loket-api.md) · [All operations](https://skmtc.net/loket-acc/apis/loket-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/loket-acc/loket-api/revisions/b32a42be97f7/schema)
