Email Purchase Order
email_purchase_orderSend a purchase order to its vendor by email (the PO as a PDF, with prices). A draft (status created) is issued first; an order already issued is sent again. An order that still needs a person's approval is not sent — issue_purchase_order sends it for approval instead. The email goes to the vendor's email address, or to emailTo when given; with neither, the call is refused. The preview shows the recipient, PO number, total and whether the order will be issued. Two-step: preview=true, then commit with the previewReceipt.
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": {
"purchaseOrder": "<purchaseOrder>"
},
"name": "email_purchase_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailTo | No | Optional address to send to instead of the vendor's email (one address). | |
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing is sent until the commit call. | |
| purchaseOrder | Yes | Purchase order id (GUID) or document number (e.g. PO-1042). | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| issued | No | ||
| number | No | ||
| status | No | ||
| emailed | No | ||
| preview | No | ||
| warnings | No | ||
| expiresAt | No | ||
| recipient | No | ||
| emailError | No | ||
| commitInput | No | ||
| emailStatus | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| purchaseOrderId | No | ||
| idempotentReplay | No |