Guide for customers and shippers
You are a shipper, customer or broker. You book transportation orders with a carrier (or an agent) on the Partner Network and follow them to delivery. In every call below, {partnercode} is the carrier or agent's code.
Code
1. Know the partner's codes
Order bookings reference partner-specific codes for equipment, service and reference types. Fetch them once and cache them:
Code
Each list is an array of { "Abbr": "V", "Name": "Dry Van" }; send the Abbr.
2. Set up your locations
Create the pickup and delivery locations you will reuse, with the roles they play:
Code
The response returns the stored location with its _id; GET .../locations?page=1 lists them in a paged envelope (page, pageSize, totalCount, locations[]). PUT .../locations/{id} updates a location, and DELETE .../locations/{id}/roles/{role} retires one role without deleting the location.
3. Book an order
An order needs at least two stops in sequence, each with a StopType, Sequence, City and State. Freight details and reference numbers are optional but valuable:
Code
A successful booking answers 201:
Code
Keep orderId; it is the orderid for the calls that follow. A 207 means the order was created but some fields were skipped (warnings[]). A 422 returns { "detail": "...", "errors": [...] } and nothing was created.
Create Order Quote (POST .../quotes) books a tentative order for pricing before you commit. It is gated at the moment.
4. Change or cancel an order
Update stops, freight or references by their identifiers (_id for stops, DataGUID for freight and references). Send only what changes:
Code
Cancel with DELETE .../orders/{orderid}; the order is archived on the partner's side.
5. Follow the order
Code
Get Orders returns TripActor records with TripStatus, PercentCompleted, StopsCompleted, each stop's Arrived / Completed flags and dates, and the latest known position in ProximityDescription. Get GPS Positions returns up to 100 recent fixes in positions[] with moreAvailable.
If you only have the order number (the orderNumber from the booking response), Get Order by Order Number returns the order card with its full carddata in a paged envelope (page, pageSize, totalCount, orders[]), so one call gets you the order without listing first. orders[] can hold more than one card because order numbers are not guaranteed to be unique, and it is empty when nothing matches.
For pushes instead of polling, register webhooks for arrive, depart, update and gps on the order object type; see Webhooks.
6. Collect documents
GET .../orders/{orderid}/documents lists the documents the carrier attached (proof of delivery, bills of lading) that your partner role may see. The operation is gated today; until it is enabled, documents are available in the platform.
7. Create an invoice
Create an invoice on the partner's invoice board. title is required. Status and Terms are Abbr values from the invoice option lists. boardId and listId can be omitted; they default to the partner's first invoice board and its first list.
Attach orders only together with BillToCardId. That id is a location card with a BillTo role, and each order must already be billed to it.
Code
A successful create answers 200 with the stored invoice card and status: "ok". Keep _id; it is the invoice card id. A 207 means the invoice was created but some fields were skipped (warnings[]). A 422 means nothing was created.
Update with PUT .../invoices/{id}. Send only the fields that change. BillToCardId replaces the bill-to; "" or null removes it, which fails while orders are still attached. OrderCardIds replaces the whole set of orders (an empty array detaches them all). Omit either field to leave it unchanged.
Code
Errors you will see
| Response | Meaning |
|---|---|
422 { "detail": "Stops must contain at least two entries" } | Booking rules not met; errors[] names each problem. |
422 { "detail": "Bill-to customer not found" } | Invoice was not created or updated. The same shape covers a missing board or list, an unknown invoice or order, or an order billed to a different location. |
207 with warnings | Saved without the listed fields. |
404 No orders found. | Nothing on that page or no match for the filters. |
See the error catalog.