Record a payment
record_paymentRecords that the participant has already paid someone back (settling up); the amount defaults to what they owe that person. It records a completed payment only and moves no money. Use when the user says the money was actually sent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | Saved plan link (e.g. https://lesgooo.fun/ab12/when) or its 4-character plan ID. Links without a plan ID (e.g. https://lesgooo.fun/when) are unsaved local drafts and are not accepted. | |
| amount | No | Optional; defaults to the suggested settle-up amount. | |
| participant_id | Yes | From create_plan or join_plan. | |
| allow_duplicate | No | Only if the user confirms a second, identical payment within 10 minutes (otherwise it is treated as a retry). | |
| participant_token | Yes | From create_plan or join_plan. | |
| to_participant_id | Yes | Who received the money (participant_id, or their exact name). |