Skip to content
Flexport logo

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

  1. Get a shipment
  2. 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

  1. Get an invoice
  2. Create a vendor bill in NetSuite

With NetSuite

Save Flexport shipping documents to SharePoint

When

Document event

Then

  1. Download a document
  2. 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

apidocs.flexport.com

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.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.