Skip to Content
The Makinari API repo now includes an MCP Server — connect your AI models directly. View on GitHub →
MCP ServerToolsPurchase ItemsPOST

Purchase Items

Manage line items on a vendor bill / purchase order. Use after creating a purchases header. Use action=“create” to add a line (requires purchase_id and name or catalog_item_id). Totals on the parent purchase are recalculated automatically.

Input Schema

ParameterTypeDescription
actionstringAction to perform: create, list, update, delete
idstringItem UUID (required for update, delete)
purchase_idstringPurchase UUID (required for create, list)
catalog_item_idstringCatalog Item UUID (optional; hydrates name/unit_cost)
namestringLine name (optional if catalog_item_id is provided)
quantitynumberQuantity (defaults to 1)
unit_costnumberUnit cost (optional if catalog_item_id provides cost)
limitnumberLimit results for list
offsetnumberOffset results for list

Example

{ "action": "create", "purchase_id": "YOUR_PURCHASE_ID", "catalog_item_id": "YOUR_CATALOG_ITEM_ID", "name": "Raw materials", "quantity": 5, "unit_cost": 20 }
Last updated on