Export file formats: XML, JSON, CSV and TXT
Updated November 23, 2026
Each Exrule panel publishes one active rate file in the chosen format — XML, JSON, CSV or TXT. Format and field dictionary affect syntax only: calculated rates, record order and decimal precision remain identical across all options.
Supported export file formats
The file format and field dictionary are global panel settings. Only a superadmin can change them in export settings.
- XML (default format) — suited to most standard exchanger platform importers.
- JSON — an array of objects where every value is encoded as a string so consumers never lose decimal precision when parsing numbers.
- CSV — a header row followed by comma-separated records with LF line endings.
- TXT — tab-separated lines with no header row; an empty export produces an empty file.
Pick a field dictionary for your website or bot
Use full or compact when your integration matches directions by currency codes. The pair dictionary fits custom bots and scripts that consume directional numeric IDs from the source catalog.
- full (default): from, to, in, out. The in value is always 1, and out holds the calculated rate.
- compact: from, to, rate. Drops the constant in=1 field and delivers the calculated rate directly as rate, equal to out.
- pair: pair_id, rate. Delivers a directional numeric pair_id together with the calculated rate.
Public URL publishing and caching headers
Depending on the selected format, the panel serves the active file at its public path: /courses.xml, /courses.json, /courses.csv or /courses.txt. Only the active format path serves the file; requests to the other extensions return 404.
Every completed export run replaces the active file atomically so importers never read a partial write. Public endpoints support ETag, Last-Modified and HTTP 304 Not Modified responses, allowing your website or bot to poll efficiently without re-downloading unchanged data.
XML example with the full dictionary
<?xml version="1.0" encoding="UTF-8"?>
<rates>
<item>
<from>CODE_A</from>
<to>CODE_B</to>
<in>1</in>
<out>41.63</out>
</item>
</rates> Illustrative example using placeholder codes CODE_A and CODE_B. Rates are always formatted as plain decimal strings with a dot and no spaces.
JSON and CSV examples with the compact dictionary
// JSON (compact dictionary)
[{"from":"CODE_A","to":"CODE_B","rate":"41.63"}]
# CSV (compact dictionary)
from,to,rate
CODE_A,CODE_B,41.63 Both examples deliver the exact same calculated rate 41.63 for CODE_A to CODE_B, changing only the syntax your parser reads.
Check consumers before switching formats
Switching the format or field dictionary changes the published file for the entire panel immediately. Confirm that your website importer or custom bot expects the new path and fields, then inspect the first completed export run on a control pair.