Export to the ledger
bridge_exportHand the period over: build the file in the ledger's shape, record what went out, and return a download link. Show the person bridge_preview and its totals first; this is the act that says the period has been handed over. Omit "from" to continue from the last hand-over in this format — month-end becomes a diff, not a re-key. Refused while an account the period uses is unmapped, naming which. Hand over the returned link; never relay the file's bytes. The file is kept exactly as it went out, with its control totals and a hash, so a later question about what the ledger received has an answer. Effects: journal file built for the period; hand-over recorded with its control totals; download link minted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Hand over everything on or before this date. ISO date, YYYY-MM-DD. | |
| from | No | Start of the period. Omit to continue from the last hand-over in this format. ISO date, YYYY-MM-DD. | |
| format | Yes | Which ledger shape. | |
| reason | No | Why — "August close", "first hand-over to their Xero". | |
| currency | No | Which currency to hand over (ISO 4217). Required when the period holds more than one: a ledger takes one currency at a time. |