Set a document's status
set_statusMove a document: sent (numbers and locks it, without mailing; send_document does both), accepted or signed or declined (the client answered outside the link); an invoice also late (only when the person says so), paid (mark_paid takes the date), cancelled (the reason in the note is required), written_off (a bad debt). Past due is not a status: see pastDueDays and set_due_date. Never back to draft: that is new_version, or copy_document. The note goes into the thread.
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": {
"document": "<document>",
"status": "<status>"
},
"name": "set_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Why, or where the answer came from. Required for cancelled: the reason. | |
| status | Yes | ||
| document | Yes | The document's id (from list_documents), or its number once sent, like INV-0007. |