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).
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. |