Virtual files
A virtual file is a logical file exposed to partners (PI 12). It maps a name partners use to a physical location and a set of protocol options. Managed in the Virtual files tab or under /api/v1/config/files.

Fields
| Field | Meaning |
|---|---|
id | The virtual file name (PI 12). |
direction | RECEIVE (partners write it), SEND (partners read it) or BOTH. |
recordFormat | 0x80 variable or 0x00 fixed; combined with text gives BU / BF / TV / TF. |
recordLength | Record length (PI 32). |
text | Line records (LF stripped on send, appended on receive) instead of binary chunks. |
ebcdic | Translate article bytes Latin-1 ↔ EBCDIC CP037 on the wire (PI 16 = 1). |
receiveDirectory / receiveFilenamePattern | Where received files land, and the name pattern (${virtualFile}, ${transferId}, ${date}, ${partnerId} …). |
sendFile | The physical file served when a partner reads it. |
connector / connectorPath | Back the file with a storage connector instead of the local filesystem. |
bash
curl -s -H "X-API-Key: $KEY" -H 'Content-Type: application/json' \
"$A/api/v1/config/files" -X POST \
-d '{"id":"INVOICES","enabled":true,"direction":"RECEIVE","recordLength":4096,"recordFormat":128}'Record formats
The node applies proper PeSIT article codecs, so files interoperate with other PeSIT stacks:
- Binary (
BU/BF/BV) — the file is cut into articles of the record length. - Text (
TV/TF) — one article per line; the line feed is removed on send and appended on receive, andTFpads to the record length. - EBCDIC — set
ebcdic: trueto translate text data between the local Latin-1 representation and EBCDIC CP037 on the wire; the responder also honours an incoming PI 16.