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

Sales

Manage sales transactions. Use action=“create” to record a new sale. Use action=“update” to modify a sale record. Use action=“list” to search sales history. Use action=“delete” to remove a sale record.

Input Schema

ParameterTypeDescription
actionstringAction to perform on sales. Enum: create, list, update, delete
customer_idstringCustomer UUID
sale_idstringSale UUID (required for update/delete)
product_idsarrayArray of product UUIDs
payment_methodstringPayment method (e.g. card, transfer)
total_amountnumberTotal amount
statusstringcompleted, pending, cancelled, etc.
notesstringSales notes
discountnumberDiscount amount
taxnumberTax amount
shipping_addressobjectShipping address
site_idstringSite UUID
limitnumberLimit results
offsetnumberOffset results

REST Endpoint

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

POST /api/agents/tools/sales/create POST /api/agents/tools/sales/get POST /api/agents/tools/sales/update POST /api/agents/tools/sales/delete
POST /api/agents/tools/sales/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": 299.00, "payment_method": "card", "status": "completed" }

Response:

{ "success": true, "sale": { "id": "...", "total_amount": 299.00, "status": "completed" } }
Last updated on