# Flexport integrations: shipments and bookings

> Create a shareable link, create a booking and create a product in Flexport, and start a workflow when Flexport sends “Estimated transit event”.

**Canonical page:** https://tray.ai/connectors/flexport-integrations/
**Categories:** Supply chain
**Connects through:** HTTP Connector

## Overview

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.

## Use cases

### Shipments

Read, create, and update shipments in Flexport from any Tray.ai workflow. The Flexport API covers calls such as list shipments and get a shipment.

- List shipments
- Get a shipment
- Update a shipment

### Bookings

Read and create bookings in Flexport from any Tray.ai workflow. The Flexport API covers calls such as list bookings and get a booking.

- List bookings
- Get a booking
- Create a booking

### Purchase orders

Read purchase orders in Flexport from any Tray.ai workflow. The Flexport API covers calls such as list purchase orders and get a purchase order.

- List purchase orders
- Get a purchase order

### Products

Read, create, and update products in Flexport from any Tray.ai workflow. The Flexport API covers calls such as list products and get a product.

- List products
- Get a product
- Create a product

### Documents

Read and create documents in Flexport from any Tray.ai workflow. The Flexport API covers calls such as list documents and upload a document.

- List documents
- Upload a document
- Download a document

### Invoices

Read invoices in Flexport from any Tray.ai workflow. The Flexport API covers calls such as list invoices and get an invoice.

- List invoices
- Get an invoice

## Challenges Tray.ai solves

### Keeping Flexport credentials out of logs

A raw API call usually means pasting a key or token into the request, where it ends up in step inputs, logs, and screenshots.

**How Tray.ai helps:** Store Flexport credentials once as a Tray.ai authentication and reference them from the HTTP Connector. Tray.ai masks authentication values in logs, so the secret never shows up in a step's input or output.

### Going from the Flexport API docs to a working call

Translating an example request from API docs into a workflow step means copying the method, URL, headers, and body by hand.

**How Tray.ai helps:** Paste a cURL example from the Flexport API docs into the HTTP Connector and Tray.ai fills in the method, URL, headers, and body for you.

### Handling files and non-JSON responses

Not every API answers in JSON. Some return XML, files, or binary data, or expect a multipart upload.

**How Tray.ai helps:** The HTTP Connector parses JSON and XML responses, returns files you can pass to the next step, and sends multipart form data for uploads.

## Frequently asked questions

### Does Tray.ai connect to Flexport?

Yes. Tray.ai connects to Flexport through the HTTP Connector, which calls the Flexport API directly. Any call the Flexport API documents can run as a step in a Tray.ai workflow.

### 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.

### Can I get a dedicated Flexport connector?

Flexport runs through the HTTP Connector rather than a dedicated connector. If your team wants one, the Tray.ai connector SDK can build a dedicated Flexport connector from the Flexport API.

## Learn more

- Tray iPaaS: https://tray.ai/platform/ipaas/
- Tray Helix agents: https://tray.ai/helix/agents/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
