SmartGare
API referenceEndpoints

Read and verify a stay's evidence file

BIL-008. By the stay's carrier charge: the stay's entries in occurrence order, its seal, any late evidence kept beside it, and a verification recomputed now from the stored facts. **Required permission:** `billing.evidence:read`

GET/billing/v1/carrier-charges/{invoiceId}/evidence-file

BIL-008. By the stay's carrier charge: the stay's entries in occurrence order, its seal, any late evidence kept beside it, and a verification recomputed now from the stored facts.

Required permission: billing.evidence:read

AuthorizationBearer <token>

In: header

Response Body

*/*

curl -X GET "https://example.com/billing/v1/carrier-charges/{invoiceId}/evidence-file"
{  "algorithm": "string",  "entries": [    {      "content": {        "property1": "string",        "property2": "string"      },      "content_digest": "string",      "event_id": "string",      "event_type": "string",      "fact_kind": "string",      "hash": "string",      "occurred_at": "2019-08-24T14:15:22Z",      "position": 0,      "previous_hash": "string",      "producer": "string",      "received_at": "2019-08-24T14:15:22Z",      "source": "string"    }  ],  "expected_facts": [    "string"  ],  "file_id": "string",  "keyed": true,  "late_facts": [    {      "event_id": "string",      "event_type": "string",      "fact_kind": "string",      "hash": "string",      "position": 0,      "producer": "string",      "received_at": "2019-08-24T14:15:22Z"    }  ],  "opened_at": "2019-08-24T14:15:22Z",  "policy_id": "string",  "seal": {    "algorithm": "string",    "covered_facts": [      "string"    ],    "entry_count": 0,    "final_hash": "string",    "seal_hash": "string",    "sealed_at": "2019-08-24T14:15:22Z"  },  "sealing_milestone": "string",  "vehicle_cycle_id": "string",  "verification": {    "broken_photos": [      "string"    ],    "entries_checked": 0,    "first_broken_position": 0,    "keyed": true,    "late_chain_intact": true,    "late_facts": 0,    "missing_facts": [      "string"    ],    "seal_intact": true,    "sealed": true,    "status": "string",    "warnings": [      "string"    ]  }}