Guide for carriers
You are a carrier. A customer, broker or agent on the Partner Network tenders freight to you, and you keep them informed as the load runs. In every call below, {partnercode} is their code and YOUR_API_KEY identifies your company.
Code
1. See what has been tendered to you
List the loads the partner shares with you. Loads come 100 per page, newest activity first:
Code
Each element is a stored card: the fields you need are under _source.carddata (OrderNumber, TripStatus, Origin*, Destination*, Stops[], FreightDetails[]). The card's _id is the loadid for every call that follows.
To read one load:
Code
Offers (GET .../offers, accept, reject) are gated at the moment. When they are enabled for your key, Get Active Offers lists open offers since a starttime, and Accept an Offer / Reject an Offer close them. Both are HTTP GET requests that change state, so call each once.
2. Update the load as you plan it
Change the carrier-side details of a load with PUT .../segments/{segmentid} (segmentid is the same value as loadid). The body carries only the parts you are changing; stops are addressed by their DataGUID as _id:
Code
200 {"status":"ok"}when everything was applied.207 {"status":"ok","warnings":["Permission denied for LatestDate"]}when some fields were skipped because the partner's role for you does not allow them.422 {"detail":"...","errors":[...]}when a field is invalid.
PUT .../loads/{loadid}/ and PUT .../loads/{loadid}/stops/{stopid} are the workflow-backed equivalents used by some partners; use the one your partner specifies.
3. Report arrivals and departures
Code
stopid is the stop's StopId. The partner's webhooks fire on each event, so there is no need to send a separate status message.
4. Send positions
If the partner does not already receive your telematics through the platform, post positions against the load:
Code
The schema in the reference lists the accepted fields. One position every 5 to 15 minutes while moving is typical; the partner can retrieve the history with Get GPS Positions.
5. Attach documents and notes
Code
noteType and noteBody are required. Note types are partner-specific; fetch them with GET .../options/notetypes and send the Abbr.
Attachments (POST .../loads/{loadid}/attachments/) take a docType, a fileName, a mimeType, and either a fileUrl the platform can fetch or base-64 data. The operation is gated today; see Environments.
6. Hand back the paperwork
Proof of delivery and other documents attached to the load flow back to the customer through the platform. Once the final stop is departed and the documents are attached, the order shows as delivered on the customer's side and your part is done.
Errors you will see
| Response | Meaning |
|---|---|
404 No orders found. on the loads list | Nothing shared with you on that page; stop paging. |
401 Not authorized to partner. | The partner has not approved API access for your company yet. |
207 with warnings | Saved, but the listed fields were ignored because of your role. |
See the error catalog for the full list.