# SepaFileBySepaFileId
Download a SEPA file
__Activity name :__ GetSepaFileBySepaFileId
Returns the specified SEPA payments file as a XML file.
This is a read-only table function. The Loket.nl REST API may not support changing the data, or the Invantive UniversalSQL driver for Loket.nl REST does not support it. In the latter case, use the table NativePlatformScalarRequests to upload data to the Loket.nl REST API.
- Catalog: `LoketNlRest`
- Schema: `PayrollRunDownloads`
## Parameters of Table Function
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `batchBooking` | `string` | ☐ | | Determines whether the Batch Booking \<BtchBookg\> tag is included in the SEPA file and if it is which value it is set to. By defualt this value is set to Exclude. Possible values for this parameter are: - Exclude: Do not include \<BtchBookg\> tag in SEPA file - IncludeTrue: Include \<BtchBookg\> tag in SEPA file and set it to 'True' - IncludeFalse: Include \<BtchBookg\> tag in SEPA file and set it to 'False' (Waarden: BtchBookgExclude, BtchBookgTrue, BtchBookgFalse) |
| `paymentType` | `string` | ☐ | | Indicates the type of payment for the SEPA file. In case salary is selected the following will be included in the SEPA xml file ``` <CtgyPurp> <Cd>SALA</Cd> </CtgyPurp> ``` (Waarden: Other, Salary) |
| `requestedExecutionDate` | `datetime` | ☑ | | This value is used when creating the (non) sepa file to set the value of \<ReqdExctnDt\> |
| `sepafileId` | `guid` | ☑ | | Sepa file ID |
## Columns
The columns of the table `SepaFileBySepaFileId` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `DOCUMENT` | `byte[]` | Document | ☐ | |