Create invoice
invoices_createСоздание счёта и привязка к сделке или покупателю. entity_type: leads или customers, entity_id — id карточки. items: [{description, unit_price, quantity, unit_type}]. quantity по умолчанию 1, unit_type по умолчанию шт. Не больше 50 позиций. Если раздела счетов нет, бэк включает его сам.
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": {
"entity_type": "<entity_type>",
"entity_id": "<entity_id>",
"items": "<items>"
},
"name": "invoices_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| entity_id | Yes | ||
| entity_type | Yes |