How to Integrate a Custom Shipping Platform (e.g., TFM Express) with ERPNext?

Hey everyone!

I’m currently working on integrating a custom shipping platform called TFM Express with my ERPNext instance.

I’m aware there’s a built-in Shipment DocType in ERPNext, and I’ve seen the basic flow involving Delivery Notes and Shipping Rules.

My goal is to build a proper integration that allows:

Creating shipments via TFM’s API when a Delivery Note is submitted.
Fetching real-time tracking status from TFM.
Attaching shipping labels to the Shipment document.

My Questions:

  1. What’s the recommended approach to build such an integration inside ERPNext (custom app, server scripts, REST integrations)?
  2. Are there any existing community-built examples or apps that integrate with third-party logistics providers (like Aramex, DHL, FedEx)?
  3. Is there any official structure I should follow for custom integrations to be Frappe/ERPNext-compliant?

Any insights, sample apps, or pointers to relevant docs would be greatly appreciated :pray:

Thanks in advance!

1 Like