ShiftHaul
Licensed broker· MC 1786043· USDOT 4511175· 48 states

Developers · Partner API v1

Partner API

Ask for a price from your server and get ShiftHaul’s door-to-door price for that route and vehicle, the same one shifthaul.com shows. Each price comes with a checkout_url. Your visitor opens it, finishes booking on shifthaul.com at that price, and the order is credited to your partner code.

Base URL
https://api.shifthaul.com/v1
Format
JSON over HTTPS, server to server
Keys
shk_test_… and shk_live_…
Coverage
Lower 48 states, up to 4 vehicles
On this page
  1. Overview
  2. Get access
  3. Quickstart
  4. Create a quote
  5. Retrieve a quote
  6. Vehicles
  7. Checkout link
  8. Sandbox
  9. Errors
  10. Limits
  11. Idempotency & Request-Id
  12. Coming next
  13. OpenAPI file

Overview

What you can build

A car shipping price box on your own pages. Your visitor types the route and the car, your server calls POST /v1/quotes, and you show our price. When they’re ready, you send them to the checkout_url from that answer.

On shifthaul.com the route, vehicles and pickup date are already filled in. The customer adds contact details, addresses and a card, and signs our Customer Shipping Agreement. From there our team handles the order: carrier, pickup, delivery and support at (260) 800-6747.

You earn a commission on each car booked through your link, under the partner program terms.

What this version does not do

  • It does not create orders. Booking happens on shifthaul.com.
  • It does not price Alaska, Hawaii or more than 4 vehicles. Those come back as unavailable with a phone number to call.
  • It does not add a Fixed Pickup Day. The customer can add one on shifthaul.com while booking.

Get access

How to get a key

  1. Apply. Apply to the partner program. Mention that you want the API and what your site does.
  2. We review it. We review every application by hand and email you.
  3. Get a test key. We email a one-time link. It works once and expires after 24 hours. The key is shown a single time, so copy it straight into your server’s secret storage.
  4. Go live. Test in the sandbox, then tell us. After we see your test calls, we issue a live key the same way.

You can have up to 2 live and 2 test keys at the same time, so you can switch to a new key before we revoke the old one. Lost a key? Email partners@shifthaul.com and we’ll revoke it and send a new link.

Keys stay on your server

Send the key in the Authorization header. Keep it in an environment variable or a secret manager. Never put it in browser code, a mobile app or a public repo. The API sends no CORS headers, so a call from a web page fails anyway. A missing or wrong key gets 401 unauthorized.

Prices are for the visitor who asked

Show each price to the visitor who asked for it, together with its checkout link. Don’t store, compile, resell or share our prices, and don’t use the API to build a price list. Keep a quote only as long as that visitor needs it, up to its expires_at. Breaking this ends your API access, and you lose any commission we haven’t paid yet. The full rules are in the partner program terms.

Quickstart

Your first price in one request

Fort Bragg, NC to Naval Base San Diego, one 2021 Toyota RAV4 on an open trailer, flexible pickup date:

Show your visitor total.amount of the card option and of the pay_on_delivery option (pick them by method, not by position). Then link the button to checkout_url. That’s the whole integration.

A new quote needs a new Idempotency-Key; send the same one again only to retry the same request (see Idempotency).

The same call from JavaScript: Node 20+ (save it as an .mjs file), Deno or a Supabase Edge Function. Not the browser. On Deno and Supabase use Deno.env.get("SHIFTHAUL_API_KEY").

Create a quote

POST/v1/quotes

The price comes from the same pricing engine as shifthaul.com. With a live key, the API and the site give the same number for the same route, vehicles and trailer. A test key gives a sample price instead ("sample_price": true, see Sandbox). A priced quote is locked for 7 days (expires_at).

Request body

