Record a payout's settlement event
record_settlementConnect your settlement events: send a payout provider's settlement event (provider, payout_id, from, to, amount_sent, quoted_rate, fee, amount_settled, settled_at, rail, status) and get a signed landing receipt. The quote is checked against the official rate of the settlement day and the market reads nearest to it (exchange order books, P2P adverts; NGN quotes above the official rate are labelled, not refused); what settled is set against what was quoted, in money and percent; flags say when it landed short, failed or was returned; the receipt carries an Ed25519 signature (verify at POST https://swapeazi.io/api/v1/attestations/verify). Stored append-only for your organisation; the monthly summary per provider is GET https://swapeazi.io/api/v1/landing-receipts/summary?provider=...&month=YYYY-MM. Needs a router key. The same call is POST https://swapeazi.io/api/v1/landing-receipts. SwapEazi never touches the money.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"provider": "<provider>",
"payout_id": "<payout_id>",
"from": "<from>",
"to": "<to>",
"amount_sent": "<amount_sent>",
"quoted_rate": "<quoted_rate>",
"settled_at": "<settled_at>"
},
"name": "record_settlement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ISO code of the currency credited, e.g. NGN. | |
| fee | No | The fee in the source currency, charged on top, e.g. 2.5. | |
| from | Yes | ISO code of the currency sent, e.g. USD. | |
| rail | No | The payout rail, e.g. NIP. | |
| status | No | Default settled. | |
| provider | Yes | The payout provider, e.g. Tabs. | |
| payout_id | Yes | The provider's payout id, e.g. po_3f81c9. | |
| access_key | No | A router key (rk_...), if not sent as a Bearer header. | |
| settled_at | Yes | When it settled, ISO 8601 with time zone, e.g. 2026-11-19T14:02:11Z. | |
| amount_sent | Yes | Amount sent, in the source currency, e.g. 25000. | |
| quoted_rate | Yes | The rate the provider quoted, destination units per source unit, e.g. 1545.20. | |
| amount_settled | No | What the recipient was credited, in the destination currency, e.g. 38630000. |