Draft a purchase order (step 1 of 2)
create_purchase_order_draftCreate a purchase order draft from suggestions or given SKUs, returning a 5-minute confirmation token. Confirm before anything is sent to KiotViet.
Instructions
Drafts a KiotViet purchase order from the current suggestions (or the given product codes) and returns a confirmation_token valid for 5 minutes. Nothing is sent to KiotViet until confirm_purchase_order is called after the user says yes.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_purchase_order_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | ||
| est_total | Yes | ||
| confirmation_token | Yes | ||
| expires_in_seconds | Yes |