Skip to content
Help Center
/05·Features

API changelog

Every change to the FreightSimple public API, newest first. A change marked Breaking can refuse a request that used to succeed, so check those against your integration.

New changes are also emailed to the contacts at companies with an active API key. The full reference is in the API documentation.

getShipment returns shipments that are not booked yet

getShipment failed with a 500 Internal Server Error for a shipment that was quoted but not booked yet when it had no contact or street address, as most quotes made in the FreightSimple Dashboard do not. It now returns the shipment.

A Dashboard quote only needs postal codes and freight, so while shipmentStatus is QuoteRequested or Quoted the response may lack:

  • pickupContact and deliveryContact
  • businessName and address.addressLine on pickupLocation and deliveryLocation

A shipment quoted through startShipmentQuoting carries them from the start, and a booked shipment always carries them, so the responses you receive today do not change.

The endpoint’s description now also says when the answer is a 404: no shipment has that id, the shipment was deleted, or the id belongs to a draft. A draft becomes a shipment, under the same tracking id, once it is quoted.

What to do: if you read shipments before they are booked, handle these fields being missing. If you use a generated client, they become optional the next time you regenerate it.

The postal code decides the city

· Breaking

startShipmentQuoting used to store the city exactly as sent, so a typo reached every carrier and the bill of lading. The postal code now decides the city, as it already did in the Dashboard.

  • When the city you send is one of the names its postal code is known by, ignoring case, accents and punctuation, we keep it in our spelling.
  • Otherwise the shipment is stored with the postal code’s own city, and the response’s warnings list gets a PickupCityReplaced or DeliveryCityReplaced warning naming both cities.
  • When we have no city name for the postal code, your city stands.

Quoting goes ahead either way. createShipmentDraft applies the same rule without a warning, and keeps your city when the draft has no postal code or the lookup fails.

What to do: log the warnings and fix the address they name. If your integration compares the city it reads back with the one it sent, expect the postal code’s city.

Cross-border shipments need the customs broker account number

· Breaking

A broker now needs your accountNumber with the customs broker, as in the Dashboard: it goes on the bill of lading.

  • startShipmentQuoting refuses any request that sends a broker without an accountNumber, with a 400, even when pickup and delivery are in the same country, where the broker used to be ignored. A cross-border request with a blank accountNumber gets a 400 with error code InputValidationError. No shipment is created.
  • startShipmentBooking refuses a cross-border shipment whose broker has no account number, with a 400 and error code InputValidationError. This catches shipments quoted before the change.

accountNumber stays optional on drafts and in responses, since older shipments may not have one. If you generate a client from the spec, the request’s broker type is now BrokerInfo, with accountNumber required; responses keep Broker.

What to do: send broker.accountNumber whenever you send a broker, and send a broker on every shipment whose pickup and delivery are in different countries. If you send a broker on same-country shipments and have no account number for it, leave the broker out.

startShipmentQuoting refuses more than 10 loose boxes or rolls

· Breaking

startShipmentQuoting now refuses a shipment with more than 10 handling units of type Box or Roll in total across its line items, with a 400 and error code ShipmentSmallHandlingUnitsTooHigh. Carriers put loose boxes and rolls on pallets and bill for the pallets’ size, not the pieces’. A box or roll too long or too wide to fit on a 48 x 40 inch pallet is not counted. Until now there was no such limit.

What to do: combine boxes and rolls onto pallets or into crates and send those, and handle ShipmentSmallHandlingUnitsTooHigh.

startShipmentQuoting accepts cargo insurance

· Breaking

startShipmentQuoting takes a new optional insurance object with amount, currency and stateOfGoods, the same fields a draft already took. Until now insurance could only be set on a draft, and an insurance sent to start-quoting was ignored.

With insurance, every quote’s price includes the insurance cost: 1% of the insured value converted to CAD, with a $60 CAD minimum. The certificate is bought from our insurer when the shipment is booked, and startShipmentBooking is unchanged. The insurance is void if amount does not match the value on the commercial invoice.

  • amount must be between 250 and 100,000, or the request is refused with a 400 and error code InsuranceAmountTooLow or InsuranceAmountTooHigh.
  • Insurance is not available for a shipment that picks up or delivers in Puerto Rico, refused with InsuranceNotAvailableForPuertoRico.

