Record a payment
record_paymentUse this when one member paid another back. fromParticipantToken paid toParticipantToken amountCents, in minor units. get_group's suggested payments say who should pay whom to settle up.
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": {
"groupToken": "<groupToken>",
"fromParticipantToken": "<fromParticipantToken>",
"toParticipantToken": "<toParticipantToken>",
"amountCents": "<amountCents>"
},
"name": "record_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Defaults to today, or to the day in `Recorded-At`. | |
| currency | No | Defaults to the group currency. | |
| timeOfDay | No | Time of day, `HH:MM` (24-hour). Defaults to the time it is recorded, in Japan time. | |
| groupToken | Yes | The group's token, from `listGroups` or `listSearchResults`. | |
| amountCents | Yes | Payment amount in minor units. | |
| description | No | Blank or omitted uses the default "From → To" label. | |
| idempotencyKey | No | A UUID you make up for this call. If the call fails or gets no answer and you try again, send the same UUID so nothing is added twice. Use a new one for each new thing you add. | |
| toParticipantToken | Yes | The participant who received the payment. | |
| fromParticipantToken | Yes | The participant who paid. |