FieldTypeRequiredWhat to send
pickup.zipstringyes5-digit US ZIP where the car is picked up
delivery.zipstringyesWhere it goes. Must differ from the pickup ZIP
vehiclesarrayyes1 to 4 vehicles. 5 or more → unavailable; over 10 → error
vehicles[].yearintegeryes1981 up to next year
vehicles[].makestringyesUp to 40 characters. Short names like Chevy or VW work
vehicles[].modelstringyesUp to 60 characters
vehicles[].body_typestringnoOne of our types. Needed only when we don’t know the model
vehicles[].inoperablebooleannotrue if the car doesn’t run. Default false
vehicles[].vinstringno17 characters. Returned in upper case
transportstringyesopen or enclosed
pickup_date.typestringyesdate, asap or flexible
pickup_date.datestringwith dateYYYY-MM-DD, today up to 12 months ahead (Indiana time, US Eastern). The pickup date, of any type, does not change the price
partner_referencestringnoYour own ID for this quote, up to 64 characters. Returned trimmed; an empty value is left out

Body types

sedansuvlarge_suvpickupminivancoupe_sportsevvan

If the year, make and model are in our vehicle list, we use our body type, the same one shifthaul.com uses, and return it in vehicles[].body_type. It can differ from what you sent. You only need body_type for models we don’t know. Vans are never priced online and come back as unavailable. Not sure whether we know a model? Check with GET /v1/vehicles.

Quotes read the make and model loosely: short makes (Chevy), trims after the model name (Silverado 1500) and Dodge Ram 1500 all work. GET /v1/vehicles is stricter, so send the model the way it returns it when you can. If we still can’t tell the type, you get vehicle_type_needed and no quote is used.

A fuller example

Two vehicles, one that doesn’t run, enclosed trailer, a set pickup date and your own reference. We knew the Silverado, so our pickup type replaced the sedan that was sent.

Response fields

FieldWhat it means
idQuote ID, qt_ plus 16 characters. Use it with GET /v1/quotes/{id}
modetest or live, from the key you used
statuspriced or unavailable
pickup, deliveryZIP plus the city and state we matched
vehiclesWhat we priced, with the body type we used
price_linesHow the price adds up: transport, plus enclosed and not_running when they apply. Each line covers all vehicles. Whole US dollars; the lines add up to the card total
payment_optionsTwo ways to pay, each with its own total
distance_milesRoad miles between the two ZIPs
estimated_transit_days{min, max} days on the road after pickup. An estimate
checkout_urlLink that books this price on shifthaul.com. See Checkout link
expires_atThe price is locked until this time, 7 days after created_at
pickup_date, partner_referenceEcho of what you sent

payment_options

methodtotalWhat the customer pays
cardcard price$0 when booking. A $150 booking payment goes on the card when a carrier is assigned; the rest goes on the same card at pickup
pay_on_deliverya little lower$0 when booking. The same $150 booking payment by card when a carrier is assigned; the rest goes to the driver at delivery

In both, due_now is $0 and booking_payment is $150 for the order, however many vehicles. The $150 is part of the total, not an extra charge. Show both totals or only the card price. Either way the customer picks the method on shifthaul.com.

When there’s no price

We never send a rough or table price. If a route can’t be priced online, you get 201 with status: "unavailable", a reason and a message you can show as is. Same request as the quickstart, delivered to Anchorage:

unavailable_reasonWhen
outside_service_areaAlaska, Hawaii or another place we don’t serve
route_too_longThe route is too long to price online
vehicle_needs_manual_priceA van or another vehicle our team prices by hand
too_many_vehicles5 or more vehicles in one quote
temporarily_unavailableWe couldn’t price it right now. Try again in a few minutes
route_needs_manual_priceOur team needs to price this route by hand

An unavailable answer does not carry checkout_url, payment_options or expires_at.

An unavailable answer counts as a quote, like a priced one. To try again after temporarily_unavailable, send a new Idempotency-Key: the same key would give you the same answer for 24 hours.

Retrieve a quote

GET/v1/quotes/{id}

