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

Purchases

Manage vendor bills / purchase orders (accounts payable). Use for money owed or paid to suppliers — NOT buyer checkout. Use action=“create” for a draft header (requires title). Use purchase_items to add lines. Use action=“register_payment” to record a supplier payment.

Input Schema

ParameterTypeDescription
actionstringAction to perform: create, list, get, update, delete, register_payment
idstringPurchase UUID (required for get, update, delete, register_payment)
site_idstringSite UUID
titlestringBill / PO title (required for create)
vendor_company_idstringVendor company UUID
statusstringPurchase status: draft, pending, completed, cancelled
amount_duenumberAmount still due to the vendor
currencystringCurrency code (e.g. USD, MXN)
purchase_datestringPurchase date (YYYY-MM-DD)
location_idstringLocation UUID (warehouse / site location)
notesstringNotes for the purchase
amountnumberPayment amount (required for register_payment)
methodstringPayment method (required for register_payment)
payment_notesstringOptional notes for register_payment
limitnumberLimit results for list
offsetnumberOffset results for list

Example

{ "action": "create", "title": "Vendor bill - office supplies", "vendor_company_id": "YOUR_COMPANY_ID", "currency": "USD" }
Last updated on