Download the purchase case audit trail as a PDF
GET/purchase-requests/:code/audit-log.pdf
Renders the whole case-wide audit trail (purchase request, orders, credit cards, invoices, approval tasks, activities and comments) as a formal audit record carrying a QR deep link and a SHA-256 content hash.
Permissions: requires the ACCOUNTANT or ADMIN role, purchase-requests:read and object-level visibility. A caller without the role, or a case the caller may not view, returns 404 rather than 403, so the response cannot confirm that a case exists to someone with no right to know. IP addresses appear only when the tenant setting audit/pdf_include_ip_addresses is enabled; the printed content hash folds that setting in, so a document's hash always matches what it shows.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
PDF document
Bad request - code missing
Unauthorized
Forbidden - request denied by authorization, or blocked by the API firewall
Purchase case not found
Too many requests - rate limited by the API firewall; wait out the Retry-After delay before retrying
Response Headers
Delay in seconds a client must wait before retrying the request
Internal server error