Skip to content
Deftship logo

Connectors / Supply chain · HTTP Connector

Deftship integration and API

Create a parcel order, create a batch and create a freight order in Deftship. Connect Deftship to the rest of your supply chain stack with Tray.ai.

What can you do with Deftship on Tray.ai?

Deftship is a shipping platform for small businesses that compares carrier rates and books parcel, freight, and pickup shipments from one account. Tray.ai connects to Deftship through the HTTP Connector, so your workflows can call the Deftship API alongside the rest of your stack.

  • Get parcel rates for each new order in your store and pick the cheapest carrier.
  • Create a parcel order when an order is marked ready to ship in your order system.
  • Validate an address on new customer orders before they reach your warehouse team.
  • Arrange a pickup when your warehouse system confirms a freight order is packed.
Connects through
HTTP Connector
Authentication
A bearer token
Base URL
https://api.deftship.com

Set it up

Connect Deftship to Tray.ai

Each step uses Deftship's own API details, from its documentation.

Save Deftship's API token

Save the token Deftship issues as a Tray.ai authentication. The HTTP Client sends it as a bearer token on every call. The token stays out of the workflow and out of the logs.

Point the HTTP Client at the API

Add an HTTP Client step and use https://api.deftship.com as the base URL. Or paste a cURL example from Deftship's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “Get parcel rates”

It's one of 21 documented actions, under Parcel orders. The response comes back as data the next step can map into your other apps.

Hand it to an AI agent

Wrap “Create a parcel order” and “Get a parcel order” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with Deftship

Connect Deftship with Shopify and NetSuite

Each one uses actions and events from Deftship's own API documentation.

Ship new Shopify orders with Deftship at the best parcel rate

When

An order is paid in Shopify

Then

  1. Validate an address for the order
  2. Get parcel rates
  3. Create a parcel order
  4. Add tracking to the order in Shopify

With Shopify

Book Deftship freight for large NetSuite sales orders

When

A sales order is approved in NetSuite

Then

  1. Get freight rates
  2. Create a freight order
  3. Arrange a pickup

With NetSuite

Apps you can build on Deftship data

Internal tools your team can build with an AI assistant, each one using Deftship calls from its API documentation.

Shipping rate comparison tool

Shows parcel and freight rates for a shipment so staff can pick a carrier and book the order.

Pickup scheduling desk

Lets warehouse staff price and arrange a carrier pickup, then view or void it.

Deftship MCP server for AI agents

Build an MCP server on Deftship 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

  • Get parcel rates
  • Create a batch
  • Get freight rates
  • Get pickup rates
  • Get insurance rates
  • Validate an address
  • Create a parcel order
  • Get a parcel order

What the Deftship API covers

6 resources and 21 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. New to APIs? Read what an API integration is.

Parcel orders

  • Get parcel rates
  • Create a parcel order
  • Get a parcel order
  • Void a parcel

Batch shipments

  • Create a batch
  • Add items to a batch
  • Remove items from a batch
  • Ship a batch

Freight orders

  • Get freight rates
  • Create a freight order
  • Get a freight order
  • Void a freight order

Pickup orders

  • Get pickup rates
  • Arrange a pickup
  • Get a pickup
  • Void a pickup

Insurance

  • Get insurance rates
  • Book insurance
  • Void insurance

Addresses

  • Validate an address
  • Get the address book

Checked against Deftship's own documentation on 2026-10-22

developer.deftship.com

Frequently asked questions

What can a Tray.ai workflow do in Deftship?

The Deftship API documents 21 actions across 6 resources (Parcel orders, Batch shipments, Freight orders, Pickup orders, Insurance, Addresses). For example: Get parcel rates; Create a batch; Get freight rates. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Deftship?

The Deftship API uses a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See Deftship 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.