Connectors / Supply chain · HTTP Connector
Flexport integration and API
Create a shareable link, create a booking and create a product in Flexport, and start a workflow when Flexport sends “Estimated transit event”.
What can you do with Flexport on Tray.ai?
Flexport is a freight forwarder and customs broker with an online platform for booking ocean, air, and truck freight and tracking shipments, purchase orders, and invoices. Tray.ai connects to Flexport through the HTTP Connector, so your workflows can call the Flexport API alongside the rest of your stack.
- When Flexport sends “Actual transit event”, update the expected arrival date on the order in your ERP.
- When Flexport sends “Invoice event”, create the bill in your accounting system.
- Create a booking in Flexport when a purchase order is approved in your ERP.
- When Flexport sends “Document event”, file the shipping document in your document storage.
- Connects through
- HTTP Connector
- Authentication
- OAuth 2.0 or a bearer token
Set it up
Connect Flexport to Tray.ai
Each step uses Flexport's own API details, from its documentation.
Sign in to Flexport with OAuth 2.0
Set up an OAuth 2.0 authentication with the client ID and secret of an OAuth app you register with Flexport. Sign in once and every step reads the token from there.
Import a request from Flexport's docs
Add an HTTP Client step and paste a cURL example from Flexport's API docs. Tray.ai fills in the method, URL, headers, and query.
Start with “List shipments”
It's one of 18 documented actions, under Shipments. The response comes back as data the next step can map into your other apps.
Start workflows from Flexport events
Give Flexport the URL of a Tray.ai webhook trigger. “Estimated transit event” can then start a workflow, and so can 6 other events.
Workflows to build with Flexport
Connect Flexport with Slack, NetSuite and SharePoint
Each one uses actions and events from Flexport's own API documentation.
Post Flexport arrival changes to Slack
When
Estimated transit event
Then
- Get a shipment
- Post the new arrival date to the logistics channel in Slack
With Slack
Send Flexport invoices to NetSuite as vendor bills
When
Invoice event
Then
- Get an invoice
- Create a vendor bill in NetSuite
With NetSuite
Save Flexport shipping documents to SharePoint
When
Document event
Then
- Download a document
- Save the file to the shipment folder in SharePoint
With SharePoint
Apps you can build on Flexport data
Internal tools your team can build with an AI assistant, each one using Flexport calls from its API documentation.
Shipment tracking board
Lists shipments with transit events and lets a logistics coordinator share a tracking link with a customer.
Freight invoice review
Lists freight invoices by shipment so finance can check charges before paying.
Purchase order to booking view
Lists purchase orders and lets a buyer create a freight booking for one that is ready to ship.
Give your AI agents Flexport tools
Build an MCP server on Flexport in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works
- List shipments
- List bookings
- List purchase orders
- List products
- List documents
- List invoices
- Get a shipment
- Update a shipment
What the Flexport API covers
6 resources and 18 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.
Shipments
- List shipments
- Get a shipment
- Update a shipment
- Create a shareable link
Bookings
- List bookings
- Get a booking
- Create a booking
Purchase orders
- List purchase orders
- Get a purchase order
Products
- List products
- Get a product
- Create a product
- Update a product
Documents
- List documents
- Upload a document
- Download a document
Invoices
- List invoices
- Get an invoice
Events Flexport can send to a Tray.ai webhook trigger
- Estimated transit event
- Actual transit event
- Administrative event
- Invoice event
- Document event
- Purchase order event
- Container load result event
Checked against Flexport's own documentation on 2026-10-22
How Tray.ai makes this work
Flexport plugs into the whole Tray.ai platform
Tray iPaaS
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn moreTray Helix agents
Agents in the apps your teams run on Tray Helix that read, write, and act in Flexport, with a person's approval on any tool you choose.
Learn moreAgent Gateway for MCP
Expose Flexport actions as governed MCP tools: observable, rate-limited and authenticated.
Learn moreTray Helix
Build apps on Flexport data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn moreMore supply chain apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every supply chain connector →
Frequently asked questions
What can a Tray.ai workflow do in Flexport?
The Flexport API documents 18 actions across 6 resources (Shipments, Bookings, Purchase orders, Products, Documents, Invoices). For example: List shipments; List bookings; List purchase orders. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with Flexport?
The Flexport API uses OAuth 2.0 and a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Which Flexport events can start a Tray.ai workflow?
Flexport sends 7 events to a webhook URL, for example: Estimated transit event; Actual transit event; Administrative event; Invoice event; Document event; Purchase order event; Container load result event. A Tray.ai webhook trigger receives them and starts a workflow.
See Flexport working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks. Someone from our team will be in touch soon.