Use the id from one of your own quotes. Returns the same body as when the quote was created. After expires_at a priced quote also has "expired": true. The checkout_url stops booking at that price and shows the customer a button to get a new one.

You can only read your own quotes. Anyone else’s ID returns 404 not_found. Test keys read test quotes, live keys read live quotes.

Vehicles and body types

GET/v1/vehicles

Check which body type we’ll use before you quote, or fill a make and model picker.

ParameterRequired
makeyesExact make, any case. Chevy, VW and other short names work
modelnoStart of the model name, any case
yearnoOnly models built that year; the year is echoed in each row

Up to 200 rows, no paging. An empty data means the model isn’t in our list: send body_type with that vehicle when you quote. make=chevy&model=silverado returns Chevrolet rows, all pickup. This call doesn’t count toward the daily quote limit, only toward the 20 requests a minute.

The list changes rarely. Cache the answers on your side for a day instead of calling for every visitor.

Checkout link

What happens when your visitor opens checkout_url

  • They land on the contact step of shifthaul.com with the route, vehicles, trailer and pickup date filled in, and your partner code attached.
  • The price is the one from your quote, until expires_at.
  • If they change the vehicle, trailer or a ZIP, the site prices the new order the usual way. The order is still credited to you.
  • Promo codes don’t apply to customers who come through a partner.
  • One link books one order. After someone books with it, or after expires_at, the link opens a page with a Get a new price button that leads to our calculator with the same route and vehicle.

The link is long and random. Treat it like a one-time link: give it to the visitor who asked for the price, and don’t publish it.

The API doesn’t show bookings yet: GET /v1/quotes/{id} looks the same before and after one. With each monthly payout we send the order numbers it covers, and you can ask us for the orders credited to you at any time.

Sandbox

Test keys

A shk_test_ key uses the same base URL and the same requests, with its own data. Nothing leaves the sandbox: no lead, no email, no order, no card.

  • Test keys return sample prices, not real quotes. Each one is marked with "sample_price": true and the ShiftHaul-Sample-Price: true header, and the same route always gets the same sample price.
  • Test keys have the same limits as live keys, with their own counters. Testing doesn’t use up your live quotes.

Test checkout page

A test checkout_url opens a plain page on api.shifthaul.com instead of shifthaul.com: “Test checkout”, the quote ID and how long it’s valid. Press Complete test booking and the page shows “Test booking completed”. No card, no order, no email. The test page doesn’t copy the live link’s “Get a new price” page for used or expired links.

Inputs that trigger each case

SendYou get
delivery.zip 99501 (Anchorage, AK) or 96813 (Honolulu, HI)201, unavailable, outside_service_area
5 identical vehicles201, unavailable, too_many_vehicles
"make": "Toyota", "model": "Unknown", no body_type422 vehicle_type_needed
The same, plus "body_type": "suv"201, priced
"make": "Mercedes-Benz", "model": "Sprinter"201, unavailable, vehicle_needs_manual_price (read as a van)
pickup.zip 99999422 zip_not_found (doesn’t use up a daily quote)
Same ZIP for pickup and delivery422 validation_failed, delivery.zip → same_as_pickup
No Authorization header401 unauthorized
The 51st new route of the day429 new_routes_limit (routes you already quoted today still work)

These work the same with a live key, because they are real rules, not test tricks.

Errors

Errors use RFC 9457 problem details, with Content-Type: application/problem+json. Every error has code and request_id. Field problems are listed in errors: field uses dots and brackets (vehicles[0].year), an empty string means the whole body.

Several problems at once come back together, one per field:

HTTPcodeWhat to do
401unauthorizedSend a valid key: Authorization: Bearer shk_…
401key_revokedThe key was revoked, or the partner account is paused. Email partners@shifthaul.com
403forbidden_scopeThis key can’t make this call
404not_foundNo such address, or the quote isn’t yours
405method_not_allowedWrong method. See the Allow header
409idempotency_in_progressThe first request with this Idempotency-Key is still running. Retry after Retry-After
415unsupported_media_typeSend JSON with Content-Type: application/json
422validation_failedA field is missing or wrong. See errors
422zip_not_foundWe don’t know this ZIP. Check it. It doesn’t use up a daily quote
422vehicle_type_neededWe don’t know this model. Send body_type for it
422idempotency_key_reusedThis Idempotency-Key was used with a different body. Use a new key
429rate_limitedMore than 20 requests in a minute from this key, or too many requests or wrong keys from one address. Wait for Retry-After
429daily_quote_limitYour account used today’s quotes. Resets at midnight Indiana time (US Eastern)
429new_routes_limitYour account priced 50 new routes today. Routes you already quoted today still work. Resets at midnight Indiana time (US Eastern)
500internal_errorOur side. Retry later; if it repeats, send us the request_id

Field codes: required, invalid, too_many (more than 10 vehicles), same_as_pickup, zip_not_found, vehicle_type_needed, invalid_body (the body is not a JSON object), invalid_json (the body is not valid JSON), too_large (the body is over 32 KB).

Retrying

  • 429 rate_limited and 409 idempotency_in_progress: wait Retry-After seconds, then send the same request again.
  • 429 daily_quote_limit or new_routes_limit: Retry-After is the time until midnight. Retrying sooner won’t work.
  • 500: wait a few seconds and retry with the same Idempotency-Key. Failed requests aren’t stored, so the retry runs fresh.
  • 4xx other than these: fix the request first. Retrying the same body gives the same error.

Limits

LimitCounted
Requests per minute20per key
Quotes per day100per account, all your keys together
New routes per day50per account

Test keys have the same limits with separate counters.

A route is one pickup ZIP and one delivery ZIP, in that direction: 28310 → 92136 and 92136 → 28310 are two routes. A route you already priced today isn’t new again, so pricing it with another vehicle or an enclosed trailer uses a daily quote but not a new route.

Each POST /v1/quotes that returns a quote counts, priced or unavailable. Errors don’t count, and neither does a repeat with the same Idempotency-Key. GET calls count only toward the per-minute limit. The day resets at midnight Indiana time (America/Indiana/Indianapolis, US Eastern). A request body can be up to 32 KB.

Every answer to a valid key carries what’s left:

q is the limit, r what’s left, t seconds until it resets. Over a limit you get 429 with Retry-After in seconds. For the per-minute limit, wait that long and retry. For the daily limits, Retry-After is the time until midnight. Need higher limits? Email partners@shifthaul.com.

Idempotency and Request-Id

Idempotency-Key

Optional on POST /v1/quotes. Send a unique value per quote, 8 to 255 printable characters, no spaces. A UUID works.

  • Same key and same body within 24 hours → the first answer again, with Idempotent-Replayed: true. No new quote, no daily quote used.
  • Same key, different body → 422 idempotency_key_reused.
  • The first request still running → 409 idempotency_in_progress with Retry-After.
  • A key that breaks the format → 422 validation_failed with errors[].field = Idempotency-Key.
  • Errors from our side (5xx) and 429 answers aren’t stored, so a retry with the same key runs again.

Use it so a network retry doesn’t count twice against your daily limit.

Request-Id

Every response has a Request-Id header (req_…); errors repeat it as request_id. Log it. If something looks wrong, send it to partners@shifthaul.com and we’ll find the request.

Coming next

Order status and webhooks for orders booked through your links, and a list of your orders with their commissions.

OpenAPI file

openapi.yaml, OpenAPI 3.1, with only what works today. Import it into Postman, Insomnia or a code generator.

Version 1 only grows: we add fields and calls, so ignore fields you don’t know. If we ever need to remove or change something, we’ll email you at least 90 days ahead.

Stuck?

Email partners@shifthaul.com with your request_id, or call (260) 800-6747.

Ready to try it?

Apply, get a test key, and price your first route in the sandbox.

Get your car moving.

Getting your price takes about a minute — and every load comes with a verified carrier.