История по покупателю
read.counterparty.get_customer_historyRetrieves sales documents and invoices for a buyer counterparty over a specified period, showing what was sold and the amounts.
Instructions
Документы реализации и счета по контрагенту-покупателю за период. Показывает, что и на какие суммы продавали клиенту. Ref_Key — из find_counterparty.
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": {
"ref": "<ref>"
},
"name": "read.counterparty.get_customer_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Дата конца периода (YYYY-MM-DD) | |
| ref | Yes | Ref_Key контрагента | |
| from | No | Дата начала периода (YYYY-MM-DD) | |
| limit | No | Сколько документов вернуть | |
| database | No | Имя базы 1С из list_databases. Без указания — база по умолчанию. | |
| organization | No | Организация (юрлицо) для фильтра: часть названия, ИНН или Ref_Key из list_organizations. Без указания — все организации базы. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| rows | Yes | ||
| count | Yes | ||
| period | Yes | ||
| truncated | Yes | ||
| counterparty | Yes |