Export a stay's evidence file whole
BIL-008. By the stay's carrier charge. The manifest, every entry in chain order with the canonical text its digest covers, the seal with the text it is computed over, the late facts and an export digest that is the same each time the same file is exported; an unsealed or incomplete file is labelled so. Attachments carry their bytes only for a caller who may also retrieve kept documents (billing.document:retrieve); otherwise their identity, media type, size and fingerprint only. **Required permission:** `billing.evidence:read`
/billing/v1/carrier-charges/{invoiceId}/evidence-file/exportBIL-008. By the stay's carrier charge. The manifest, every entry in chain order with the canonical text its digest covers, the seal with the text it is computed over, the late facts and an export digest that is the same each time the same file is exported; an unsealed or incomplete file is labelled so. Attachments carry their bytes only for a caller who may also retrieve kept documents (billing.document:retrieve); otherwise their identity, media type, size and fingerprint only.
Required permission: billing.evidence:read
Authorization
oauth2 In: header
Response Body
*/*
curl -X GET "https://example.com/billing/v1/carrier-charges/{invoiceId}/evidence-file/export"{ "attachments": [ { "content": "string", "document_id": "string", "kind": "string", "media_type": "string", "sha256": "string", "size": 0, "source_revision": 0 } ], "day_stamp": { "authority": "string", "day": "2019-08-24", "day_text": "string", "digest": "string", "failure": "string", "stamped_at": "2019-08-24T14:15:22Z", "status": "string", "token": "string", "zone": "string" }, "entries": [ { "canonical_content": "string", "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" } ], "export_digest": "string", "format": "string", "late_facts": [ { "event_id": "string", "event_type": "string", "fact_kind": "string", "hash": "string", "position": 0, "producer": "string", "received_at": "2019-08-24T14:15:22Z" } ], "manifest": { "algorithm": "string", "chain_start_message": "string", "entry_count": 0, "expected_facts": [ "string" ], "file_id": "string", "key_id": "string", "keyed": true, "opened_at": "2019-08-24T14:15:22Z", "policy_id": "string", "sealed": true, "sealing_milestone": "string", "vehicle_cycle_id": "string" }, "seal": { "algorithm": "string", "covered_facts": [ "string" ], "entry_count": 0, "final_hash": "string", "seal_hash": "string", "seal_message": "string", "sealed_at": "2019-08-24T14:15:22Z" }, "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" ] }}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`
Read a stay's evidence pieces without exporting its file
BIL-008. By the stay's carrier charge: the timestamp of the station day the file was sealed on (absent while unsealed) and each evidence photo kept for the stay, as the export carries them. Photos carry their bytes only for a caller who may also retrieve kept documents (billing.document:retrieve); otherwise their identity, media type, size and fingerprint only. No manifest, entries, seal or export digest. **Required permission:** `billing.evidence:read`