ProofedMesh/schemas/sink/db/expense/examples/v1.2.0/with-receipts-and-per-diem.json

105 lines
4.1 KiB
JSON
Raw Permalink Normal View History

{
"schema": { "name": "sink.db.expense", "version": "1.2.0" },
"workflow_id": "WF-2026-0044",
"approval_id": "APR-2026-0044",
"decision_id": "DEC-2026-0044",
"verification_ref": "sha256:4444000000000000000000000000000000000000000000000000000000000004",
"canonical_payload_hash": "sha256:5555000000000000000000000000000000000000000000000000000000000005",
"expense": {
"employee_id": "EMP-12345",
"currency": "EUR",
"total_amount": "484.50",
"trip": {
"start_date": "2026-10-01",
"end_date": "2026-10-03",
"destination": "Berlin",
"purpose": "Kundentermin + Workshop"
},
"items": [
{
"type": "HOTEL",
"amount": "328.50",
"incurred_on": "2026-10-01",
"description": "Hotel Berlin Mitte, 2 Nächte",
"receipt_ref": "pii://receipts/WF-2026-0044/01HFXYZ.pdf",
"receipt_content_hash": "sha256:a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2",
"receipt_attestation_ref": "sha256:deadbeefcafefeeddeadbeefcafefeeddeadbeefcafefeeddeadbeefcafefeed",
"allocations": [
{
"project_code": "P-42", "cost_center": "CC-100", "gl_account": "640100",
"amount": "328.50",
"source_attestation_ref": "sha256:1111000000000000000000000000000000000000000000000000000000000001"
}
]
},
{
"type": "PER_DIEM_ARRIVAL",
"amount": "14.00",
"incurred_on": "2026-10-01",
"computed_from": {
"transform_attestation_ref": "sha256:2222000000000000000000000000000000000000000000000000000000000002",
"rate_query_attestation_ref": "sha256:3333000000000000000000000000000000000000000000000000000000000003",
"rate_id": "PDR-42"
},
"allocations": [
{
"project_code": "P-42", "cost_center": "CC-100", "gl_account": "646100",
"amount": "14.00",
"source_attestation_ref": "sha256:1111000000000000000000000000000000000000000000000000000000000001"
}
]
},
{
"type": "PER_DIEM_FULL",
"amount": "28.00",
"incurred_on": "2026-10-02",
"computed_from": {
"transform_attestation_ref": "sha256:2222000000000000000000000000000000000000000000000000000000000002",
"rate_query_attestation_ref": "sha256:3333000000000000000000000000000000000000000000000000000000000003",
"rate_id": "PDR-42"
},
"allocations": [
{
"project_code": "P-42", "cost_center": "CC-100", "gl_account": "646100",
"amount": "28.00",
"source_attestation_ref": "sha256:1111000000000000000000000000000000000000000000000000000000000001"
}
]
},
{
"type": "PER_DIEM_DEPARTURE",
"amount": "14.00",
"incurred_on": "2026-10-03",
"computed_from": {
"transform_attestation_ref": "sha256:2222000000000000000000000000000000000000000000000000000000000002",
"rate_query_attestation_ref": "sha256:3333000000000000000000000000000000000000000000000000000000000003",
"rate_id": "PDR-42"
},
"allocations": [
{
"project_code": "P-42", "cost_center": "CC-100", "gl_account": "646100",
"amount": "14.00",
"source_attestation_ref": "sha256:1111000000000000000000000000000000000000000000000000000000000001"
}
]
},
{
"type": "TRANSPORT_RAIL",
"amount": "100.00",
"incurred_on": "2026-10-01",
"description": "ICE Hin- und Rückfahrt",
"receipt_ref": "pii://receipts/WF-2026-0044/01HFABC.pdf",
"receipt_content_hash": "sha256:b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3",
"receipt_attestation_ref": "sha256:cafefeeddeadbeefcafefeeddeadbeefcafefeeddeadbeefcafefeeddeadbeef",
"allocations": [
{
"project_code": "P-42", "cost_center": "CC-100", "gl_account": "640200",
"amount": "100.00",
"source_attestation_ref": "sha256:1111000000000000000000000000000000000000000000000000000000000001"
}
]
}
]
}
}