arm-ka-docs/contracts/examples/ex-payload-vgo-pairs.json
Andrey Epifancev 013f7b673a ЕХ: схема ex-payload-v1, примеры, проверка в validate_contracts (#208)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 23:05:15 +04:00

193 lines
6.0 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"schema_version": "1.0",
"item_type": "vgo_pairs",
"units": "rub",
"generated_at": "2025-11-20T10:05:00Z",
"source_version_no": 1,
"data": {
"balance": {
"version_id": "99999999-9999-4999-8999-999999999999",
"statement_type": "balance",
"rules_version_no": 1,
"rules": [],
"aggregates": [
{
"rule_id": "66666666-6666-4666-8666-000000000006",
"rule_no": 6,
"company_1": {
"id": "11111111-1111-4111-8111-111111111111",
"name": "ООО «Альфа»"
},
"company_2": {
"id": "22222222-2222-4222-8222-222222222222",
"name": "ООО «Бета»"
},
"side_1": {
"article_line": "1230",
"accounts": [
"62.01"
],
"amount": "102000000.00",
"entries": [
{
"entry_ids": [],
"legal_entity_id": "11111111-1111-4111-8111-111111111111",
"counterparty_id": "22222222-2222-4222-8222-222222222222",
"account_code": "62.01",
"side": "D",
"amount": "102000000.00",
"decision": "AUTO",
"candidate_rule_ids": []
}
]
},
"side_2": {
"article_line": "1520",
"accounts": [
"60.01"
],
"amount": "100000400.50",
"entries": [
{
"entry_ids": [],
"legal_entity_id": "22222222-2222-4222-8222-222222222222",
"counterparty_id": "11111111-1111-4111-8111-111111111111",
"account_code": "60.01",
"side": "K",
"amount": "100000400.50",
"decision": "AUTO",
"candidate_rule_ids": []
}
]
},
"deviation_amount": "1999599.50",
"deviation_percent": "2.00",
"exceeds_threshold": false,
"status": "AUTO",
"eliminated_amount": "100000400.50",
"composition_changed": false,
"correction": null
},
{
"rule_id": "66666666-6666-4666-8666-000000000006",
"rule_no": 6,
"company_1": {
"id": "22222222-2222-4222-8222-222222222222",
"name": "ООО «Бета»"
},
"company_2": {
"id": "11111111-1111-4111-8111-111111111111",
"name": "ООО «Альфа»"
},
"side_1": {
"article_line": "1230",
"accounts": [
"62.01"
],
"amount": "10000000.00",
"entries": [
{
"entry_ids": [],
"legal_entity_id": "22222222-2222-4222-8222-222222222222",
"counterparty_id": "11111111-1111-4111-8111-111111111111",
"account_code": "62.01",
"side": "D",
"amount": "10000000.00",
"decision": "AUTO",
"candidate_rule_ids": []
}
]
},
"side_2": {
"article_line": "1520",
"accounts": [
"60.01",
"76.05"
],
"amount": "50000000.00",
"entries": [
{
"entry_ids": [],
"legal_entity_id": "11111111-1111-4111-8111-111111111111",
"counterparty_id": "22222222-2222-4222-8222-222222222222",
"account_code": "60.01",
"side": "K",
"amount": "12000000.00",
"decision": "AUTO",
"candidate_rule_ids": []
},
{
"entry_ids": [],
"legal_entity_id": "11111111-1111-4111-8111-111111111111",
"counterparty_id": "22222222-2222-4222-8222-222222222222",
"account_code": "76.05",
"side": "K",
"amount": "38000000.00",
"decision": "AUTO",
"candidate_rule_ids": []
}
]
},
"deviation_amount": "40000000.00",
"deviation_percent": "400.00",
"exceeds_threshold": true,
"status": "DISCREPANCY",
"eliminated_amount": "0.00",
"composition_changed": false,
"correction": {
"status": "APPLIED",
"version_no": 1,
"debit": [
{
"line_code": "1230",
"amount": "10000000.00"
}
],
"credit": [
{
"line_code": "1520",
"amount": "10000000.00"
}
],
"comment": "Сверка Бета → Альфа: разница — аванс, исключаем подтверждённое",
"reason_code": null,
"updated_by": {
"user_id": "44444444-4444-4444-8444-444444444444",
"full_name": "Петрова Мария Ивановна"
},
"updated_at": "2025-11-12T14:30:00Z"
}
}
],
"unallocated": [
{
"entry_ids": [],
"owner": {
"id": "33333333-3333-4333-8333-333333333333",
"name": "ООО «Гамма»"
},
"counterparty": {
"id": "11111111-1111-4111-8111-111111111111",
"name": "ООО «Альфа»"
},
"account_code": "76.09",
"line_code": null,
"side": "D",
"amount": "350000.00",
"candidate_rule_ids": [],
"reason": "MULTIPLE_RULES",
"excluded": true
}
],
"totals": {
"amount_1": "112000000.00",
"amount_2": "150000400.50",
"deviation_amount": "41999599.50",
"correction_debit": "10000000.00",
"correction_credit": "10000000.00"
}
},
"income": null
}
}