The getShipment response and every shipment webhook gain insuranceCurrency and stateOfGoods, present only when the shipment is insured. Read insuranceAmount only when addInsuranceToShipment is true.

What to do: if you already sent insurance to start-quoting, it is now priced and checked, so send it only for shipments you want insured. To insure a shipment, send insurance with the value from its commercial invoice.

Some carriers pick up from some postal codes only on certain days

· Breaking

Our operations team can now record that a carrier picks up from certain postal codes only on certain days of the week. The first is TForce Freight, which picks up from Pilot Point, TX 76258 only on Mondays and Thursdays.

  • startShipmentQuoting leaves out that carrier’s quotes when the pickup date falls on another day.
  • A quote from that carrier on an allowed day has the limit in its notes, for example “TForce Freight only picks up from 76258 on Mondays and Thursdays.”
  • startShipmentBooking refuses a booking whose pickup would fall on another day, with a 400 and error code InputValidationError, before anything is booked or charged. That covers a pickupDate you change at booking, and a pickup date already in the past, which booking moves to today or the next business day.

What to do: when a booking is refused this way, book again with a pickup date on one of the days the message names, or select another carrier’s quote.

A location with no dock and no forklift needs a lift gate

· Breaking

startShipmentQuoting now refuses a pickup or delivery whose hasShippingDock and hasForklift are both no while specialServiceLiftGateRequired is false, with a 400 and error code InputValidationError. Without a dock or a forklift, a lift gate is the only way the carrier can load or unload the freight, and the Dashboard already enforced the same rule. unknown is still accepted for either answer.

A draft from createShipmentDraft also keeps its own dock and forklift answers when it is opened in the Dashboard, instead of taking them from a matching address book entry.

What to do: when a location has neither a dock nor a forklift, set specialServiceLiftGateRequired to true.

Line items take an optional number of cases

Line items on startShipmentQuoting and createShipmentDraft take a new optional numberOfCases: the total number of cases or cartons across all the line item’s handling units, so 2 pallets of 40 cases each is 80. It is printed on the bill of lading so the carrier can book a delivery appointment; Walmart distribution centres won’t give one without it.

It must be between 1 and 99,999. Outside that range, start-quoting refuses the request with a 400 and error code LineItemNumberOfCasesTooLow or LineItemNumberOfCasesTooHigh. Line items in the getShipment response and in every shipment webhook carry the field too.

Booking through the API does not require it.

What to do: nothing is required. Send numberOfCases on shipments to Walmart distribution centres.

See your API requests in the Dashboard

· Breaking

The request log is now yours to read: in the Dashboard, under Developers, the API Requests page lists your company’s requests with time, endpoint, status, duration and trace id. Filter by trace id, API key, status, endpoint or day, and open a request to see both bodies and the headers we keep. Demo has its own Dashboard at https://dashboard.freightsimpledemo.com, holding the requests sent to demo. A request refused at the key check with 401 belongs to no company and is not in the log.

A 500 response keeps its errorCode of InternalServerError, and its errorMessage now ends with a link to that request in your Dashboard. The carriers, dangerous goods and distribution warehouse brands endpoints now answer a 500 with that same errorCode and errorMessage body, instead of a body with a single error field.

What to do: if you read the error field of a 500 from the carriers, dangerous goods or distribution warehouse brands endpoints, read errorCode and errorMessage instead. When a request fails, look it up by its X-Trace-Id before you contact us, and send the trace id if you do.

Demo bookings are no longer paused for unpaid invoices

