Introduction
Every document stored in the Invopop Console is represented internally by a signed GOBL Envelope plus companion data (files, activity logs, relationships, metadata, and signatures). The Document Content view lets you inspect the full lifecycle and structure of a document so you can:- Verify integrity (signatures, hashes, states)
- Understand changes over time (activity timeline)
- Access generated artifacts (PDF, XML, JSON, regulatory payloads)
- Explore related documents (credit notes, corrections, substitutions)
- See enriched metadata (regime addons, workflow states, custom keys)
Envelope
Every stored document is a GOBL envelope: a wrapper that adds metadata and digital signatures around the business document. It has four top-level properties.Header
The header holds envelope-level metadata, not business data. Document properties such astype, series and code live inside doc.
Files
The Files tab lists generated or attached artifacts: Common File Types:- PDF: Human-readable rendition (may include mandatory QR, stamp, legends).
- XML / Structured: Regulatory submission payloads (Facturae, FatturaPA, KSeF FA(3), CFDI, UBL, CII).
- JSON: Original or transformed GOBL snapshot.
- Auxiliary: Attachments (agreement, identity docs, shipping notes, images).
- Signature logs or hash chains.
- Generation steps (e.g. “Generate PDF”, “Generate VERI*FACTU XML”) append files.
- Cancellation / correction workflows may add new XML replacing or referencing prior versions.
- Archival workflows create summarized CSV/SAF-T exports and attach them.
- Files are immutable once attached; regeneration creates a new file or updates version counters (depending on workflow design).
- Never delete compliance artifacts—retain for audit lifetimes (often 5–10 years).
Activity
A chronological log of significant actions affecting the document: Common Events:- Creation (entry uploaded)
- Workflow job started / completed / errored
- State transitions (Draft → Sent → Paid / Void / Error)
- Signature applied or verified
- Attachment added
- External submission (e.g. SDI, AEAT, PAC, KSeF)
- Cancellation or correction accepted
- Reconciliation (payment posted)
- Inspect failed step name and error code.
- Identify if a retry subsequently succeeded.
- Confirm ordering for chained regimes (e.g. hash chain continuity, sequence increments).
- Each event is timestamped (UTC) and references the job/workflow ID.
- Non-destructive: Past events remain even after corrections.
Related
The Related tab lists the documents Invopop has linked to the current envelope, resolved from the UUID references the documents carry. Which property carries each reference depends on the schema — see document references.
Use this tab to confirm that both halves of a correction or refund are consistent, and to gather a full chain — original, adjustments and replacements — when exporting for an audit.
Meta
Structured metadata and key-value pairs attached to the envelope that provide enhanced context: Examples:- Regime Addons:
es-verifactu-v1,pt-saft-v4. - Submission Protocols:
submission.protocol,ksef.hash,cfdi.uuid. - Signature Fingerprints:
signature.sha256,chain.previous_hash. - Workflow Tracking:
workflow.id,job.id,attempt. - Payment Resolution:
payment.status,payment.last_checked. - Custom Business Fields: department code, cost center, channel.
- Workflows read/write meta fields to govern conditional logic (e.g. skip generation if
pdf.generated == true). - API clients can filter entries by meta values for reporting.
- Keep keys namespaced to avoid collisions (
verifactu.*,ksef.*,cfdi.*,custom.*). - Avoid overwriting critical regulatory fields—append new versions or maintain snapshots.
Signatures
JSON Web Signatures of the header. Signature blocks attest to document integrity and authenticity. Depending on regime and workflow: Contents:- Signer identity (certificate thumbprint, key ID).
- Timestamp at signing.
- Hash or digest algorithm (e.g. SHA256).
- Envelope canonicalization details.
- Previous hash (for chaining sequences or regulatory chain requirements).
- Optional signature version or compliance profile.
- Console may display a validity indicator (✔ Valid / ⚠ Warning / ✖ Invalid).
- Invalid signatures often result from post-sign modification of core fields or mismatched hashing algorithm settings.
- For regimes requiring chained documents (Portugal hash chain, VERI*FACTU request chain, Brazilian NF-e sequences), each signature references the preceding hash to prevent tampering.
- Cancellations and corrections may generate new signature entries, preserving prior ones.
- Sign after finalizing monetary and tax details.
- Regenerate PDF only after signature (so signature metadata can appear in the rendered document footer/header if required).
- For multi-sign flows (organization + intermediary) ensure ordering is consistent; verify both before submission.
Quick troubleshooting guide
Recommended review flow
- Open the Envelope: confirm the document’s
type, regime, series and code, and the entry’s state. - Inspect Signatures: validate all present and valid.
- Review Meta: ensure protocol/UUID and tax chain metadata.
- Check Files: required artifacts (PDF + submission XML) present.
- Scan Activity: look for errors or retries.
- Inspect Related: confirm corrections or cancellations linked.
- Export or archive if the document reached terminal state (Sent, Paid, Void, Corrected, Archived).
Glossary
- Envelope: Structured wrapper for the business document and signatures.
- Addon: Extension enabling regime-specific transformations.
- Protocol / UUID / Hash: External authority identifier proving successful submission.
- Preceding: Reference block pointing to an original or prior document.
- Chain: Sequential cryptographic linkage between documents for integrity.
If you need deeper technical detail, consult API references for Silo Entries and Workflow Jobs; this page focuses on Console interpretation and manual audit steps.