Карточка предложения
curl --request GET \
--url https://api.tungo.kz/v1/companies/{co}/proposals/{id} \
--cookie tungo.session_token=import requests
url = "https://api.tungo.kz/v1/companies/{co}/proposals/{id}"
headers = {"cookie": "tungo.session_token="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'tungo.session_token='}};
fetch('https://api.tungo.kz/v1/companies/{co}/proposals/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "P-000123",
"kind": "sale",
"kind_title": "Реализация товаров и услуг",
"status": "previewed",
"status_title": "Ждёт решения",
"created_at": "2026-07-10T09:15:00.000Z",
"level": "L0",
"level_title": "Предложение, одобряет человек",
"title": "Реализация товаров и услуг от 2026-07-10 · ТОО «Пример»",
"total": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"vat": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"line_count": 123,
"warning_count": 123,
"blocker_count": 123,
"approval": {
"allowed": true,
"requires_right": "proposals.approve",
"blocked_by_blockers": true,
"reason": "<string>"
},
"approval_request": {
"can_request": true,
"requested": {
"by": "<string>",
"by_name": "Айгерим Сапарова",
"at": "2023-11-07T05:31:56Z",
"note": "<string>"
},
"href": "<string>"
},
"dialog_id": "<string>",
"origin": {
"source": "chat",
"dialog_id": "<string>",
"batch_id": "<string>",
"run_id": "<string>"
},
"href": "/v1/companies/co_01jx0000000000000000000000/proposals/P-000123",
"source": {
"channel": "mcp",
"note": "<string>"
},
"intent": {},
"header": {
"document_title": "Реализация товаров и услуг",
"entity_set": "Document_РеализацияТоваровУслуг",
"date": "2026-07-10",
"total": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"vat": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"net": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"accounts": [
{
"field": "СчетУчетаБУ",
"title": "Счёт учёта (БУ)",
"code": "1330",
"ref": "00000000-0000-0000-0000-000000000000"
}
],
"organization": {
"ref": "00000000-0000-0000-0000-000000000000",
"name": "ТОО «Пример»",
"bin": "000000000000"
},
"counterparty": {
"ref": "00000000-0000-0000-0000-000000000000",
"name": "ТОО «Пример»",
"bin": "000000000000"
},
"contract": {
"ref": "00000000-0000-0000-0000-000000000000",
"name": "<string>",
"number": "<string>",
"date": "<string>",
"kind": "<string>"
},
"prices_include_vat": true,
"comment": "<string>",
"payment_purpose": "<string>"
},
"lines": [
{
"no": 123,
"section": "goods",
"item": {
"ref": "<string>",
"name": "<string>"
},
"quantity": 2,
"price": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"sum": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"vat_rate_title": "<string>",
"vat": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"total": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"accounts": [
{
"field": "СчетУчетаБУ",
"title": "Счёт учёта (БУ)",
"code": "1330",
"ref": "00000000-0000-0000-0000-000000000000"
}
],
"description": "<string>",
"vat_rate": 12
}
],
"postings": [
{
"debit": "1210",
"credit": "6010",
"amount": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"label": "<string>",
"computed_by_1c": true
}
],
"warnings": [
"<string>"
],
"blockers": [
"<string>"
],
"actions": [
{
"action": "approve",
"label": "<string>",
"method": "POST",
"href": "<string>",
"enabled": true,
"effect": "<string>",
"body": {
"post": true,
"idempotency_key": "<uuid от клиента>"
},
"disabled_reason": "<string>"
}
],
"history": [
{
"at": "2023-11-07T05:31:56Z",
"status": "previewed",
"status_title": "<string>",
"actor": "<string>",
"note": "<string>",
"code": "<string>"
}
],
"summary": "<string>",
"counterparty": {
"ref": "00000000-0000-0000-0000-000000000000",
"name": "ТОО «Пример»",
"bin": "000000000000"
},
"document_number": "0000-000123",
"advance_offset": {
"amount": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"to_pay": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"debit": "<string>",
"credit": "<string>",
"note": "<string>"
},
"result": {
"number": "<string>",
"ref": "00000000-0000-0000-0000-000000000000",
"postings": [
{
"debit": "1210",
"credit": "6010",
"amount": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"label": "<string>",
"computed_by_1c": true
}
],
"mismatches": [
"<string>"
]
}
}{
"type": "error",
"error": {
"type": "payment_required_error",
"message": "Баланс доп. использования закончился — пополнить его или включить автопополнение могут владелец и админ workspace.",
"code": "balance_exhausted",
"permission": "proposals.approve",
"resets_at": "2026-11-01T19:00:00.000Z",
"retry_after_seconds": 42,
"next_request_at": "2026-11-12T09:30:42.000Z",
"allowed_methods": [
"email_otp"
],
"role": "<string>",
"permissions": [
"<string>"
],
"fields": [
{
"path": "bin",
"code": "invalid_format",
"message": "БИН/ИИН — 12 цифр"
}
]
},
"request_id": "req_4f9c2a7e1b3d4c5a8e6f7a9b0c1d2e3f"
}{
"type": "error",
"error": {
"type": "payment_required_error",
"message": "Баланс доп. использования закончился — пополнить его или включить автопополнение могут владелец и админ workspace.",
"code": "balance_exhausted",
"permission": "proposals.approve",
"resets_at": "2026-11-01T19:00:00.000Z",
"retry_after_seconds": 42,
"next_request_at": "2026-11-12T09:30:42.000Z",
"allowed_methods": [
"email_otp"
],
"role": "<string>",
"permissions": [
"<string>"
],
"fields": [
{
"path": "bin",
"code": "invalid_format",
"message": "БИН/ИИН — 12 цифр"
}
]
},
"request_id": "req_4f9c2a7e1b3d4c5a8e6f7a9b0c1d2e3f"
}{
"type": "error",
"error": {
"type": "payment_required_error",
"message": "Баланс доп. использования закончился — пополнить его или включить автопополнение могут владелец и админ workspace.",
"code": "balance_exhausted",
"permission": "proposals.approve",
"resets_at": "2026-11-01T19:00:00.000Z",
"retry_after_seconds": 42,
"next_request_at": "2026-11-12T09:30:42.000Z",
"allowed_methods": [
"email_otp"
],
"role": "<string>",
"permissions": [
"<string>"
],
"fields": [
{
"path": "bin",
"code": "invalid_format",
"message": "БИН/ИИН — 12 цифр"
}
]
},
"request_id": "req_4f9c2a7e1b3d4c5a8e6f7a9b0c1d2e3f"
}{
"type": "error",
"error": {
"type": "payment_required_error",
"message": "Баланс доп. использования закончился — пополнить его или включить автопополнение могут владелец и админ workspace.",
"code": "balance_exhausted",
"permission": "proposals.approve",
"resets_at": "2026-11-01T19:00:00.000Z",
"retry_after_seconds": 42,
"next_request_at": "2026-11-12T09:30:42.000Z",
"allowed_methods": [
"email_otp"
],
"role": "<string>",
"permissions": [
"<string>"
],
"fields": [
{
"path": "bin",
"code": "invalid_format",
"message": "БИН/ИИН — 12 цифр"
}
]
},
"request_id": "req_4f9c2a7e1b3d4c5a8e6f7a9b0c1d2e3f"
}{
"type": "error",
"error": {
"type": "payment_required_error",
"message": "Баланс доп. использования закончился — пополнить его или включить автопополнение могут владелец и админ workspace.",
"code": "balance_exhausted",
"permission": "proposals.approve",
"resets_at": "2026-11-01T19:00:00.000Z",
"retry_after_seconds": 42,
"next_request_at": "2026-11-12T09:30:42.000Z",
"allowed_methods": [
"email_otp"
],
"role": "<string>",
"permissions": [
"<string>"
],
"fields": [
{
"path": "bin",
"code": "invalid_format",
"message": "БИН/ИИН — 12 цифр"
}
]
},
"request_id": "req_4f9c2a7e1b3d4c5a8e6f7a9b0c1d2e3f"
}{
"type": "error",
"error": {
"type": "payment_required_error",
"message": "Баланс доп. использования закончился — пополнить его или включить автопополнение могут владелец и админ workspace.",
"code": "balance_exhausted",
"permission": "proposals.approve",
"resets_at": "2026-11-01T19:00:00.000Z",
"retry_after_seconds": 42,
"next_request_at": "2026-11-12T09:30:42.000Z",
"allowed_methods": [
"email_otp"
],
"role": "<string>",
"permissions": [
"<string>"
],
"fields": [
{
"path": "bin",
"code": "invalid_format",
"message": "БИН/ИИН — 12 цифр"
}
]
},
"request_id": "req_4f9c2a7e1b3d4c5a8e6f7a9b0c1d2e3f"
}ИИ-бухгалтер: предложения
Карточка предложения
Шапка, строки, проводки, блокеры, доступные действия.
Доступ: company.read.
Доступно по ключу API.
GET
/
v1
/
companies
/
{co}
/
proposals
/
{id}
Карточка предложения
curl --request GET \
--url https://api.tungo.kz/v1/companies/{co}/proposals/{id} \
--cookie tungo.session_token=import requests
url = "https://api.tungo.kz/v1/companies/{co}/proposals/{id}"
headers = {"cookie": "tungo.session_token="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'tungo.session_token='}};
fetch('https://api.tungo.kz/v1/companies/{co}/proposals/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "P-000123",
"kind": "sale",
"kind_title": "Реализация товаров и услуг",
"status": "previewed",
"status_title": "Ждёт решения",
"created_at": "2026-07-10T09:15:00.000Z",
"level": "L0",
"level_title": "Предложение, одобряет человек",
"title": "Реализация товаров и услуг от 2026-07-10 · ТОО «Пример»",
"total": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"vat": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"line_count": 123,
"warning_count": 123,
"blocker_count": 123,
"approval": {
"allowed": true,
"requires_right": "proposals.approve",
"blocked_by_blockers": true,
"reason": "<string>"
},
"approval_request": {
"can_request": true,
"requested": {
"by": "<string>",
"by_name": "Айгерим Сапарова",
"at": "2023-11-07T05:31:56Z",
"note": "<string>"
},
"href": "<string>"
},
"dialog_id": "<string>",
"origin": {
"source": "chat",
"dialog_id": "<string>",
"batch_id": "<string>",
"run_id": "<string>"
},
"href": "/v1/companies/co_01jx0000000000000000000000/proposals/P-000123",
"source": {
"channel": "mcp",
"note": "<string>"
},
"intent": {},
"header": {
"document_title": "Реализация товаров и услуг",
"entity_set": "Document_РеализацияТоваровУслуг",
"date": "2026-07-10",
"total": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"vat": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"net": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"accounts": [
{
"field": "СчетУчетаБУ",
"title": "Счёт учёта (БУ)",
"code": "1330",
"ref": "00000000-0000-0000-0000-000000000000"
}
],
"organization": {
"ref": "00000000-0000-0000-0000-000000000000",
"name": "ТОО «Пример»",
"bin": "000000000000"
},
"counterparty": {
"ref": "00000000-0000-0000-0000-000000000000",
"name": "ТОО «Пример»",
"bin": "000000000000"
},
"contract": {
"ref": "00000000-0000-0000-0000-000000000000",
"name": "<string>",
"number": "<string>",
"date": "<string>",
"kind": "<string>"
},
"prices_include_vat": true,
"comment": "<string>",
"payment_purpose": "<string>"
},
"lines": [
{
"no": 123,
"section": "goods",
"item": {
"ref": "<string>",
"name": "<string>"
},
"quantity": 2,
"price": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"sum": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"vat_rate_title": "<string>",
"vat": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"total": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"accounts": [
{
"field": "СчетУчетаБУ",
"title": "Счёт учёта (БУ)",
"code": "1330",
"ref": "00000000-0000-0000-0000-000000000000"
}
],
"description": "<string>",
"vat_rate": 12
}
],
"postings": [
{
"debit": "1210",
"credit": "6010",
"amount": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"label": "<string>",
"computed_by_1c": true
}
],
"warnings": [
"<string>"
],
"blockers": [
"<string>"
],
"actions": [
{
"action": "approve",
"label": "<string>",
"method": "POST",
"href": "<string>",
"enabled": true,
"effect": "<string>",
"body": {
"post": true,
"idempotency_key": "<uuid от клиента>"
},
"disabled_reason": "<string>"
}
],
"history": [
{
"at": "2023-11-07T05:31:56Z",
"status": "previewed",
"status_title": "<string>",
"actor": "<string>",
"note": "<string>",
"code": "<string>"
}
],
"summary": "<string>",
"counterparty": {
"ref": "00000000-0000-0000-0000-000000000000",
"name": "ТОО «Пример»",
"bin": "000000000000"
},
"document_number": "0000-000123",
"advance_offset": {
"amount": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"to_pay": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"debit": "<string>",
"credit": "<string>",
"note": "<string>"
},
"result": {
"number": "<string>",
"ref": "00000000-0000-0000-0000-000000000000",
"postings": [
{
"debit": "1210",
"credit": "6010",
"amount": {
"amount": 1234.5,
"amount_tiyn": 123450,
"formatted": "1 234,50 ₸"
},
"label": "<string>",
"computed_by_1c": true
}
],
"mismatches": [
"<string>"
]
}
}{
"type": "error",
"error": {
"type": "payment_required_error",
"message": "Баланс доп. использования закончился — пополнить его или включить автопополнение могут владелец и админ workspace.",
"code": "balance_exhausted",
"permission": "proposals.approve",
"resets_at": "2026-11-01T19:00:00.000Z",
"retry_after_seconds": 42,
"next_request_at": "2026-11-12T09:30:42.000Z",
"allowed_methods": [
"email_otp"
],
"role": "<string>",
"permissions": [
"<string>"
],
"fields": [
{
"path": "bin",
"code": "invalid_format",
"message": "БИН/ИИН — 12 цифр"
}
]
},
"request_id": "req_4f9c2a7e1b3d4c5a8e6f7a9b0c1d2e3f"
}{
"type": "error",
"error": {
"type": "payment_required_error",
"message": "Баланс доп. использования закончился — пополнить его или включить автопополнение могут владелец и админ workspace.",
"code": "balance_exhausted",
"permission": "proposals.approve",
"resets_at": "2026-11-01T19:00:00.000Z",
"retry_after_seconds": 42,
"next_request_at": "2026-11-12T09:30:42.000Z",
"allowed_methods": [
"email_otp"
],
"role": "<string>",
"permissions": [
"<string>"
],
"fields": [
{
"path": "bin",
"code": "invalid_format",
"message": "БИН/ИИН — 12 цифр"
}
]
},
"request_id": "req_4f9c2a7e1b3d4c5a8e6f7a9b0c1d2e3f"
}{
"type": "error",
"error": {
"type": "payment_required_error",
"message": "Баланс доп. использования закончился — пополнить его или включить автопополнение могут владелец и админ workspace.",
"code": "balance_exhausted",
"permission": "proposals.approve",
"resets_at": "2026-11-01T19:00:00.000Z",
"retry_after_seconds": 42,
"next_request_at": "2026-11-12T09:30:42.000Z",
"allowed_methods": [
"email_otp"
],
"role": "<string>",
"permissions": [
"<string>"
],
"fields": [
{
"path": "bin",
"code": "invalid_format",
"message": "БИН/ИИН — 12 цифр"
}
]
},
"request_id": "req_4f9c2a7e1b3d4c5a8e6f7a9b0c1d2e3f"
}{
"type": "error",
"error": {
"type": "payment_required_error",
"message": "Баланс доп. использования закончился — пополнить его или включить автопополнение могут владелец и админ workspace.",
"code": "balance_exhausted",
"permission": "proposals.approve",
"resets_at": "2026-11-01T19:00:00.000Z",
"retry_after_seconds": 42,
"next_request_at": "2026-11-12T09:30:42.000Z",
"allowed_methods": [
"email_otp"
],
"role": "<string>",
"permissions": [
"<string>"
],
"fields": [
{
"path": "bin",
"code": "invalid_format",
"message": "БИН/ИИН — 12 цифр"
}
]
},
"request_id": "req_4f9c2a7e1b3d4c5a8e6f7a9b0c1d2e3f"
}{
"type": "error",
"error": {
"type": "payment_required_error",
"message": "Баланс доп. использования закончился — пополнить его или включить автопополнение могут владелец и админ workspace.",
"code": "balance_exhausted",
"permission": "proposals.approve",
"resets_at": "2026-11-01T19:00:00.000Z",
"retry_after_seconds": 42,
"next_request_at": "2026-11-12T09:30:42.000Z",
"allowed_methods": [
"email_otp"
],
"role": "<string>",
"permissions": [
"<string>"
],
"fields": [
{
"path": "bin",
"code": "invalid_format",
"message": "БИН/ИИН — 12 цифр"
}
]
},
"request_id": "req_4f9c2a7e1b3d4c5a8e6f7a9b0c1d2e3f"
}{
"type": "error",
"error": {
"type": "payment_required_error",
"message": "Баланс доп. использования закончился — пополнить его или включить автопополнение могут владелец и админ workspace.",
"code": "balance_exhausted",
"permission": "proposals.approve",
"resets_at": "2026-11-01T19:00:00.000Z",
"retry_after_seconds": 42,
"next_request_at": "2026-11-12T09:30:42.000Z",
"allowed_methods": [
"email_otp"
],
"role": "<string>",
"permissions": [
"<string>"
],
"fields": [
{
"path": "bin",
"code": "invalid_format",
"message": "БИН/ИИН — 12 цифр"
}
]
},
"request_id": "req_4f9c2a7e1b3d4c5a8e6f7a9b0c1d2e3f"
}Авторизации
sessionapiKeybearerKey
Сессия кабинета: cookie ставит вход через /v1/auth/* (Better Auth), браузер шлёт её сам — фронтенду кабинета ничего добавлять не нужно (fetch с credentials: 'include'). За HTTPS имя cookie — __Secure-tungo.session_token. Сессия кончилась — 401 authentication_error: отправить на вход.
Параметры пути
Ответ
Карточка
Полная карточка предложения: шапка, строки, проводки, блокеры, кнопки и история
Что ИИ предлагает записать в 1С (подпись по-русски — в kind_title):
- sale — реализация товаров и услуг (продажа покупателю);
- purchase — поступление товаров и услуг (покупка у поставщика);
- bank_receipt — входящее платёжное поручение (деньги пришли на счёт);
- bank_payment — исходящее платёжное поручение (оплата со счёта);
- counterparty — новый контрагент (карточка справочника, не документ);
- contract — новый договор с контрагентом (карточка справочника);
- revert — отмена ранее записанного документа (распровести и пометить на удаление);
- inventory_writeoff — списание товаров;
- cash_order_in — приходный кассовый ордер (наличные в кассу);
- cash_order_out — расходный кассовый ордер (наличные из кассы);
- advance_report — авансовый отчёт подотчётного лица.
Доступные опции:
sale, purchase, bank_receipt, bank_payment, counterparty, contract, revert, inventory_writeoff, cash_order_in, cash_order_out, advance_report Где предложение в жизненном цикле (подпись по-русски — в status_title рядом):
- previewed — ждёт решения бухгалтера: показать кнопки «Записать» и «Отклонить»;
- approved — одобрено, но запись в 1С не закончена (1С не ответила): «Записать» ещё раз безопасно — второй документ не создастся;
- rejected — отклонено, в 1С ничего не записано; конечное;
- committed — записано в 1С черновиком, без проведения (проводок нет);
- posted — записано и проведено, проводки ещё не сверены;
- verified — проведено, фактические проводки 1С совпали с ожидаемыми; конечное, всё хорошо;
- mismatch — проведено, но проводки расходятся с ожидаемыми: показать предупреждение, причины — в result.mismatches;
- failed — записать не удалось: причина — в последней записи history.
Доступные опции:
previewed, approved, rejected, committed, posted, verified, mismatch, failed Уровень самостоятельности ИИ для этого вида операции по политике компании (подпись — в level_title):
- L0 — только чтение; L1 — ИИ предлагает, одобряет человек (обычный случай);
- L2 — ИИ сам записывает черновик; L3 — ИИ проводит сам, с возможностью отмены; L4 — ИИ проводит сам;
- HUMAN_ONLY — только человек и только по одному: пачкой не одобряется (исход policy_blocked);
- FORBIDDEN — запрещено политикой: одобрить нельзя (403, error.code = policy_blocked).
Доступные опции:
L0, L1, L2, L3, L4, HUMAN_ONLY, FORBIDDEN