splitwise_create_comment
Post a comment on a Splitwise expense to leave a shared note everyone on it can see. Writes must be enabled (SPLITWISE_ALLOW_WRITES=1).
Instructions
Add a comment to a Splitwise expense.
Write — refused unless SPLITWISE_ALLOW_WRITES=1. Calls POST /create_comment with
expense_id and content. Everyone on the expense can see the comment. Not
idempotent: calling it twice posts the comment twice.
When to Use:
To leave a note on an expense ("paid in cash", "includes the tip").
When NOT to Use:
To change the expense's own description or notes — use
splitwise_update_expense.To read existing comments — use
splitwise_get_comments.
Returns: A confirmation echoing the comment Splitwise returned: its id, the expense id, the author, the type, the creation time and the text.
Examples:
params = {"expense_id": 51023, "content": "Paid in cash, settled at dinner."}
Error Handling:
Refused with Error: … writes are disabled unless SPLITWISE_ALLOW_WRITES=1. A blank
content is rejected before any call. 404 = the expense does not exist or was
deleted; 403 = you are not part of it. On a timeout or 5xx the outcome is UNKNOWN —
read the comments back with splitwise_get_comments before retrying, or the comment
may be posted twice. Undo with splitwise_delete_comment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |