ml-connector
IFS CloudTrueCommerce

IFS Cloud and TrueCommerce integration

IFS Cloud manages procurement and supply chain across your enterprise. TrueCommerce connects you to trading partners via EDI and managed file exchange. Keeping them synchronized ensures supplier orders placed in IFS reach trading partners on time and invoiced shipments flow back into IFS for matching and payment without manual re-keying or format conversion.

How IFS Cloud works

IFS Cloud exposes purchase orders, supplier invoices, advance ship notices, supplier records, GL accounts, and payment proposals through OData v4 REST APIs hosted at a tenant-specific URL (https://<tenant>.ifs.cloud). Authentication uses OAuth 2.0 Client Credentials grant with approximately 60-minute token lifetime. IFS offers server-side Event Actions that can POST to external endpoints when business events fire, but these require manual per-customer configuration in the IFS admin UI and are not API-driven. The standard integration pattern is pull-based polling of the OData API with filters on modified timestamps or state fields. Mutations like invoice creation require reading the ETag from the existing record first, then posting the mutation with that ETag value. Page sizes should stay under 5000 elements; rate limits are approximately 1000 requests per minute per tenant, returning HTTP 429 on overage.

How TrueCommerce works

TrueCommerce is a managed Value-Added Network (VAN) that does not itself store persistent data but instead translates and routes EDI documents and files to and from trading partners. Key documents include Purchase Order (X12 850), Purchase Order Acknowledgment (855), Advance Ship Notice (856), and Invoice (810). Access is via SFTP to integrationftp.truecommerce.com port 22 with provisioned username and password, or through the managed Exchange API with API key authentication. TrueCommerce does not offer self-serve OAuth or public developer APIs; all credentials and integration paths are provisioned during account setup and are customer-specific. The standard pattern is scheduled pull from TrueCommerce FTP (hourly or daily), with minimum polling interval of one hour. EDI documents use functional acknowledgments (997) for deduplication via ISA control numbers. For test mode, TrueCommerce Transaction Manager uses ISA15 field (T for test, P for production).

What moves between them

Purchase orders flow from IFS Cloud to TrueCommerce as X12 850 EDI files, reaching trading partners through the managed network. Advance ship notices (856) and invoices (810) flow inbound from trading partners through TrueCommerce and are polled by ml-connector to update shipment and invoice records in IFS. The sync runs on a daily or hourly schedule controlled by your operations team. All EDI documents are tracked in the audit log with their control numbers and functional acknowledgment status.

How ml-connector handles it

ml-connector stores IFS OAuth credentials and refreshes the bearer token when it expires. For each IFS purchase order flagged for supplier delivery, ml-connector queries the purchase order details via OData, maps line items to X12 850 segments, and uploads the EDI file to TrueCommerce SFTP with the expected filename convention (provisioned during setup). On the inbound side, ml-connector polls TrueCommerce SFTP for 856 (advance ship notice) and 810 (invoice) files on a daily or hourly basis, parses the EDI segments, looks up the matching IFS purchase order by supplier and order number, and updates shipment and invoice records in IFS. ETag-based concurrency control is enforced on IFS mutations; ml-connector reads each purchase order record first to capture its ETag before posting any status update. TrueCommerce file naming and paths are customer-specific, so ml-connector maintains a configuration per customer mapping IFS company code to TrueCommerce integration path. Rate limits on IFS (1000 requests per minute) are respected with exponential backoff on HTTP 429. Functional acknowledgments are tracked to detect duplicate documents by ISA control number.

A real-world example

A mid-sized manufacturing company uses IFS Cloud for production planning and procurement and works with multiple electronics suppliers through a TrueCommerce-managed network. Before the integration, the procurement team created purchase orders in IFS, exported them manually, converted them to X12 EDI format, and uploaded them to the supplier portal. When suppliers shipped goods, EDI advance notices came back into an email inbox, and the team manually parsed them into IFS to confirm shipments and match them to receiving. Invoices required the same manual decode step. With IFS Cloud and TrueCommerce connected, purchase orders flow automatically to suppliers as EDI 850 documents within minutes of approval, and inbound 856 and 810 documents are parsed nightly and matched to IFS purchase orders without human intervention. Month-end invoice reconciliation is faster because all shipments are recorded and matched in real time.

What you can do

  • Export IFS Cloud purchase orders to TrueCommerce as X12 850 EDI documents, reaching trading partners through the managed VAN.
  • Import advance ship notices (856) and invoices (810) from TrueCommerce, matching them to IFS purchase orders by supplier and order number.
  • Handle OAuth 2.0 token refresh on IFS side and manage ETag-based optimistic concurrency for IFS mutations.
  • Maintain customer-specific mappings between IFS company codes and TrueCommerce integration paths, since TrueCommerce paths are not standardized.
  • Track functional acknowledgments and control numbers to prevent duplicate document processing and provide a full audit trail.

Questions

Why does IFS Cloud require an ETag header for mutations?
IFS Cloud uses ETag-based optimistic concurrency control to prevent lost updates when multiple systems modify the same record. ml-connector reads each purchase order or invoice record first to capture its ETag, then includes that ETag in the mutation request. If another system modified the record in between, IFS returns a 412 Precondition Failed, and ml-connector retries the read-mutate cycle, ensuring the update is based on the latest state.
How does ml-connector handle the fact that TrueCommerce integration paths are customer-specific?
TrueCommerce does not publish standardized integration paths or APIs. Instead, each customer receives custom SFTP credentials, directory paths, and filename conventions during account setup. ml-connector stores a configuration per customer that maps IFS company codes to the correct TrueCommerce SFTP path and filename pattern, so the same connector code can serve multiple customers without hard-coding paths.
What happens if a purchase order is updated in IFS after it has already been sent to TrueCommerce?
ml-connector can re-export updated purchase orders as new X12 850 documents with incremented control numbers, and include a Purchase Order Change (860) EDI message to notify the supplier of the modification. The audit log tracks all versions of the PO and when each EDI export occurred, providing a complete history for reconciliation.

Related integrations

Connect IFS Cloud and TrueCommerce

Free to use. Add your credentials, ping your real systems, and see if we fit.

Get started