Outbound vs inbound (one page)
Full loop: How it works. Sandbox inbound Peppol: Prepare § inbound sandbox.
Self-service readiness
SFTP vs REST API
You may use both: SFTP for bulk sales and APIs for ad-hoc corrections.
Can I use webhooks with SFTP?
Yes. Webhooks fire on document lifecycle events regardless of whether the document was created via API, portal, or SFTP. Many teams use SFTP for upload and webhooks for status push to the ERP instead of polling—configure both if your network allows HTTPS egress from Marmin to your endpoint. Webhooks may arrive before or after the sent_archive index row is written; always reconcile on `document_uuid`, not upload filename or webhook order alone.
Hybrid: SFTP upload + webhooks
Join webhook payloads to SFTP rows on `document_uuid` (same id as the index document_uuid after Signal 1 and on REST GET). Webhook event types and payload shape are documented in Webhook events and Request format. Your upload filename stem is not included on webhooks—persist document_uuid from the index when you need to correlate batch files to async events.
Ingestion-complete gate: Treat `sent_archive/{stem}_index.*` (Signal 1) as the authoritative “file processed” milestone for SFTP uploads. Webhooks may arrive before or after that index exists depending on event type; hybrid designs should not mark a batch row successful on webhook alone until the index row shows `ingestion_status` and a stable `document_uuid`.
Where are connectors configured?
Connectors (left nav) holds ERP mappings. `connector_key` appears on the connector detail page. Run preview and Publish are on each version builder — see Connector preview click-path. Outbound SFTP files must match the ACTIVE published version for that key.
What document types are supported outbound?
Sales invoice, sales credit note, self-billed purchase invoice, and self-billed purchase credit note—routed from connector document_type or native type codes in JSON/default template.
Error reference
Validation messages often mirror REST API rules. Cross-check field requirements with:
Purchase document APIs
If you later ingest purchases via HTTP instead of SFTP, see Purchase invoices in the Businesses path.
Support checklist
When opening a support ticket, include:
Upload filename and UTC timestamp
Index row (
ingestion_status,ingestion_message,peppol_status)document_uuidandretrieval_path(if notPURGED)Organization id and seller TIN used in the file
