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_…andshk_live_…- Coverage
- Lower 48 states, up to 4 vehicles
On this page
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
unavailablewith 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
- Apply. Apply to the partner program. Mention that you want the API and what your site does.
- We review it. We review every application by hand and email you.
- 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.
- 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
/v1/quotesThe 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
| Field | Type | Required | What to send |
|---|---|---|---|
pickup.zip | string | yes | 5-digit US ZIP where the car is picked up |
delivery.zip | string | yes | Where it goes. Must differ from the pickup ZIP |
vehicles | array | yes | 1 to 4 vehicles. 5 or more → unavailable; over 10 → error |
vehicles[].year | integer | yes | 1981 up to next year |
vehicles[].make | string | yes | Up to 40 characters. Short names like Chevy or VW work |
vehicles[].model | string | yes | Up to 60 characters |
vehicles[].body_type | string | no | One of our types. Needed only when we don’t know the model |
vehicles[].inoperable | boolean | no | true if the car doesn’t run. Default false |
vehicles[].vin | string | no | 17 characters. Returned in upper case |
transport | string | yes | open or enclosed |
pickup_date.type | string | yes | date, asap or flexible |
pickup_date.date | string | with date | YYYY-MM-DD, today up to 12 months ahead (Indiana time, US Eastern). The pickup date, of any type, does not change the price |
partner_reference | string | no | Your own ID for this quote, up to 64 characters. Returned trimmed; an empty value is left out |
Body types
sedansuvlarge_suvpickupminivancoupe_sportsevvanIf 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
| Field | What it means |
|---|---|
id | Quote ID, qt_ plus 16 characters. Use it with GET /v1/quotes/{id} |
mode | test or live, from the key you used |
status | priced or unavailable |
pickup, delivery | ZIP plus the city and state we matched |
vehicles | What we priced, with the body type we used |
price_lines | How 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_options | Two ways to pay, each with its own total |
distance_miles | Road miles between the two ZIPs |
estimated_transit_days | {min, max} days on the road after pickup. An estimate |
checkout_url | Link that books this price on shifthaul.com. See Checkout link |
expires_at | The price is locked until this time, 7 days after created_at |
pickup_date, partner_reference | Echo of what you sent |
payment_options
| method | total | What the customer pays |
|---|---|---|
card | card 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_delivery | a 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_reason | When |
|---|---|
outside_service_area | Alaska, Hawaii or another place we don’t serve |
route_too_long | The route is too long to price online |
vehicle_needs_manual_price | A van or another vehicle our team prices by hand |
too_many_vehicles | 5 or more vehicles in one quote |
temporarily_unavailable | We couldn’t price it right now. Try again in a few minutes |
route_needs_manual_price | Our 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
/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
/v1/vehiclesCheck which body type we’ll use before you quote, or fill a make and model picker.
| Parameter | Required | |
|---|---|---|
make | yes | Exact make, any case. Chevy, VW and other short names work |
model | no | Start of the model name, any case |
year | no | Only 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": trueand theShiftHaul-Sample-Price: trueheader, 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
| Send | You get |
|---|---|
delivery.zip 99501 (Anchorage, AK) or 96813 (Honolulu, HI) | 201, unavailable, outside_service_area |
| 5 identical vehicles | 201, unavailable, too_many_vehicles |
"make": "Toyota", "model": "Unknown", no body_type | 422 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 99999 | 422 zip_not_found (doesn’t use up a daily quote) |
| Same ZIP for pickup and delivery | 422 validation_failed, delivery.zip → same_as_pickup |
No Authorization header | 401 unauthorized |
| The 51st new route of the day | 429 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:
| HTTP | code | What to do |
|---|---|---|
| 401 | unauthorized | Send a valid key: Authorization: Bearer shk_… |
| 401 | key_revoked | The key was revoked, or the partner account is paused. Email partners@shifthaul.com |
| 403 | forbidden_scope | This key can’t make this call |
| 404 | not_found | No such address, or the quote isn’t yours |
| 405 | method_not_allowed | Wrong method. See the Allow header |
| 409 | idempotency_in_progress | The first request with this Idempotency-Key is still running. Retry after Retry-After |
| 415 | unsupported_media_type | Send JSON with Content-Type: application/json |
| 422 | validation_failed | A field is missing or wrong. See errors |
| 422 | zip_not_found | We don’t know this ZIP. Check it. It doesn’t use up a daily quote |
| 422 | vehicle_type_needed | We don’t know this model. Send body_type for it |
| 422 | idempotency_key_reused | This Idempotency-Key was used with a different body. Use a new key |
| 429 | rate_limited | More than 20 requests in a minute from this key, or too many requests or wrong keys from one address. Wait for Retry-After |
| 429 | daily_quote_limit | Your account used today’s quotes. Resets at midnight Indiana time (US Eastern) |
| 429 | new_routes_limit | Your account priced 50 new routes today. Routes you already quoted today still work. Resets at midnight Indiana time (US Eastern) |
| 500 | internal_error | Our 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_limitedand409 idempotency_in_progress: waitRetry-Afterseconds, then send the same request again.429 daily_quote_limitornew_routes_limit:Retry-Afteris the time until midnight. Retrying sooner won’t work.500: wait a few seconds and retry with the sameIdempotency-Key. Failed requests aren’t stored, so the retry runs fresh.4xxother than these: fix the request first. Retrying the same body gives the same error.
Limits
| Limit | Counted | |
|---|---|---|
| Requests per minute | 20 | per key |
| Quotes per day | 100 | per account, all your keys together |
| New routes per day | 50 | per 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_progresswithRetry-After. - A key that breaks the format →
422 validation_failedwitherrors[].field=Idempotency-Key. - Errors from our side (
5xx) and429answers 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.
