CarrierCloud (v1) - Universal Transportation API

Geocoding, document synchronisation, and change polling for cards updated after a given time.


Reverse Geocode

GET
https://qa.carriercloud.ai
/v1/utility/geocode/reverse

Get an address from a specified Latitude/Longitude. Query parameters are passed to the geocoder as given; the best match is returned as a single ZoneActor.

Reverse Geocode › query Parameters

point.lat
​number · required

Latitude in decimal degrees.

point.lon
​number · required

Longitude in decimal degrees.

Reverse Geocode › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Reverse Geocode › Responses

The best match as a single ZoneActor.

A geocoded place. Returned as a single object (not an array).
ZoneId
​string

Always empty.

Description
​string

Display label of the match.

Address1
​string

House number and street, when present.

Address2
​string

Always empty.

City
​string
State
​string
ZipCode
​string
Country
​string
Latitude
​number
Longitude
​number
IsHub
​boolean

Always false.

IsInterchange
​boolean

Always false.

IsTerminal
​boolean

Always false.


GET
https://qa.carriercloud.ai
/v1/utility/geocode/search

Geocode a location to obtain a Zone Actor object with latitude/longitude. Query parameters are passed to the geocoder as given; the best match is returned as a single ZoneActor.

Geocode Search › query Parameters

text
​string · required

Free-text place or address to geocode.

Geocode Search › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Geocode Search › Responses

The best match as a single ZoneActor.

A geocoded place. Returned as a single object (not an array).
ZoneId
​string

Always empty.

Description
​string

Display label of the match.

Address1
​string

House number and street, when present.

Address2
​string

Always empty.

City
​string
State
​string
ZipCode
​string
Country
​string
Latitude
​number
Longitude
​number
IsHub
​boolean

Always false.

IsInterchange
​boolean

Always false.

IsTerminal
​boolean

Always false.


GET
https://qa.carriercloud.ai
/v1/utility/geocode/structured

Geocode a location with structured search parameters (address, city, state, zip, etc.) to obtain a Zone Actor object with latitude/longitude. Query parameters are passed to the geocoder as given; the best match is returned as a single ZoneActor.

Geocode Structured Search › query Parameters

address
​string

House number and street.

locality
​string

City or town.

region
​string

State or province.

postalcode
​string

Postal code.

country
​string

Country name or code.

Geocode Structured Search › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Geocode Structured Search › Responses

The best match as a single ZoneActor.

A geocoded place. Returned as a single object (not an array).
ZoneId
​string

Always empty.

Description
​string

Display label of the match.

Address1
​string

House number and street, when present.

Address2
​string

Always empty.

City
​string
State
​string
ZipCode
​string
Country
​string
Latitude
​number
Longitude
​number
IsHub
​boolean

Always false.

IsInterchange
​boolean

Always false.

IsTerminal
​boolean

Always false.


Cards - Get Recently Updated

GET
https://qa.carriercloud.ai
/v1/partner/{partnercode}/cards/recentlyupdated/{cardtype}

Returns cards of one type updated after dateLastActivity, oldest activity first. Archived cards are included; templates are not. Pass the last card's paginationToken as searchAfter and keep the same dateLastActivity to read the next page. An empty page is 200 with { "cards": [] }. order is a customer order; segment is a carrier load.

Cards - Get Recently Updated › path Parameters

partnercode
​string · required

Partner 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.

cardtype
​string · enum · required

Card type to return. order is a customer order; segment is a carrier load.

Enum values:
order
segment
driver
truck
trailer
carrier
event
invoice

Cards - Get Recently Updated › query Parameters

dateLastActivity
​string · date-time · required

Return cards updated after this UTC instant (ISO 8601). Keep this value the same while paging.

searchAfter
​string

paginationToken from the last card of the previous page. Omit for the first page.

limit
​integer · int32 · min: 1 · max: 500

Page size. Positive integer. Maximum 500. Default 500.

Default: 500
fields
​string

Comma-separated card fields to return. Default _id. paginationToken is included either way.

Default: _id

Cards - Get Recently Updated › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Cards - Get Recently Updated › Responses

A page of matching cards, oldest activity first. Empty when nothing matches or the partner has no boards.

A page of cards updated after dateLastActivity, oldest activity first.
​object[] · required

Cards on this page. Empty when none match or the partner has no boards.


Utilities - Sync External Documents

GET
https://qa.carriercloud.ai
/v1/partner/{partnercode}/utility/{id}/syncexternaldocuments

Triggers retrieval of additional documents from configured external integrations on the partner company. Sync is asynchronous; a 202 response means the request was accepted, not that documents are ready. Poll the object after a short wait to check for new attachments.

Utilities - Sync External Documents › path Parameters

partnercode
​string · required

Partner 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.

id
​string · required

Identifier of the object addressed by this route, as returned by the matching list or lookup operation.

Utilities - Sync External Documents › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Utilities - Sync External Documents › Responses

Synchronisation started; documents arrive on the card asynchronously.

message
​string