SmartGare
API referenceEndpoints

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`

GET/billing/v1/kept-documents/{documentId}/content

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

AuthorizationBearer <token>

In: header

Response Body

*/*

*/*

curl -X GET "https://example.com/billing/v1/kept-documents/{documentId}/content"
"string"