Create document draft
create_document_draftCreate a draft accounting document for a partner, specifying the document kind (e.g., sales invoice, payment) and optional details, and receive a confirmation payload.
Instructions
Create a draft accounting document and return a short confirmation payload.
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": {
"kind": "<kind>",
"partner_id": "<partner_id>"
},
"name": "create_document_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| note | No | ||
| items | No | ||
| company | No | ||
| profile | No | ||
| currency | No | ||
| due_date | No | ||
| tax_date | No | ||
| issue_date | No | ||
| partner_id | Yes | ||
| document_type_id | No | ||
| payment_method_id | No |