Workflow

How to Download a Sales Invoice PDF from a Public Link

Verified end to end. Demo run public-sales-invoice-download-pdf-20260519T214219Z opened the public link for FT 9999/1699, clicked Download, and verified the browser downloaded a PDF named FT 9999_1699.pdf.

Evidence Summary

Public page
https://pdoc.officegest.com/rwsCRlSDlOXcA36UO7Y
Source invoice
999901699 / FT 9999/1699
Downloaded file
FT 9999_1699.pdf
Evidence file
raw/playwright/workflows/latest-public-sales-invoice-download-pdf.json

Verified public sales invoice PDF download workflow

When to Use This

Use this when the customer or another recipient has a public OfficeGest document link and wants to download the PDF copy. This is outside the authenticated OfficeGest backoffice and does not require logging in.

Step-by-Step

  1. Open the public document link. The verified link was https://pdoc.officegest.com/rwsCRlSDlOXcA36UO7Y.
  2. Confirm the page title is OfficeGest's Public Documents.
  3. Confirm the invoice summary is the expected document. The verified page showed FT 9999/1699, customer 100 Ouvidos Lda, due date 2026-05-20, and amount 3.69 EUR.
  4. Click Download.
  5. Save or open the downloaded PDF. The verified browser download filename was FT 9999_1699.pdf.

Verified Behavior

CheckObserved result
Public metadatagetpublicdoc returned success:true, document type FT, number 999901699, document number FT 9999/1699, customer 100 Ouvidos Lda, total 3.69, and currency EUR.
Public pageThe page showed invoice details and a Download button.
Download clickThe click fetched https://democomercial.officegest.com/download/?docfl=... and created a browser download with blob URL.
Action logThe public page posted {"action":"download","document_type":"FT","document_number":999901699,...} to /api/v2/sales/action-log.
PDF fileThe downloaded file was named FT 9999_1699.pdf, had a valid %PDF-1.7 header, and was larger than 1 KB.

Backend Calls Observed

Action or endpointPurpose
services.guisoft.pt/officegest/getpublicdoc/{token}Loads public document metadata, customer/company details, and the PDF URL.
democomercial.officegest.com/download/?docfl=...Fetches the PDF file used by the public page and by the Download button.
democomercial.officegest.com/api/v2/sales/action-logLogs public document view/download attempts. In the unauthenticated verified run, the action-log response returned 401, but the PDF download still completed.

Raw evidence: raw/playwright/workflows/public-sales-invoice-download-pdf-20260519T214219Z.json. Screenshot: assets/screenshots/public-sales-invoice-download-pdf-20260519T214219Z-01-public-document-page.png. Downloaded artifact: raw/playwright/downloads/public-sales-invoice-download-pdf-20260519T214219Z-FT 9999_1699.pdf.