Document Download URL API

Generate an encrypted download URL for sharing documents with a partner

Base URL

https://{tenant}.logzi.com/api/receipt_download/

Every request returns a JSON response. On success result.code == 1, on error result.code == 0. This endpoint generates an AES-encrypted, URL-encoded download key for the public download of a document — for partner access without authentication.

GET /api/receipt_download/get_url

Generate an encrypted download URL for the specified document.

Query Parameters

ParameterTypeRequiredDescription
receipt_idintDocument identifier
receipt_type_idintDocument type identifier
base_urlstringBase URL the download path will be appended to (e.g. https://tenant.logzi.com/)

Response Fields (result.data)

FieldTypeDescription
url_keystringURL-encoded encrypted key
url_partstringRelative download path (with key)
urlstringFull download URL (base_url + url_part)

Example Request

GET /api/receipt_download/get_url?receipt_id=150&receipt_type_id=8&base_url=https://tenant.logzi.com/
X-API-KEY: {your_api_key}

Get in touch with us

Interested in our software? Feel free to write to us!

Need help?

If you can't find the answer and need assistance

Create your account now,
pay later!

Try it free for 3 days, no risk, no obligation!