amend_purchase_order
Replace the line items on an unapproved purchase order and return it to Draft for resubmission, using a preview confirmation code to apply the amendment.
Instructions
Replace the lines of an unapproved order. It goes back to Draft for resubmission.
Args: po: Purchase order ID. lines: The full new set of lines (same shape as create_purchase_order). confirmation_code: From preview("amend_purchase_order", ). notes: Optional new notes.
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": {
"po": "<po>",
"lines": "<lines>"
},
"name": "amend_purchase_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| po | Yes | ||
| lines | Yes | ||
| notes | No | ||
| confirmation_code | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |