Getting Started with Mainfreight APIs
Discover powerful, custom integrations by partnering with us! Our Mainfreight Developer suite offers innovative APIs to strengthen and grow your business.
Mainfreight APIs enable you to leverage critical freight information and automate functions directly from your website, ecommerce or ERP system.
Take a look around, then register when ready to get started with your integration.
Available Mainfreight API Integrations
- Status (Tracking) API
Using the Status API, you can retreive the current status of any Transport, Logistics, Air Freight or Sea Freight reference in JSON or XML format.
We provide two methods, References and References/Events.
References will return just the current status, tracking URL, signed by name and proof of delivery. References/Events extends to include a full list of events to enable you to show a timeline view. You can review the available events we offer by viewing our Event Response Code List.
We currently offer the following searchable reference types:
- Inbound Warehouse Order
- Outbound Warehouse Order
- Domestic Housebill number
- European Shipment number
- Consignment number
- International Houesbill number
- Transport Rate (Estimate) API
Using the Transport Rating API, you can retreive the costs for moving freight from one location to another.
The service is RESTful, supporting XML and JSON format.
Please note: This API is currently only available for New Zealand at this time.
- Logistics (Warehousing) Stock on Hand API
Using the Logistics API, you can find out your stock on hand by sending a combination of your customer code, logistics warehouse and product code/SKU.
- Logistics (Warehousing) Inward API
Using the Logistics Inward API, you can CREATE, UPDATE or DELETE inward orders directly from your website or application.
Similar to creating an inward order from Mainchain, you'll need to know the logistics warehouse, customer code and product/SKU details for these requests.
- Logistics (Warehousing) Order API
Using the Logistics Order API, you can CREATE, UPDATE or DELETE orders directly from your website or application.
Similar to creating an order from Mainchain, you'll need to know the logistics warehouse, customer code and product/SKU details for these requests.
Our Mainfreight APIs are secured by services via cryptographic protocol TLS 1.2 only. The cryptographic protocols might change over time to ensure that we comply with industry best practises. Older protocols will not be supported.What are the benefits?
- Utilize in-house shipping and warehouse management
- Set integration and implementation timelines to suit your availability