Convert RFP to Purchase Order
convert_rfp_to_purchase_orderMake the purchase order an approved request for proposal (RFP) decides, as the RFP screen's Generate Purchase Order does: a new purchase order in Created status with the RFP's supplier, warehouse, lines and due date, and the RFP marked fulfilled. Nothing is sent to the supplier; issue the order with issue_purchase_order. A person approves the RFP first, in the app; an unapproved RFP is refused. Find RFPs with get_purchase_orders type=rfp. Two-step: preview=true, then commit with the previewReceipt. Requires Write + purchasing.execute.
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": {
"requestForProposal": "<requestForProposal>"
},
"name": "convert_rfp_to_purchase_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 written until the commit call. | |
| 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. | |
| requestForProposal | Yes | Request for proposal id (GUID), document number, or the short form people use for an open one: its last digits ("42", "RFP 42"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| status | No | ||
| preview | No | ||
| expiresAt | No | ||
| totalAmount | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| purchaseOrderId | No | ||
| idempotentReplay | No | ||
| purchaseOrderNumber | No | ||
| requestForProposalId | No | ||
| requestForProposalNumber | No | ||
| requestForProposalVersion | No |