B2B Invoice Exchange with Automated Processing

Receive XML invoices from 50+ suppliers via SFTP, validate and transform automatically, and deliver to your ERP.

The Problem

A mid-size manufacturing company receives XML invoices from over 50 suppliers. Each supplier has its own SFTP credentials and uploads invoices on its own schedule. The finance team needs every invoice validated against the company schema, transformed into the ERP's native format, and posted to SAP — all without manual intervention.

Today, a shared FTP server with a single login means any supplier can see other suppliers' files. There is no audit trail showing who uploaded what and when. A nightly batch job picks up files and attempts to transform them, but malformed invoices slip through and cause posting errors that take hours to diagnose.

The finance team wants real-time processing with email notifications that include direct download links, so they can review exceptions immediately instead of waiting for the next morning's error report.

How Stylus SFTP Server Solves It

Stylus SFTP Server isolates each supplier into its own home directory, authenticates against Active Directory, and fires a webhook the instant an upload completes. The XPS pipeline validates, transforms, and posts to SAP in real time.

Supplier A Supplier B Supplier N ... SFTP Stylus SFTP Server LDAP Auth Per-Supplier Homes Webhook XPS Pipeline Server Validate XML Transform to SAP POST SAP ERP Invoice Posting Email Finance Team Download Links Errors Alert Email Validation Failures

Step-by-Step Setup

Three configuration files turn Stylus SFTP Server into a fully automated B2B invoice ingestion gateway.

sftp-server.xml — LDAP authentication for supplier accounts
<user-manager>
  <provider>ldap</provider>
  <ldap>
    <url>ldaps://dc.manufacturing.local:636</url>
    <search-base>OU=Suppliers,DC=manufacturing,DC=local</search-base>
    <bind-dn>CN=svc-sftp,OU=ServiceAccounts,DC=manufacturing,DC=local</bind-dn>
    <access-groups>
      <group>StylusSFTP-Suppliers</group>
    </access-groups>
  </ldap>
</user-manager>

<!-- Webhook fires on every upload completion -->
<webhooks>
  <webhook>
    <url>https://xps.manufacturing.local:8443/api/trigger</url>
    <secret>hmac-shared-secret-here</secret>
    <events>
      <event>UPLOAD_COMPLETE</event>
    </events>
  </webhook>
</webhooks>
filesystem-config.xml — isolated per-supplier home directories
<filesystem>
  <home-root>D:/sftp-data/suppliers/${username}</home-root>
  <default-access>read-write</default-access>

  <!-- Atomic upload: staged as .tmp, renamed on completion -->
  <upload>
    <rename-pattern>${filename}</rename-pattern>
    <duplicate-action>timestamp</duplicate-action>
  </upload>

  <volume-guard>
    <min-free-bytes>5368709120</min-free-bytes> <!-- 5 GB -->
  </volume-guard>
</filesystem>
sftp-server.xml — email notifications with download links
<notifications>
  <smtp>
    <host>smtp.manufacturing.local</host>
    <port>587</port>
    <starttls>true</starttls>
    <from>sftp-server@manufacturing.local</from>
  </smtp>
  <rules>
    <rule>
      <event>UPLOAD_COMPLETE</event>
      <to>ap-team@manufacturing.local</to>
    </rule>
  </rules>
</notifications>

Key Benefits

Complete Supplier Isolation

Each supplier gets its own LDAP-authenticated home directory. No supplier can see or access another supplier's files. Credentials managed centrally in Active Directory.

Real-Time Processing

Webhooks fire the instant an upload completes. The XPS pipeline validates and transforms the invoice in seconds, not hours. No more overnight batch jobs.

Instant Finance Alerts

Email notifications with direct download links let the AP team review invoices as they arrive. Validation errors trigger separate alerts so exceptions are caught immediately.

Full Audit Trail

Every upload, download, and login is recorded to four parallel audit sinks: database, log file, syslog, and webhook. Meet SOX and internal compliance requirements with zero effort.

Automate Your B2B Invoice Exchange

Download the free evaluation and connect your first supplier in under five minutes.

Start Free Evaluation