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

Sales Order

Manage sales orders. Use action=“create” to create a sales record and optionally an order. Use action=“update” to update an order. Use action=“list” to search orders. Use action=“delete” to remove an order.

Input Schema

ParameterTypeDescription
actionstringAction to perform on sales orders. Enum: create, list, update, delete
customer_idstringCustomer UUID
order_idstringOrder UUID (required for update/delete)
product_idsarrayArray of product UUIDs (for create)
payment_methodstringPayment method (e.g. card, transfer)
total_amountnumberTotal amount
create_orderbooleanCreate full order record
statusstringpending, completed, etc.
notesstringOrder notes
discountnumberDiscount amount
taxnumberTax amount
shipping_addressobjectShipping address
order_detailsobjectAdditional order details
delivery_datestringDelivery date (for update)
shipping_methodstringShipping method (for update)
prioritystringPriority: low, medium, high (for update)
sale_idstringSale UUID (for list)
site_idstringSite UUID (for list)
limitnumberLimit results
offsetnumberOffset results

REST Endpoint

Actions map to sub-routes: create/create, list/get, update/update, delete/delete.

POST /api/agents/tools/sales-order/create POST /api/agents/tools/sales-order/get POST /api/agents/tools/sales-order/update POST /api/agents/tools/sales-order/delete
POST /api/agents/tools/sales-order/create Authorization: Bearer YOUR_API_KEY Content-Type: application/json { "site_id": "YOUR_SITE_ID", "customer_id": "CUSTOMER_UUID", "product_ids": ["PRODUCT_UUID"], "total_amount": 499.00, "payment_method": "transfer", "create_order": true }

Response:

{ "success": true, "order": { "id": "...", "status": "pending", "total_amount": 499.00 } }
Last updated on