Read a kept document's details
BIL-015. What the document is, the source revision it was kept for, its size and SHA-256 fingerprint once drawn, its status (PENDING, AVAILABLE, REMOVING, REMOVED), its retention period and end, when it was asked for and made available, the last failure of a pending document, and its removal trace once a removal was asked for. Never its bytes; reading creates nothing. **Required permission:** `billing.document:read`
/billing/v1/kept-documents/{documentId}BIL-015. What the document is, the source revision it was kept for, its size and SHA-256 fingerprint once drawn, its status (PENDING, AVAILABLE, REMOVING, REMOVED), its retention period and end, when it was asked for and made available, the last failure of a pending document, and its removal trace once a removal was asked for. Never its bytes; reading creates nothing.
Required permission: billing.document:read
Authorization
oauth2 In: header
Response Body
*/*
curl -X GET "https://example.com/billing/v1/kept-documents/{documentId}"{ "available_at": "2019-08-24T14:15:22Z", "failed_at": "2019-08-24T14:15:22Z", "failure": "string", "id": "string", "kind": "string", "media_type": "string", "removal": { "reason": "string", "removed_at": "2019-08-24T14:15:22Z", "requested_at": "2019-08-24T14:15:22Z", "requested_by": "string" }, "requested_at": "2019-08-24T14:15:22Z", "retain_until": "2019-08-24T14:15:22Z", "retention": "string", "sha256": "string", "size": 0, "source_id": "string", "source_revision": 0, "status": "string"}Settle a fee invoice in cash at the counter
Collects the exact issued amount on the open register. The invoice id is the movement reference, so a retry does not collect twice. **Required permission:** `billing.fee-invoice:settle`
Retrieve a kept document's bytes
BIL-015. The whole document, handed over only after its retained bytes were read back and matched the size and SHA-256 fingerprint recorded when it was kept. A pending, missing or altered document, or a store that cannot be reached, is refused with its reason and no byte. **Required permission:** `billing.document:retrieve`