In the demo environment (https://api.freightsimpledemo.com), nobody pays the invoices that test bookings create, so they went overdue or past the credit limit. startShipmentBooking then refused their bookings with a 400 and error code InputValidationError, saying booking was paused for overdue invoices or the credit limit.

On demo, overdue invoices and the credit limit no longer stop a booking. An account that needs verification, has quoting turned off, or that we put on hold for bad debt is still refused there. Production is not affected.

What to do: nothing. If you cleared test invoices on demo to keep booking, you no longer need to.

startShipmentQuoting keeps the dock and forklift answers you send

startShipmentQuoting requires hasShippingDock and hasForklift on the pickup and the delivery, but until now it stored unknown for all four whatever you sent. It now stores your answers, so the shipment in your Dashboard and our operations team see yes or no where you sent one.

Shipments created before this change keep unknown.

What to do: send the real answer for each location, and unknown only when you don’t know.

getShipment returns the shipment's tracking lines

The getShipment response has a new trackingLines list: the shipment’s whole tracking history, oldest first, as its tracking page shows it. It is empty until the first update arrives.

Each line has the same shape the shipment_tracking_line_added webhook sends, so a line you received there matches the one listed here by trackingLineId.

What to do: nothing is required. If you track shipments through webhooks, use trackingLines to fill in an event you missed or that arrived late.

Dangerous goods package count must be between 1 and 99,999

· Breaking

startShipmentQuoting now refuses a dangerous line item whose dangerousNumberPackages is below 1 or above 99,999, with a 400 and error code LineItemDangerousNumberPackagesTooLow or LineItemDangerousNumberPackagesTooHigh. The field counts the packages inside each handling unit: 50 bags in a crate is 50.

The same 1 to 99,999 range is now documented on dangerousNumberPackages in shipment drafts and saved commodities.

What to do: send a package count between 1 and 99,999 on every dangerous line item.

We keep a log of your API requests

We keep a record of every request your API keys make that passes the key check, on every endpoint and whatever the answer, a 429 included. The Request Log section of the API reference now says what that record holds and how long we keep it. Each record holds the method, path and query string, the status, how long we took, both bodies, and a short list of request headers. Every other header is dropped, Authorization among them. Bodies are cut at 65,536 characters, the base64 of a PDF is replaced by its length, and a request refused with 429 keeps no bodies.

A request about a booked shipment is kept for 12 months; every other request is kept for 2 months.

Every response already carried an X-Trace-Id header. The reference now documents it: send your own UUID in X-Trace-Id and we use it, otherwise we make one. The trace id is how we find a request in the log.

What to do: nothing is required. Log the X-Trace-Id of every response, and quote it when you contact us about a request.

startShipmentQuoting refuses more than 21 line items

· Breaking

startShipmentQuoting now refuses a request with more than 21 lineItems, with a 400 and error code ShipmentLineItemCountTooHigh. Until now there was no limit.

What to do: keep each shipment to 21 line items or fewer, and handle ShipmentLineItemCountTooHigh.

startShipmentBooking warns when there is no booking contact email

A shipment booked through the API has no Dashboard user behind it, so the bookingContact email is the only way our operations team can reach someone at your company about it: pickup reminders, invoices and questions all go there. It is still optional, and until now a booking without one went ahead without notice.

The startShipmentBooking response now has a JSON body with a warnings list. A booking sent without a bookingContact email gets a warning with the code BookingContactMissing. The booking goes ahead either way, and the list is empty when there is nothing to report. New warning codes may be added later.

What to do: send a bookingContact with an email on every booking, and log the warnings.

startShipmentQuoting warns when a deadline is ignored

A pickup or delivery deadline is kept only where one applies: a distribution warehouse whose brand takes one (supportsDeliveryDeadline on listDistributionWarehouseBrands), or a TradeShow delivery. Anywhere else it is dropped, and until now that happened without notice.

The startShipmentQuoting response now carries a warnings list that says so, with the code PickupDeadlineIgnored or DeliveryDeadlineIgnored. Quoting goes ahead either way, and the list is empty when there is nothing to report. New warning codes may be added later.

What to do: log the warnings. Send a deadline in deadline, not in a location’s notes: notes reach the carrier as written, and a date there has been read as the day to deliver.

A busy postal code lookup returns a retryable 503

When startShipmentQuoting could not look up a Canadian postal code because our postal code provider was busy, it failed with a 500 Internal Server Error. It now returns a 503 with error code PostalCodeLookupUnavailable and a Retry-After header. The postal code is not known to be wrong, and no shipment was created.

What to do: wait Retry-After seconds and send the same request again. If your client rejects error codes it does not recognise, add PostalCodeLookupUnavailable.

A cross-border quote with no broker has its own error code

· Breaking

startShipmentQuoting already refused a cross-border shipment (pickup and delivery in different countries) sent without a broker, with a 400 and the generic code InputValidationError. It now answers the same 400 with its own error code, CrossBorderShipmentMissingBroker, so an integration can tell this case apart from any other bad input. No shipment is created.

What to do: send a broker on every request whose pickup and delivery are in different countries. If you matched InputValidationError for this case, match CrossBorderShipmentMissingBroker instead, and add it if your client rejects error codes it does not recognise.

getShipment accepts a trackingId, and a deleted shipment is not found

· Breaking

getShipment (GET /shipments/get-shipment) now takes either shipmentId or trackingId, so an integration that only stores the tracking id, the tId in a FreightSimple tracking link (/t?tId=...), can read the shipment. A shipment created from a draft has the draft’s id as its tracking id.

  • Send exactly one of the two. Sending neither or both returns a 400 with error code InputValidationError.
  • A shipment that was deleted now returns a 404 by either id. Until now, asking for a deleted shipment by shipmentId returned it.

What to do: treat a 404 from getShipment as a shipment that no longer exists, and stop polling it.

A US ZIP+4 is stored as its 5-digit ZIP

When a US postal code arrives in the ZIP+4 form, such as 67301-3524, 673013524 or 67301 3524, the shipment now stores it as the 5-digit ZIP, 67301. This applies to every address on startShipmentQuoting and to every other request that saves an address.

Until now we kept all nine digits and sent them to the carriers. Most LTL carriers rate on the 5-digit ZIP and refuse a longer code, so a shipment with a ZIP+4 got quotes from far fewer carriers. It now gets the same quotes as one sent with the 5-digit ZIP.

Canadian postal codes are not affected.

What to do: nothing. If your integration compares the postalCode it reads back with the one it sent, expect the 5-digit ZIP.

A blank pickup or delivery city is refused

· Breaking

startShipmentQuoting now refuses a request whose pickup or delivery city is empty or only whitespace, with a 400 and error code PickupLocationMissingCity or DeliveryLocationMissingCity. The field was already required, but an empty string passed; several carriers don’t quote without a city, so those requests quietly got fewer quotes.

What to do: send the city of every pickup and delivery location.

Accepted webhook events can no longer be redelivered from the Dashboard

Once any send of a webhook event has been accepted by your endpoint, that event can no longer be re-sent from the Dashboard’s Webhook Deliveries list. A delivery that stopped without being accepted can still be re-sent, up to 3 times per delivery.

Quotes can come back without a transit time

· Breaking

A quote’s transitBusinessDays and expectedDeliveryDate are now left empty when we have no reliable transit time, instead of being filled with a guess. This happens in two cases:

  • The carrier and every fallback we use returned no transit time. Until now such a quote showed 1 business day, a number nobody had checked.
  • A US to Canada quote from SAIA or AAA Cooper, whose northbound transit times aren’t reliable.

Both fields were already optional in the schema, so the response is still valid, but they used to be present on every quote.

What to do: treat a missing transitBusinessDays or expectedDeliveryDate as an unknown transit time, and show it that way, rather than as an error or as zero days.

Upload customs documents through the API

A new operation, uploadCustomsDocuments (POST /shipments/upload-customs-documents), attaches customs documents such as the commercial invoice to a shipment that crosses the border. Each upload goes straight to the carrier.

  • Send the shipmentId that start-quoting returned, a mode, and 1 to 10 documents, each a fileName and a base64EncodedPdf of at most 10 MB before encoding. The whole request body must stay under 100 MB.
  • Uploads open once the pickup is booked, from BookingConfirmed until the shipment is delivered.
  • mode: "Add" keeps the documents already on the shipment. mode: "Replace" swaps them for the new set, and the carrier gets the new set if the old one was already sent.
  • A shipment takes at most 10 uploads through the API; after that, upload from the Dashboard.
  • An invalid upload returns a 400 with one of InputValidationError, InvalidDocument, CustomsDocumentsNotRequired, ShipmentClosed, ShipmentNotBooked or UploadLimitReached.

Watch the shipment response’s needsCustomsDocs: it is true while a cross-border shipment has no customs documents. Documents uploaded through this operation produce a shipment_document_uploaded webhook event, as customs documents uploaded in the Dashboard already did.

Changes to the API now have a changelog

Every change to the public API is now listed, newest first and with the date it shipped, in the API changelog. A change marked Breaking can refuse a request that used to succeed, or changes a field your integration may parse, so check those against your integration.

The contacts at a company with an active API key get one email for each new change. A breaking change comes in its own email, with a subject that starts with “Breaking:”. You can unsubscribe with the link in the email, and that leaves other FreightSimple email alone. Unsubscribing also stops the emails about breaking changes, so after unsubscribing, watch this changelog for them.

The API documentation links to the changelog from its Changelog section.

Failed webhooks are retried for about a day

A failed webhook delivery is now retried over about 23 hours instead of 3 quick attempts 500 ms apart. An attempt fails when your endpoint does not answer with a 2xx within 10 seconds.

AttemptWait after the previous attempt
21 minute
35 minutes
415 minutes
51 hour
62 hours
76 hours
814 hours

Each wait varies by up to 10 percent either way. The first 2xx ends the retries, and after attempt 8 the delivery is marked exhausted. Every retry keeps the original event_id under a fresh signature, so deduplicating on event_id makes retries safe.

Shipment state events (shipment_quoted, shipment_booked, shipment_in_transit, shipment_on_hold, shipment_delivered, shipment_cancelled, shipment_invoices_updated) are not retried once a newer one for the same shipment has been sent to the same endpoint. Draft, document and tracking line events are always retried.

What to do: expect a retried event to arrive hours later and after newer events, and take the shipment’s state from the payload rather than from arrival order. Details are in the Webhook section of the API reference.

Webhook deliveries listed in the Dashboard, with redeliver

Every webhook delivery of the last 30 days is now listed in the Dashboard under Developers, Webhook Deliveries, with the request we sent and the response your endpoint returned.

A delivery that has stopped retrying without being accepted can be re-sent from there, up to 3 times per delivery. A redelivery carries the original body, including its event_id, under a fresh signature and timestamp. If you deduplicate on event_id, a redelivered event you already processed is skipped like any other repeat.

Unrecognised states and provinces are refused

· Breaking

startShipmentQuoting now checks stateOrProvinceCode on the pickup and delivery locations. The value must be a state or province of that location’s countryCode. Otherwise the request is refused with a 400 and error code PickupLocationInvalidStateOrProvinceCode or DeliveryLocationInvalidStateOrProvinceCode.

Two-letter codes such as ON or CA are accepted in any case, and so are full names such as Ontario. Either way, the shipment stores the two-letter code.

On a cross-border request, a non-blank broker.address.stateOrProvinceCode is checked the same way and refused with InputValidationError.

What to do: send the two-letter code that matches the country.

Unknown postal codes return a 400 instead of a 500

When startShipmentQuoting received a postal code we could not locate, it failed with a 500 Internal Server Error. It now returns a 400 with error code PickupLocationPostalCodeNotFound or DeliveryLocationPostalCodeNotFound, and a message naming the code.

Nothing is created when this happens. Check the postal code and send the request again.

Saved commodities show who added them

Saved commodities returned by the saved commodities operations, such as listSavedCommodities and getSavedCommodityBySku, have a new read-only field, createdByName: the name of the person who created the commodity in the FreightSimple Dashboard.

It is absent for commodities created through the API, an integration or an upload, and for Dashboard commodities created before the field existed. Any value you send in it is ignored.

New webhook event: shipment_tracking_line_added

A new webhook event, shipment_tracking_line_added, is sent once for each new line on a shipment’s tracking: a carrier scan, a line our team adds after talking to the carrier, or one your own users add from the FreightSimple mobile app.

The data holds shipmentId, trackingId, shipmentStatus (the status after the line was added) and trackingLine with trackingLineId, timestamp, message and source (Carrier, FreightSimple or Customer). A line that is later corrected or removed sends nothing more.

If your endpoint subscribes to all events, it starts receiving this one now, several times per shipment per day while the shipment moves. Ignore an event_type you don’t handle.

A scan that also changes the shipment’s status sends two events: the line, and shipment_in_transit or shipment_delivered. Act on the status event and use the line event for display. Lines can arrive out of order, so sort them by trackingLine.timestamp. See the Webhook section of the API reference.

bookingContact on startShipmentBooking

startShipmentBooking accepts a new optional bookingContact object: the person at your company we contact about the shipment. Pickup reminders, invoices and questions from our operations team go to its email address.

  • name: up to 100 characters.
  • email: a valid address, not a FreightSimple one.
  • phoneNumber: 10 digits, optionally with a leading 1, e.g. 6045551234.

A shipment booked through the API has no Dashboard user behind it, so without a booking contact we have nobody to reach. We recommend sending it on every booking.

When a request carries bookingContact, the whole request body is checked against the schema, and any invalid value is refused with a 400 and error code InputValidationError. Requests without it are accepted as before.

Webhooks carry a stable event id

Every webhook now includes an event_id (a UUID) in the body and the same value in a new X-FreightSimple-Event-Id header. The id is the same for every endpoint the event is sent to and every time it is sent, and each new event gets a new one.

The same event can reach you more than once, so record the event_id values you have processed and skip one you have already seen. Deduplicate on the body copy, which the signature covers; the header is there for logging.

A resent event keeps its event_id but gets a fresh signature and timestamp, so verify it like any other request. Events are not ordered: take the shipment’s state from the payload, not from the order events arrive in. See the Webhook section of the API reference.

Stricter check on additionalNotificationEmails

· Breaking

createShipmentDraft now checks additionalNotificationEmails against the address rule our email provider applies.

Addresses whose local part or domain starts or ends with a dot, or has two dots in a row (for example jane..doe@example.com), are now refused with a 400. Those addresses could not receive mail anyway. Some characters the old check refused, such as an apostrophe in o'brien@example.com, are now accepted.

A request whose addresses were valid before is not affected.

Instant quotes capped at 30 handling units

· Breaking

startShipmentQuoting now accepts at most 30 handling units per shipment, counted as the sum of numberHandlingUnits across all line items. Past that, a load is truckload-sized rather than LTL.

  • A shipment with more than 30 handling units in total is refused with a 400 and error code ShipmentHandlingUnitsTooHigh. This is new.
  • A single line item with more than 30 handling units is refused with LineItemNumberHandlingUnitsTooHigh. The per-line limit used to be 100.

What to do: check the total before you call, and contact us for a quote on anything larger.

Deadlines must fall after the pickup date

· Breaking

A pickup or delivery deadline on or before the pickup date can never be met, so the API now refuses one.

startShipmentQuoting returns a 400 with error code PickupDeadlineBeforePickupDate or DeliveryDeadlineBeforePickupDate when pickup.deadline or delivery.deadline is not strictly after pickupDate. Only deadlines the location takes are checked; a deadline sent for a location that ignores deadlines is still dropped without an error.

startShipmentBooking applies the same rule. If the pickupDate you book with moves the pickup to or past a deadline on the shipment, or the shipment’s deadlines are not after its pickup date, booking is refused with a 400 and error code InputValidationError, and the pickup date is left unchanged.

Demo quote prices are randomly offset

Quotes in the demo environment (https://api.freightsimpledemo.com) still come from the real carriers, but each quote’s price is now moved by a random offset of up to 20 percent either way before it is stored. Taxes are scaled with it, so the numbers in a quote stay consistent with each other.

Each quote gets its own offset, so prices and the order of carriers in demo are not representative of production. Use demo to exercise your integration, not to compare rates. Production prices are not affected.

Per-company rate limits on every endpoint

· Breaking

Every public API endpoint now has a limit on how many requests your company can make in any rolling 60-minute window. Limits are per company, so all API keys of one company share a budget.

EndpointRequests per hour
POST /shipments/start-quoting, POST /shipments/start-booking250
POST /shipments/create-draft, POST /saved-commodities/create, /update, /delete2,000
All other endpoints10,000

Enforcement is switched on one company at a time, and we contact the API key owner before switching it on for yours. Until then a request over a limit is still served.

Once it is on, a request over the limit gets HTTP 429 with error code RateLimitExceeded. The response carries a Retry-After header with the seconds to wait, and the body repeats it as retryAfterSeconds next to limit. Refused requests count against the window too, so retrying before Retry-After has passed only pushes the wait out.

What to do: treat a 429 as “slow down”, not as a failed request (nothing was created or changed), wait Retry-After seconds and resume. If you need a higher limit on an endpoint, ask your account manager. The full table is in the Rate Limits section of the API reference.

Delivery deadline required for Walmart warehouses

· Breaking

startShipmentQuoting now requires delivery.deadline (the Must Arrive By Date, YYYY-MM-DD) when the delivery is a Walmart distribution warehouse: locationType is DistributionWarehouse and distributionWarehouseBrand is Walmart. Without it, the request is refused with a 400 and error code DeliveryLocationMissingDeadline. Pickup deadlines stay optional.

listDistributionWarehouseBrands returns two new fields per brand, so you don’t have to hard-code the rule:

  • supportsDeliveryDeadline: whether the brand takes a delivery deadline at all. When false, a deadline you send is ignored.
  • requiresDeliveryDeadline: whether quoting is refused without one. Today this is true only for Walmart.

Amazon reference ids capped at 30 characters, and accepted on drafts

· Breaking

On startShipmentQuoting, delivery.amazonReferenceId and delivery.amazonShipmentId now allow at most 30 characters (the limit was 256). The cap also applies when the ids are packed into delivery.referenceNumber as R#<amazonReferenceId>, S#<amazonShipmentId>. A longer id is refused with a 400 and error code InputValidationError. Real Amazon ids are much shorter than 30 characters, so a correct integration is not affected.

createShipmentDraft now accepts delivery.amazonReferenceId and delivery.amazonShipmentId for deliveries to an Amazon distribution warehouse. They are packed into the delivery reference number for you.

Drafts are also checked now, through either field or a packed referenceNumber. A draft may leave both ids out, but it is refused with a 400 when:

  • only one of the two ids is given
  • an id contains a comma or is longer than 30 characters
  • the named ids and referenceNumber disagree
  • the ids are sent for a delivery that is not an Amazon distribution warehouse

New document type: InterlineLabel

documentType gained a new value, InterlineLabel. You can see it on the documents of a shipment returned by getShipment and in the document of a shipment_document_uploaded webhook.

If your client deserializes documentType into a fixed enum, add the new value or map unknown values to a fallback, so one new document does not make the whole response fail to parse.

Inside pickup and delivery refused for residential locations

· Breaking

Inside pickup and inside delivery are business-location services, and carriers do not perform them at a house. The API now refuses the combination instead of quoting it.

startShipmentQuoting returns a 400 with error code InsideNotAvailableForResidential when pickup or delivery has locationType set to Residential and specialServiceInsideRequired set to true. Requests like this used to be accepted.

startShipmentBooking can also return InsideNotAvailableForResidential for a shipment that still pairs a residential location with inside service. The quote no longer matches a service we can book; request new quotes without inside service.

What to do: send specialServiceInsideRequired: false for residential locations, and handle the new error code on both operations.

New Canadian TDG fields for dangerous goods

Shipments that pick up or deliver in Canada can now carry the extra details the Transportation of Dangerous Goods (TDG) declaration prints on the bill of lading. All of them are optional, and a request without them is accepted as before.

On emergencyContact in startShipmentQuoting and createShipmentDraft:

  • tdgResponsibleName: the person certifying the declaration, as a first and last name, up to 45 characters.
  • erapPlanNumber: a Transport Canada ERAP reference in the form 2-1234 or 2-1234-567.
  • erapPhoneNumber: the 24-hour number that activates the ERAP, 10 digits (a leading 1 is accepted and dropped).

On each line item, dangerousNetExplosiveQuantityKg takes the net explosive quantity in kilograms for Class 1 explosives.

When you send these values, startShipmentQuoting checks them and returns a 400 with one of these codes: InvalidTdgResponsibleName, IncompleteErap (one ERAP field without the other), InvalidErapPlanNumber, InvalidErapPhoneNumber, LineItemDangerousNetExplosiveQuantityTooHigh (over 21,772 kg) or LineItemMissingDangerousNetExplosiveQuantity (zero or negative). A missing value is never rejected through the API.

Webhook signature documented as Base64, not hex

The reference documented the v1 value in the X-FreightSimple-Signature header as a hex string. That was wrong: the signature has always been sent as standard padded Base64 (the + and / alphabet, not base64url), 44 characters for the 32-byte HMAC-SHA256 digest. What we send did not change; the documentation now matches it.

If your verification hex-encodes the digest it computes, it will never match. Base64-decode the received signature and compare it with your computed digest using a constant-time comparison, or Base64-encode your digest and compare the strings.

The header format is unchanged: t={unix_timestamp},v1={base64_signature}, signed over {timestamp}.{request_body} with your webhook secret. See the Webhook section of the API reference.

Was this article helpful?

Need help? Contact us