SmartGare
API referenceEndpoints

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`

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

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

AuthorizationBearer <token>

In: header

Response Body

*/*

curl -X GET "https://example.com/billing/v1/carrier-charges/{invoiceId}/evidence-file/pieces"
{  "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"  },  "file_id": "string",  "sealed": true}