Integration and multi-application · Partners

B2B file and EDI exchange with partners and suppliers

Secure, auditable exchange of orders, invoices and reports with partners that still send files: managed SFTP, validation, translation, acknowledgements and monitoring that proves nothing was lost.

A reference architecture from EITSAA, not a named client system. Service limits, prices and product features change, so confirm current details before you commit to a design.

  • ACSC Essential Eight
  • Australian Privacy Principles
  • Partner security requirements

Architecture

Architecture diagram. Tinted boundaries show regions, accounts, networks and trust zones. Numbered arrows match the flow below.
B2B file and EDI exchange with partners and suppliers architecturePartners to AWS Transfer Family: SFTP key auth. AWS Transfer Family to S3 landing bucket: write. S3 landing bucket to Scan and validate: event. Scan and validate to Translate: clean. Translate to Acknowledge: result. Acknowledge to Partners: ack. Scan and validate to Queue and workflow: valid. Queue and workflow to ERP and CRM: RESTTrading partnersCloud account · Australian regionInternal systemsPartnersSFTP, AS2, HTTPSAWS Transfer FamilySFTP, FTPS, AS2S3 landing bucketKMS, per-partner prefixScan and validateMalware, schema, sizeTranslateEDI to JSON, mappingAcknowledge997, MDN, status fileQueue and workflowSQS, Step Functions, DLQERP and CRMAPIs1SFTP key auth2write3event4clean5result6ack7valid8RESTPlatform servicesIdentityprovider (SSO)Monitoring andalertsAudit log
  • People and clients
  • Object and file storage
  • AI and ML
  • Messaging, events and workflow
  • SaaS and business systems
  • Security and identity
  • Monitoring, audit and analytics
  • Request or data flow
  • Asynchronous or optional
  • Boundary: region, account, network or trust zone

Request and data flow

  1. A partner connects to a managed endpoint with SSH key or certificate authentication, restricted to its own home directory and source IPs.

  2. Files land in a per-partner prefix in an encrypted bucket. Versioning and Object Lock preserve the original as received.

  3. An event triggers scanning for malware, size limits and schema or format validation.

  4. Valid files are translated to the internal format by mapping rules. Invalid files are quarantined and a rejection is generated.

  5. An acknowledgement (such as an EDI 997 or an AS2 MDN, or a status file) is produced for the sender.

  6. The acknowledgement goes back to the partner.

  7. Valid messages enter a queue and workflow with retries and a dead-letter queue.

  8. A worker posts to ERP or CRM APIs with idempotency keys. File, message and result are correlated by one ID.

Components and why they were chosen

ComponentWhat it doesWhy this choice
AWS Transfer Family (or Azure Storage SFTP)Managed SFTP, FTPS and AS2 endpoints backed by object storage.No SFTP servers to patch. Per-user scoping and logging.
S3 with SSE-KMS, Object Lock and lifecycleLanding, archive and quarantine.Immutable evidence of what was received.
Malware scanning (GuardDuty Malware Protection for S3 or Defender for Storage)Scans uploads.Partners are an attack path.
Validation and mapping (Lambda, Glue or B2B Data Interchange)Schema checks and EDI translation.Managed EDI translation is available if volume justifies it.
Workflow (Step Functions, SQS)Orchestrates, retries and parks failures.Visible state per message.
Partner registryKeys, IPs, formats and contacts per partner.Onboarding becomes configuration.
Monitoring and alertingExpected-file checks and failure alerts.Detect the file that never arrived.
Key and certificate managementRotation schedule.Expired certificates are a common outage.

Design decisions and trade-offs

Protocol

SFTP or AS2 where partners require, offer an API for new partners.

Why. Meet partners where they are while steering them to better.

Trade-off. You run both for years.

Evidence

Keep the original file immutably, process a copy.

Why. Disputes are settled by the original.

Trade-off. Storage cost.

Failure handling

Quarantine and notify, never silently drop.

Why. A missed order is a business failure.

Trade-off. Needs a team to handle rejections.

Onboarding

Configuration-driven per partner.

Why. Speeds up onboarding and reduces code.

Trade-off. Needs a well-designed registry.

Well-architected pillars

Security

Key auth, IP allow lists, scanning, encryption and scoped access per partner.

Reliability

Queues, retries, acknowledgements and expected-file alerts.

Performance

Parallel processing by file, with size limits and chunking for large files.

Cost optimisation

Transfer Family endpoint hours are the baseline. Storage and processing are small.

Operational excellence

A partner runbook for onboarding, key rotation and resend requests.

Sustainability

Lifecycle archive and avoid reprocessing.

Network, identity and data

Networking

Endpoint with fixed Elastic IPs so partners can allow-list, in a VPC with security groups limiting source ranges. Downstream workers in private subnets with endpoints.

Identity and least privilege

Each partner has its own user, key and S3 prefix restricted by IAM policy. Internal operators use SSO. Service roles are limited to specific prefixes.

Data and encryption

Files can contain personal and commercially sensitive data. Encrypt with KMS, restrict by prefix, apply retention and masking in lower environments, and log who accessed what.

Security and compliance mapping

ControlHow this design addresses it
Restrict administrative privilegesScoped per-partner access. Essential Eight.
LoggingTransfer logs, S3 data events and workflow history.
Third-party riskPartner security expectations documented and reviewed.

Mappings show how the design supports each control. They are not certifications, and EITSAA does not claim IRAP assessment or compliance for any reference architecture.

Failure modes, targets and scaling

  • Target RTOHours. Partners retry on failure
  • Target RPOZero for accepted files held in S3
  • Scaling and limitsThousands of files per day are routine. Check endpoint and AS2 message size limits.
Failure modeMitigation
Partner sends malformed fileValidation, quarantine and a rejection sent promptly.
Expected file does not arriveSchedule-based alert to the business owner.
Duplicate file sent twiceHash and business-key de-duplication.
Certificate or key expiryExpiry dashboard and 30-day alerts.

Observability and runbooks

  • Files received, accepted, rejected by partner.
  • Time from receipt to ERP posting.
  • Missing-file alerts.

Cost drivers and levers

Transfer endpoint hours and per-GB charges, translation, storage.

  • Consolidate endpoints.
  • Lifecycle old files.
  • Move partners to APIs.

Implementation and fit

Phased approach

  1. Inventory partners and formats.
  2. Stand up the endpoint and landing zone with two partners.
  3. Add validation, acknowledgements and monitoring.
  4. Onboard remaining partners by configuration.

Anti-patterns to avoid

  • Self-managed SFTP servers.
  • Shared partner credentials.
  • Silent file drops.
  • No expected-file monitoring.

When to use it

  • Partners and suppliers that exchange files or EDI.
  • Regulatory or customer reporting by file.

When not to

  • New partners who can use APIs.
  • Real-time interactions.

More in integration and multi-application

Related insights

Discuss this architecture

Tell us your systems, constraints and timeline. We reply within one business day, and the initial conversation is free.