Operations a customer or shipper performs with a partner: orders, quotes, locations, invoices, documents and tracking.
Orders - Get Orders
Get a list of orders (trip) for a specific partner.
path Parameters
partnercodePartner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.
query Parameters
pagePage number to return, starting at 1. Omit for the first page.
refNumberFilter orders by exact reference number match. The reference number must match exactly (case-sensitive).
orderNumberFilter orders by exact order number match. The order number must match exactly (case-sensitive).
statusFilter orders by exact status match. The status must match exactly (case-sensitive).
billToFilter orders by bill-to customer code. The Customer ID must match exactly (case-sensitive).
sortOptional sort for order results. Default is by Order Id.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Orders - Get Orders › Responses
Orders for the partner, newest activity first, 100 per page.
IDOrder identifier. Use it as orderid on Get Order Detail, Update Order Booking and Cancel Order Booking.
TripIdOrder number.
CompanyAlways empty.
CarrierAlways empty.
CarrierNameAlways empty.
ProNumberAlways empty.
BookedDateDate-time the order was created.
TripStatusOrder status.
BillToIdentifier of the bill-to company.
LastUpdatedDate-time of the last activity on the order.
OriginEarliestOriginLatestOriginCityOriginStateOriginRegionOrigin country.
DestinationEarliestDestinationLatestDestinationCityDestinationStateDestinationRegionDestination country.
Driver1Primary driver name.
Driver2Always null.
TractorTractor number.
TrailerAlways null.
NextEventDateTimeNextEventDateFlagOriginZipCodeDestinationZipCodePercentCompletedStopsCompletedTotalStopsProximityDescriptionLast known position as text, when tracking is available.
ProximityLatitudeProximityLongitudeOriginCompanyIdOriginCompanyNameDestinationCompanyIdDestinationCompanyNameDriver1NameDriver2NameOrders - Create Order Booking
Create (book) a new transportation order with a partner. This endpoint allows customers to book orders that will be made available to carriers in the partner network. The order must include at least two stops (pickup or delivery location) with required location information. Optional freight details, reference numbers, and special instructions can be included to provide complete order information. X
path Parameters
partnercodePartner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Orders - Create Order Booking › Request Body
Array of stops (pickup and delivery locations)
OrderNumberUnique order number for tracking
EquipmentSelectionEquipment type abbreviation for the order
ServiceTypeService type abbreviation for the order
Driver1Primary driver name for brokered carrier
Driver2Secondary driver name for brokered carrier
DriverPhoneDriver phone number for brokered carrier
TractorTractor identifier for brokered carrier
TrailerTrailer identifier for brokered carrier
Details about the freight being transported
Reference numbers (BOL, PRO, etc.)
BillToCompanyIdCompany ID for billing
specialInstructionsSpecial handling instructions
Orders - Create Order Booking › Responses
Order successfully created
statusResult status
messsageHuman-readable result message
objectIdUnique identifier for the created order card
orderIdUnique identifier for the created order (same value as objectId)
orderGuidGUID identifier for the order
orderNumberOrder number
createdAtTimestamp when order was created
warningsPermission or field warnings when the order was created with partial field updates
Locations - Get Locations
Get a paginated list of location cards for a partner. Optionally filter by companyId (case-sensitive).
path Parameters
partnercodePartner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.
query Parameters
pagePage number to return, starting at 1. Omit for the first page.
companyIdFilter by companyId (case-sensitive). Omit or leave blank for no filter.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Locations - Get Locations › Responses
Locations retrieved successfully
statusResult status
pageCurrent page number
pageSizeNumber of locations returned per page
totalCountTotal number of matching locations
Location cards for the current page
Locations - Create Location
Create a new location card for a partner. Optional role-specific data may be supplied under Roles (Shipper, Consignee, BillTo, Terminal, TruckStop, Agent, WashFacility). Partner-network role permissions determine which fields may be set on the created card.
path Parameters
partnercodePartner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Locations - Create Location › Request Body
titleboardIdlistIddescriptionCompanyIdCompanyNameContactAddress1Address2CityStateZipCodePrimaryPhoneSecondaryPhoneFaxEmailLatitudeLongitudeExternalIdLocations - Create Location › Responses
Location successfully created
statusResult status when present
_idLocation card identifier
locationIdLocation card identifier (207 partial-success responses)
boardIdcardtypewarningsPermission warnings when some requested fields were not set
Invoices - Get Invoices
Get a paginated list of invoice cards for a partner, newest first, 100 per page. Filter by exact invoice number (invoicenum) or by the order number of an attached order (ordernum); the filters combine. Invoice fields your partner role cannot view are omitted. The envelope is page, pageSize, totalCount and invoices[]; invoices[] is empty (with totalCount 0) when nothing matches.
path Parameters
partnercodePartner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.
query Parameters
pagePage number to return, starting at 1. Omit for the first page.
invoicenumOnly return invoices with this invoice number (InvoiceId). Exact, case-sensitive match.
ordernumOnly return invoices attached to an order with this order number (orderNumber from Create Order Booking, TripId in Get Orders). Exact, case-sensitive match.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Invoices - Get Invoices › Responses
Invoices for the partner, newest first, in a paged envelope. totalCount is 0 and invoices[] is empty when none match.
pageCurrent page number.
pageSizeMaximum number of invoices per page.
totalCountTotal number of invoices matching the filters, across all pages. 0 when none match.
Invoice cards for the current page. Empty when none match.
Invoices - Create Invoice
Creates an invoice card on a partner invoice board. Optionally attaches a bill-to location (BillToCardId) and orders (OrderCardIds) by card id. Orders can only be attached when a BillToCardId is supplied and each order is billed to that card. Status and Terms are Abbr values from the invoice status and invoice term option lists. boardId and listId default to the partner's first invoice board and its first list.
path Parameters
partnercodePartner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Invoices - Create Invoice › Request Body
titleboardIdInvoice board id on the partner network. Defaults to the first invoice board the partner shares.
listIdList id on the invoice board. Defaults to the first list on the board.
descriptionStatusAbbr of an invoice status from GET /v1/partner/{partnercode}/options/invoicestatuses.
TermsAbbr of an invoice term from GET /v1/partner/{partnercode}/options/invoiceterms.
InvoiceDateAmountPaidRemittanceNumberBillToCardIdCard id of a partner location with a BillTo role to attach as the invoice bill-to.
OrderCardIdsCard ids of partner orders to attach. Requires BillToCardId, and each order must be billed to that card.
Invoices - Create Invoice › Responses
Invoice created. The body is the stored invoice card with status set to ok.
statusResult status when present
_idInvoice card identifier
invoiceIdInvoice card identifier (207 partial-success responses)
titledescriptionboardIdlistIdcardtypewarningsPermission warnings when some requested fields were not set
Invoices - Get Invoice
Get an invoice card by its card id (the _id returned by Create Invoice and Get Invoices). Invoice fields your partner role cannot view are omitted. Answers with the invoice card itself, not a paged envelope.
path Parameters
partnercodePartner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.
idThe invoice card id returned as _id when the invoice was created or listed.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Invoices - Get Invoice › Responses
The invoice card, limited to the fields your partner role may see.
_idInvoice card identifier. Use it as {id} in Get Invoice and Update Invoice.
titledescriptioncardtypeboardIdlistIdcompanyIdOwning company.
createdAtdateLastActivitylastUserActivityarchivedattachedCard5Card id of the attached bill-to location, when one is attached. Matches BillToCardId on Create and Update Invoice.
relatedCardsCard ids of the orders attached to the invoice. Matches OrderCardIds on Create and Update Invoice.
attachedObjectsObjects attached to the invoice card.
Invoice fields: InvoiceId, Status, Terms, InvoiceDate, Total, AmountPaid, BalanceDue, RemittanceNumber, Customer and others, limited to what your partner role may view.
Invoices - Update Invoice
Updates an invoice card on a partner invoice board. Send only the fields that should change. BillToCardId replaces the attached bill-to; an empty string or null removes it, which is rejected while orders are attached. OrderCardIds replaces the full set of attached orders (orders not listed are detached); an empty array detaches all orders. Omit either field to leave it unchanged. Each attached order must be billed to the invoice bill-to. Status and Terms are Abbr values from the invoice status and invoice term option lists.
path Parameters
partnercodePartner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.
idThe invoice card id returned as _id when the invoice was created.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Invoices - Update Invoice › Request Body
titledescriptionStatusAbbr of an invoice status from GET /v1/partner/{partnercode}/options/invoicestatuses.
TermsAbbr of an invoice term from GET /v1/partner/{partnercode}/options/invoiceterms.
InvoiceDateAmountPaidRemittanceNumberBillToCardIdCard id of a partner location with a BillTo role. Send an empty string or null to remove the bill-to. Removal is rejected while orders are attached. Omit to leave unchanged.
OrderCardIdsFull set of partner order card ids to attach. Orders not listed are detached. Send an empty array to detach all orders. Omit to leave unchanged. Requires a bill-to, and each order must be billed to it.
Invoices - Update Invoice › Responses
Invoice updated. The body is the stored invoice card with status set to ok.
statusResult status when present
_idInvoice card identifier
invoiceIdInvoice card identifier (207 partial-success responses)
titledescriptionboardIdlistIdcardtypewarningsPermission warnings when some requested fields were not set
Orders - Get Order Detail
Get details of a specific order.
path Parameters
partnercodePartner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.
orderidOrder identifier as returned by Get Orders or Create Order Booking.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Orders - Get Order Detail › Responses
The order as a one-element array of stored card documents (empty array when the id is unknown).
_idCard identifier.
Orders - Update Order Booking
Update an existing transportation order for a partner. Nested stop, reference, and freight updates require the _id or DataGUID values from the existing order. Partner-network role permissions determine which fields may be updated.
path Parameters
partnercodePartner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.
orderidOrder identifier as returned by Get Orders or Create Order Booking.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Orders - Update Order Booking › Request Body
EquipmentSelectionServiceTypeDriver1Driver2DriverPhoneTractorTrailerOrders - Update Order Booking › Responses
Order successfully updated
statusResult status
warningsPermission warnings when some requested fields were not updated
Orders - Cancel Order Booking
Cancel an order booking and remove it from the system.
path Parameters
partnercodePartner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.
orderidOrder identifier as returned by Get Orders or Create Order Booking.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Orders - Cancel Order Booking › Responses
Order booking cancelled (archived).
Orders - Get by Order Number
Get an order by its order number instead of its id. Answers with the Partner API's paged envelope (page, pageSize, totalCount, orders[]), where each order is the card with the fields your partner role may see. Order numbers are not guaranteed to be unique, so orders[] can hold more than one card; it is empty when nothing matches.
path Parameters
partnercodePartner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.
orderNumberOrder number to look up (exact, case-sensitive match). This is orderNumber from Create Order Booking and TripId from Get Orders.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Orders - Get by Order Number › Responses
Orders whose number matches, in a paged envelope. totalCount is 0 and orders[] is empty when none match.
pageCurrent page number (always 1 for this lookup).
pageSizeMaximum number of orders returned.
totalCountNumber of orders with this order number. 0 when none match.
Matching order cards. Usually one; more when the order number is reused. Empty when none match.
Quotes - Create Order Quote
Create a quote for a tentative or pending shipment.
path Parameters
partnercodePartner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Quotes - Create Order Quote › Responses
The created quote.
Orders - Get Order Documents
Get Documents and Images for a specific order.
path Parameters
partnercodePartner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.
orderidOrder identifier as returned by Get Orders or Create Order Booking.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Orders - Get Order Documents › Responses
Documents attached to the order that your partner role may see.
namedocumentTypeAbbrDocument type code, for example BOL or POD.
Quotes - Get Quote Details
Get Quote details by Quote ID.
path Parameters
partnercodePartner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.
quoteidQuote identifier as returned by Create Order Quote.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Quotes - Get Quote Details › Responses
The quote.
Orders - Get GPS Positions
Get GPS tracking history for a given order
path Parameters
partnercodePartner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.
orderguidOrder identifier as returned by Get Orders or Create Order Booking.
query Parameters
pagePage number to return, starting at 1. Omit for the first page.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Orders - Get GPS Positions › Responses
Positions recorded for the order's load.
Newest positions, at most 100 per call.
moreAvailableTrue when more positions exist than were returned; narrow the time window to see them.
Locations - Update Location
Update a location card by id. Optional role-specific data may be supplied under Roles (Shipper, Consignee, BillTo, Terminal, TruckStop, Agent, WashFacility). Partner-network role permissions determine which fields may be updated.
path Parameters
partnercodePartner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.
idThe location card id
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Locations - Update Location › Request Body
boardIdlistIdtitledescriptionCompanyIdCompanyNameContactAddress1Address2CityStateZipCodePrimaryPhoneSecondaryPhoneFaxEmailLatitudeLongitudeExternalIdLocations - Update Location › Responses
Location successfully updated
status