Your SFTP home contains four top-level folders. Together they implement outbound submission, outbound results, inbound delivery, and inbound archive.
Layout at a glance
{your_sftp_home}/
├── sent_inbox/ ← you upload outbound files here
├── sent_archive/ ← indexes + compliance artifacts (outbound)
├── received_inbox/ ← Marmin drops inbound Peppol exports
└── received_archive/ ← indexes + compliance artifacts (inbound)`sent_inbox/`
Rules
Upload only after the file is fully written (see Automate upload).
After Marmin processes a file, it disappears from
sent_inbox. Do not rely on the inbox as an archive.Only
.jsonand.xlsxfiles are picked up fromsent_inbox(temporary names such as*.partare ignored until renamed).Re-uploading a file with the same basename after a prior run may enqueue another job and replace
sent_archive/{basename}_index.*. Use a new name (timestamp, batch id) for corrections so ERP reconciliation stays clear.
`sent_archive/`
Root index files (Signal 1)
{OriginalUploadStem}_index.jsonor_index.xlsxOne row per document (for XLSX uploads, one row per source line, including grouped multi-line invoices)
Per-document trees (success)
sent_archive/{TIN}/{Source}/{document_type}/{document_uuid}/Source defaults to SFTP or comes from optional source / source_system in the payload—not from the upload filename.
Artifacts (prefix Invoice or Credit_note depending on type):
{Prefix}.json— Marmin create response (success only){Prefix}_response.json— API response body (especially for rejects){Prefix}.xml,{Prefix}_tdd.xml,{Prefix}_c5_mls.xml,{Prefix}_c3_mls.xml,{Prefix}.pdf
Failures (UAE)
File- or document-level ingestion failures are stored under a flat folder — not under {TIN}/{Source}/invoice/ trees (those are success-only):
sent_archive/errors/{Source}/{Source} defaults to SFTP or comes from optional source / source_system in the payload. The folder contains a copy of the uploaded file (original basename) when applicable. Details are on the file index row (ingestion_message); use {Prefix}_response.json when the API returned a body.
`received_inbox/`
Ask the Marmin admin team which file format (JSON vs XLSX) each routing TIN should receive for inbound Peppol delivery, and whether inbound files should match a custom ERP export they mapped from your samples. One format per routing TIN.
`received_archive/`
Root index
received_archive/{document_uuid}_index.jsonor_index.xlsxFields include
document_uuid,peppol_status,retrieval_path
Per-document tree
received_archive/{TIN}/Peppol/{invoice|credit_note|...}/{document_uuid}/Same artifact naming convention as outbound (Invoice.* / Credit_note.*).
Retention and purge
Marmin applies a rolling retention window on archive data (default 60 days from processing). Roughly five days before purge, the account owner may receive a warning email listing paths scheduled for deletion.
After purge, artifact folders are removed and matching index rows show retrieval_path = `PURGED`. The index file itself is usually retained with historical document_uuid, document_number, peppol_status, and ingestion_status for audit; only download paths are gone. Download or sync artifacts into your ERP before the retention window closes.
