Create Purchase Order
logiwa_create_purchase_orderCreates a new purchase order (PO) in Logiwa with required vendor, warehouse, currency, and order lines. Returns the new PO identifier and status.
Instructions
Create a new purchase (inbound) order.
Required: code, clientIdentifier, vendor, purchaseOrderTypeName, warehouseIdentifier, currencyId, purchaseOrderLineList (>=1 line). Resolve client/warehouse/type/currency with logiwa_lookup and logiwa_list_warehouses. Other fields via additional_fields.
Returns: the create response (new PO identifier / status).
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": {
"code": "<code>",
"clientIdentifier": "<clientIdentifier>",
"vendor": "<vendor>",
"purchaseOrderTypeName": "<purchaseOrderTypeName>",
"warehouseIdentifier": "<warehouseIdentifier>",
"currencyId": "<currencyId>",
"purchaseOrderLineList": "<purchaseOrderLineList>"
},
"name": "logiwa_create_purchase_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Unique PO code (required). | |
| note | No | ||
| vendor | Yes | Vendor name (required). | |
| currencyId | Yes | Currency id (required). | |
| referenceNumber | No | ||
| clientIdentifier | Yes | Client UUID (required). | |
| additional_fields | No | Escape hatch for any extra Logiwa request-body fields not exposed as typed parameters above. Keys must match the Logiwa API's camelCase field names; merged verbatim into the request body. | |
| warehouseIdentifier | Yes | Destination warehouse UUID (required). | |
| plannedReceivingDate | No | ISO date-time. | |
| purchaseOrderLineList | Yes | PO line products (required, >=1). | |
| purchaseOrderTypeName | Yes | Purchase order type name (required). See logiwa_lookup. |