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.
/api/receipt_download/get_url
Generate an encrypted download URL for the specified document.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
receipt_id | int | Document identifier | |
receipt_type_id | int | Document type identifier | |
base_url | string | Base URL the download path will be appended to (e.g. https://tenant.logzi.com/) |
Response Fields (result.data)
| Field | Type | Description |
|---|---|---|
url_key | string | URL-encoded encrypted key |
url_part | string | Relative download path (with key) |
url | string | Full 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}
Create your account now,
pay later!