Record a payment
record_paymentRecord that one person paid another back, settling part or all of a debt. Use get_split first to see who should pay whom. Works on simple, accountless splits. Secure splits (created by a signed-in user) are read-only here and must be opened in a browser.
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": {
"split": "<split>",
"from": "<from>",
"to": "<to>",
"amount": "<amount>"
},
"name": "record_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Who received it — a participant's name (or id) in this split. | |
| date | No | Date as YYYY-MM-DD. Defaults to today. | |
| from | Yes | Who sent the money — a participant's name (or id) in this split. | |
| split | Yes | The split key, or the whole https://split.xuper.fun/k/<key> link. | |
| amount | Yes | Amount in the split's currency, as a decimal (e.g. 249.50). | |
| description | No | How it was paid, e.g. "Swish, 3 March". Shown in the history. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| url | Yes | ||
| title | Yes | ||
| secure | Yes | ||
| entries | Yes | ||
| settled | Yes | ||
| currency | Yes | ||
| created_at | Yes | ||
| settlement | Yes | ||
| total_spent | Yes | ||
| participants | Yes |