rr_record_proforma_invoice
Records a supplier's proforma invoice on a purchase order, capturing PI number, date, total and payment terms. Moves sent or confirmed orders to pi_received and updates existing PI details.
Instructions
Record a supplier's proforma invoice (PI) on a purchase order: its number, date, total and payment terms. A sent or confirmed order moves to pi_received; one already at pi_received has its PI details updated; any other status is refused. Send only the fields the seller gave you.
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_id": "<po_id>"
},
"name": "rr_record_proforma_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| po_id | Yes | The purchase order id or its PO number, for example REV-PO-002. | |
| pi_date | No | The invoice date, ISO 8601, for example 2026-10-18. | |
| pi_terms | No | The payment terms as a JSON object under 4 KB, for example {"deposit_pct": 30, "balance": "on shipment"}. | |
| pi_total | No | The invoice total. | |
| pi_number | No | The proforma invoice number. |