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
- Tracking API
Using the Tracking 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 Rating 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.
- Warehousing Stock on Hand API
Using the Warehousing API, you can find out your stock on hand by sending a combination of your customer code, warehouse and product code/SKU.
- Warehousing Inward API
Using the Warehousing 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 warehouse, customer code and product/SKU details for these requests.
- Warehousing Order API
Using the Warehousing 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 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