Add a payment to the Payment Index
add_payment_outcomeAdds one payment the caller made to the SwapEazi Payment Index, voluntarily: currencies, amount sent, amount landed (after every deduction), the date it landed and the route type. SwapEazi works out the all-in cost against that day's reference with its landed-cost arithmetic and publishes the row as SELF-REPORTED; with a receipt or statement in files it is read and matched to the figures (amounts within 0.5%, date within 3 days) and published as VERIFIED, and the file is not kept unless keep_file is true. Refused with the reason when a field is invalid, the date is in the future or over two years old, the day has no reference, or the amounts are more than 15% from it. Costs below -50 or above 800 bps, or payments over USD 25m, are held for review, not published. No names, company or account details are taken; the provider is masked (e.g. 'a South African bank') unless show_provider is true. Returns a withdraw token. Same as POST /api/v1/index/payments.
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": {
"source_currency": "<source_currency>",
"destination_currency": "<destination_currency>",
"amount_sent": "<amount_sent>",
"amount_landed": "<amount_landed>",
"date": "<date>"
},
"name": "add_payment_outcome"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | The day it landed, YYYY-MM-DD. | |
| files | No | Optional receipt or statement for VERIFIED: [{ name, media_type, data (base64) }], PDF or image. | |
| keep_file | No | true: keep the file after it is read. Default false: read, matched, not stored. | |
| route_type | No | bank, payout_network, otc, exchange, stablecoin, card or not_stated. | |
| amount_sent | Yes | What left, in the currency sent. | |
| amount_landed | Yes | What arrived, in the currency received, after every deduction. | |
| provider_name | No | Optional; shown on the row only when show_provider is true. | |
| show_provider | No | true: show provider_name on the row. Default false (masked). | |
| source_currency | Yes | Currency sent, three letters, e.g. 'ZAR'. | |
| provider_country | No | Optional two-letter country of the provider, for the masked description. | |
| destination_currency | Yes | Currency received, three letters, e.g. 'MZN'. |