SmartGare
API referenceEndpoints

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`

POST/billing/v1/kept-documents/{documentId}/verification

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

AuthorizationBearer <token>

In: header

Response Body

*/*

*/*

curl -X POST "https://example.com/billing/v1/kept-documents/{documentId}/verification"
{  "document_id": "string",  "result": "string",  "verified_at": "2019-08-24T14:15:22Z"}