Remove a kept document whose keeping time is over
BIL-015. Removes the document's bytes from the store once its retention end has passed and nothing Billing knows still needs it, and keeps the record as the trace: who asked, why and when, then when the store let the bytes go. Asking again answers the same trace. Exported copies and backups are not removed. **Required permission:** `billing.document:remove`
/billing/v1/kept-documents/{documentId}/removalBIL-015. Removes the document's bytes from the store once its retention end has passed and nothing Billing knows still needs it, and keeps the record as the trace: who asked, why and when, then when the store let the bytes go. Asking again answers the same trace. Exported copies and backups are not removed.
Required permission: billing.document:remove
Authorization
oauth2 In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
*/*
curl -X POST "https://example.com/billing/v1/kept-documents/{documentId}/removal" \ -H "Content-Type: application/json" \ -d '{ "reason": "string" }'{ "document_id": "string", "kind": "string", "reason": "string", "removed_at": "2019-08-24T14:15:22Z", "replayed": true, "requested_at": "2019-08-24T14:15:22Z", "requested_by": "string", "retain_until": "2019-08-24T14:15:22Z", "status": "string"}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`
Verify a kept document
BIL-015. Reads the document's retained bytes back and checks them against the size and SHA-256 fingerprint recorded when it was kept, exactly as retrieval does, and answers the result and the verification instant, never the bytes. A check that fails is refused with its reason, naming the document. **Required permission:** `billing.document:verify`