Complete this checklist before uploading production traffic. Run everything in sandbox first with the credentials from your developer portal.
1. Enable SFTP and collect credentials
What to ask your administrator (if SFTP is missing):
Enable the SFTP Document Ingestion feature on your organization subscription.
For unchanged ERP exports (custom mapping), plan time with Marmin to ingest your sample files and configure mappings before production traffic.
Provide sandbox vs production org access and SFTP host / port for each environment (from Marmin onboarding).
Confirm business profiles exist for every seller TIN you will upload.
In the developer portal (org root user):
Settings → Integration Settings → SFTP ingestion → turn Enable SFTP on.
SFTP configuration → Create configuration (first time) or View / Edit — set SFTP username and password; note poll interval and max concurrent files.
Scroll to Received document connector mapping when configuring inbound Peppol delivery (same page).
SSH / keys: Client login uses the password you save in SFTP configuration. The portal may show a Marmin worker public key for Marmin-side polling — it is not your SFTP client key. Customer-managed SSH public keys are arranged through Marmin if your policy requires key-only login.
Sandbox vs production: Use the host, port, and username for the environment you are testing from your onboarding pack. Do not hard-code hosts from doc examples.
Test connectivity:
sftp -P <port> <username>@<sftp-host>
# At the sftp> prompt:
ls
# Expect sent_inbox sent_archive received_inbox received_archive
byeUse ssh -i /path/to/key when your account is key-based:
sftp -P <port> -i /path/to/private_key <username>@<sftp-host>2. Choose outbound file format
Your org may lock one primary spreadsheet template per configuration—align SFTP ingestion settings with what you upload.
Default bulk-upload XLSX
For the template path, use the same column headers as portal bulk upload (for example Document number *, document type code, line items). Column rules and examples live in Excel template guidelines. Download the `.xlsx` template from the portal bulk upload flow (DOWNLOAD TEMPLATE on the screen you use for sales invoices) or use the file your administrator provisions — it is the same layout SFTP expects when connector_key is empty on every row.
Native JSON (no `connector_key`)
A single JSON object without connector_key and without an ERP metadata/payload wrapper is treated as a native create body—the same field rules as the REST Create sale invoice API. See Create sale invoice (and the matching credit-note create page for 381). Include `accounting_supplier_party` and `accounting_customer_party` in the file you upload.
Starter file with both parties (replace placeholders before upload):
Also walked through step-by-step in Manual upload.
Native JSON is available on standard UAE SFTP accounts whenever the file is a single JSON object without connector_key — no separate portal toggle. If your rollout uses connector-only transforms, use connector JSON/XLSX instead.
Other document types (credit note, self-billed): Use the same SFTP folders (sent_inbox → sent_archive) and index rules. Build one native JSON object per file from:
Connector routes use a different `connector_key` and published mapping per document type (see Connectors).
Connector JSON (illustrative ERP export)
Connector uploads carry your ERP’s field names, not the Marmin API shape. You do not redesign the export for Marmin—you provide samples; Marmin builds the mapping. Every production file must match the same shape as the samples that were onboarded.
Manufactured example (fictional INVOICE_* keys inside `payload`; `connector_key` inside `payload`) — do not copy verbatim:
Before go-live, run connector preview on a real ERP export and save the approved key list as your golden file.
Connector preview click-path (developer portal):
Connectors (left nav) → open your connector (note the `connector_key` on the detail page).
Open the target version → Edit in builder (or go to the version builder).
Sample ERP — paste JSON or upload an XLSX export from your ERP; apply so field names appear in the mapper.
Mapping config — confirm path-party mappings (seller TIN or profile for sales documents).
Preview → Run preview — fix errors until preview succeeds; export or copy the field list your SFTP files must use.
Publish — publish the version so status is ACTIVE (SFTP ingestion requires an ACTIVE published connector).
Repo samples are layout-only; portal preview output is your golden mapping.
Connector go-live checklist (Marmin + your team)
Before production SFTP traffic, confirm:
[ ] SFTP feature enabled for the org
[ ] Business profiles exist for every seller TIN (or profile id) in files
[ ] Connectors published and ACTIVE in the developer portal for each ERP layout
[ ] Written list of `connector_key` values per document type (invoice, credit note, self-billed types)
[ ] Sample golden file per format (connector JSON, connector XLSX, or default template) validated in sandbox
[ ] Received mapping configured (if importing Peppol purchases via SFTP)
3. Custom templates (your ERP export unchanged)
If you send your own JSON or XLSX structure (not the default bulk-upload template or native JSON):
Share sample exports with Marmin (one file per document type you plan to upload).
Marmin configures mappings from those samples. If they need a routing field on each file, they tell you the name and value (often
connector_key)—add it only as instructed, without changing the rest of your export.Validate in sandbox with a real ERP batch file, then keep using the same export job in production.
Mappings must include path party fields for seller TIN or profile ID. SFTP processing only succeeds after Marmin has published the mapping for your samples.
4. Required payload fields
Upload filenames are not parsed for routing. All routing comes from file body content.
`Source` segment rules: Marmin uses column/key `source`, then `source_system`, then defaults to `SFTP`. On wrapped connector JSON, read source / source_system from inside `payload` (not from top-level siblings). Use short alphanumeric tokens (for example ORACLE, SAP); avoid /, \, and characters your SFTP client cannot use in folder names. Keep labels under 64 characters so archive paths stay portable across SFTP clients.
5. Configure inbound (optional)
To receive Peppol purchase invoices on SFTP:
Settings → Integration Settings → SFTP ingestion → Received document connector mapping.
For each routing TIN, set
file_format(jsonorxlsx) and optional connector per bucket (INV,CN,SBINV,SBCN).
When a bucket has an ACTIVE connector, received_inbox/{document_uuid}.json (or .xlsx) is the ERP-shaped export from connector transform — field names follow that published mapping for the active connector version. When the bucket connector is omitted, the inbox file is full Marmin API JSON or default bulk template XLSX per the row’s file_format.
Connectors are optional per bucket; when omitted, Marmin writes the full document using the row’s file_format (native JSON or default bulk template XLSX).
Even without received mapping rows, terminal Peppol inbound documents still produce `received_archive/{document_uuid}_index.json` and `received_inbox/{document_uuid}.json` for UAE (for ERP-shaped export when mapping is added later, configure buckets before relying on column layout).
6. Sandbox validation checklist
[ ] Business profile TIN matches payloads
[ ] Test JSON upload produces
_indexfile undersent_archive[ ] At least one row shows
ingestion_statusSUCCESS[ ]
retrieval_pathopens a UUID folder withInvoice.pdforCredit_note.pdf[ ] Inbound test (if applicable): Peppol receipt creates
received_inbox/{uuid}.*
Inbound sandbox (optional)
Inbound SFTP files appear only after a Peppol purchase document is delivered to your business profile with terminal clearance:
Complete §5 Configure inbound for the routing TIN on your test profile.
In sandbox, have a trading partner (or Marmin test partner) send a Peppol purchase invoice to your registered endpoint — same as production Peppol onboarding, not a special SFTP-only trigger.
Poll
received_inbox/for a new{document_uuid}.jsonor.xlsx, then readreceived_archive/{uuid}_index.*forretrieval_pathandpeppol_status.
If you have no Peppol partner in sandbox yet, finish outbound native JSON testing first and coordinate inbound Peppol test data with Marmin support.
Upload size and batching
SFTP docs do not publish a maximum file size or row count. Keep each upload to a single coherent batch (one logical export). Prefer fewer, larger XLSX files over thousands of one-line JSON files. If ingestion fails on very large files, split by batch id in the filename and contact Marmin support with the upload stem and index ingestion_message.
