Books-ready record for a payment
books_recordA books-ready, standards-referenced record of one managed payment for the payer's own books: the invoice in the functional currency at approval and at settlement at dated official rates (ECB for EUR, SARB for ZAR, named with date), fees split out, the realised FX difference between approval and settlement, the conversion cost against the official rate, the landed amount, stablecoin legs each valued at its own time with the measured premium (classification left to the company's accountant), and the Rate Receipt and release record ids. Give run_id (+ payment_id) for a Payment Run (pr_sample works without a key), or the figures (business, payment, legs). format: json (record + suggested journal lines, accounts left to the company), csv or journal. closing: { date, currencies } adds the period-end closing rate for open balances. SwapEazi posts nothing to any ledger and decides no accounting policy.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "books_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legs | No | Stablecoin legs: [{ at, kind: conversion|transfer|payout, from: {amount, currency}, to: {amount, currency}, venue?, ref? }] | |
| format | No | json (default): the record with suggested journal lines; csv; or journal lines only. | |
| run_id | No | A payment run (pr_...), or pr_sample. | |
| closing | No | { date: YYYY-MM-DD, currencies: ["USD", "USDC"], functional? }: period-end closing rates with source. | |
| payment | No | { invoice?: {amount, currency}, sent: {amount, currency}, landed?: {amount, currency}, approved_at, settled_at?, fees?: [{label, amount, currency, paid_by?: payer|beneficiary}], reference?, payee? } | |
| business | No | { name?, country (ISO 2), functional_currency? (defaults from country), framework?: IFRS | US_GAAP | LOCAL_GAAP } | |
| evidence | No | { rate_receipt_ids?, release_record_id?, assessment_id?, approval?: {approver, approved_at} } | |
| access_key | No | The router key that made the run (not needed for pr_sample or given figures). | |
| payment_id | No | One payment of the run; all payments when left out. |