record_sale
Records a sale order with item details, customer, channel, and payment status; automatically deducts product stocks in Chirak to keep inventory updated.
Instructions
Record a sale order and automatically deduct the corresponding product stocks in Chirak.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"items": "<items>"
},
"name": "record_sale"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | List of items in the order. | |
| notes | No | Order notes or special delivery instructions. | |
| channel | No | Sale channel: 'WhatsApp', 'Instagram', 'Fiziki Mağaza', 'Web Sitesi', 'Telefon Siparişi', 'Diğer'. | |
| customerName | No | Customer full name (optional). | |
| customerPhone | No | Customer phone number (optional). | |
| paymentStatus | No | Payment status: 'Ödendi', 'Ödenmedi', 'Kısmi Ödeme'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Result data payload from Chirak API. | |
| success | No | Status of the tool execution. |