create_purchase_order
Creates a draft purchase order for an existing supplier with article rows, pricing, currency, and delivery details without sending it.
Instructions
Create a purchase order (not sent). rows: [{article_number, quantity, price (in the PO currency), description?}]; every article must exist (create_article first). Currency defaults to the supplier's, the rate comes from Fortnox. internal_reference = your own reference (e.g. the supplier's order number). language = Fortnox language code for the PO document (GB = English). Delivery address = the stock point's address, else the company address from Fortnox.
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": {
"supplier_number": "<supplier_number>",
"rows": "<rows>"
},
"name": "create_purchase_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| dry_run | No | ||
| currency | No | ||
| language | No | GB | |
| delivery_date | No | ||
| our_reference | No | ||
| payment_terms | No | ||
| supplier_number | Yes | ||
| confirmation_email | No | ||
| internal_reference | No | ||
| message_to_supplier | No |