Carrier API reference
HTTPS endpoints for tracking shipments, retrieving signed paperwork and rating LTL freight across the Reimer Group carriers. One credential, one base URL, one carrier code per request.
One host, one path shape
Every endpoint hangs off the same base. Swap the carrier code in the path to change which carrier answers.
Credentials on every request
There is no token exchange and no session. Send your client ID, key and customer code on each call.
No browser calls
The API sends no CORS headers, so a browser will block the request. Call it from your backend and keep your key off the client.
https://api.rewc.com:8184/api/<COMPANY_CODE>/<resource>What is here
| Endpoint | What it does | Carriers |
|---|---|---|
| Status API — track shipments | ||
| GET probill/lookup | Find one shipment by probill, bill of lading, purchase order or shipper number. | apex · cct · comox · owfl · wce |
| GET probill/search | List shipments picked up in a date range, optionally narrowed by party name or city. | apex · cct · comox · owfl · wce |
| Documents API — get shipment paperwork | ||
| GET images | Download the bill of lading and proof of delivery for a probill as a single merged PDF. | apex · cct · comox · owfl · wce |
| Pricing API — rate LTL freight | ||
| POST ratequote/customer | Rate an LTL shipment and get back a quote number. Three different rating engines — see Overland/Comox, Apex/WCE and CCT. | apex · cct · comox · owfl · wce |
Authentication
Three headers, sent on every request. Nothing to refresh, nothing to cache.
| Name | Type | Use | Details |
|---|---|---|---|
| x-client-id | String | Required | Your client name for the API. Assigned when your account is created and does not change. |
| x-api-key | String | Required | Your secret key for the API. Treat it like a password. It does not change unless it is compromised. |
| x-customer-code | String | Required | The customer account you are making the request for. One client credential can be entitled to several customer accounts; this header selects which one, and the request is rejected if you are not entitled to it. |
Your client credential can be entitled to more than one customer account. The
x-customer-code header picks which one the request runs as, and the API checks
that your credential is actually entitled to it. All endpoints also take a
customer-code parameter — it must name the same account as the header.
A request where the two disagree is refused with a 400 naming both, on every
endpoint:
Your x-customer-code does not match the customer-code submitted
(x-customer-code=ABC123, customer-code submitted=OTHER1)The Overland/Comox rate quote has no single
customer-code — it matches the header against shipper-code,
consignee-code and bill-to-code, and at least one of the three has
to match. Its message names all of them: Your x-customer-code does not match any code
submitted (x-customer-code=…, shipper-code=…, consignee-code=…,
bill-to-code=…).
The x-api-key is a long-lived shared secret, not a rotating token. Store it in
your server's environment or secret manager. Because the API sends no CORS headers, a browser
cannot call it directly anyway — and it should not.
Authentication failures
Authentication is checked before your parameters are, so these failures tell you nothing
about the rest of your request. They come from the API itself rather than an endpoint, so the
body is JSON with a single error key — see
response format. A rejected request that carried your
x-client-id is still recorded, with the response you were sent — see
reporting a problem.
| Status | Body | Cause |
|---|---|---|
400 | {"error": "Unable to complete request. Missing client credentials."} | x-client-id, x-api-key or x-customer-code is missing. |
400 | {"error": "Not authorized to customer <code>."} | Your credential is not entitled to the customer account named in x-customer-code. |
400 | {"error": "Not authorized to any customers."} | Your credential has no customer accounts set up yet. Contact your account representative. |
401 | {"error": "Unauthorized."} | The client ID or key is wrong, or your credential is not permitted this endpoint, HTTP method or carrier. That includes a carrier code that is not one of the five, a misspelt path and the wrong method: the permission check runs before any of your parameters are read. |
500 | {"error": "Internal server error."} | Your credential could not be checked. Retry with backoff. |
Response format
Every failure from the API is JSON. Which envelope you get depends on which layer caught the
problem: the API's own checks — your credentials, your permissions, a request body it
cannot read, a server error —
answer with a single error key, and the endpoints answer with status
and message. The Accept header makes no difference to either.
// 401 -- from the API: credentials rejected, or not permitted this request
{ "error": "Unauthorized." }
// 400 -- from an endpoint: a parameter failed validation
{ "status": 400, "message": "Unable to look up probill, incorrect parameters." }They described plain-text authentication failures, and an Accept: application/json
header to turn them into JSON. That applied to a layer behind the API that callers do not reach.
Through the API these failures are JSON, and the header is not needed.
Carriers and company codes
The <COMPANY_CODE> path segment selects which carrier answers
the request. You need an approved account with that carrier to use its code.
| Carrier | COMPANY_CODE |
|---|---|
| Apex Motor Express | apex |
| CCT Canada | cct |
| Comox Pacific Express | comox |
| Overland West Freight Lines | owfl |
| Western Canada Express | wce |
Always send the company code in lowercase, exactly as it appears above. Coverage is not uniform across endpoints: rate quoting uses three different rating engines depending on the carrier.
Conventions
Behaviour that applies to every endpoint. The first two items on this list account for most failed first integrations.
Send parameter names exactly as they appear in this reference — lowercase, hyphenated.
Customer-Code, Probill and Shipper-Code are
silently ignored, which usually surfaces as a confusing
“missing required parameter” error. Send the path in lowercase too.
Sending a request
| Topic | Behaviour |
|---|---|
| Parameter location | GET endpoints read every parameter from the query string. POST endpoints read them from the request body. Do not send a body with a GET: a non-empty body is read in place of the query string, and a nested value in it is refused with 400 {"error": "Invalid value for parameter(s): <names>"}. |
| Content type | POST bodies may be application/json or application/x-www-form-urlencoded. Prefer JSON — form encoding sends every value as text and cannot express nested values, and the Apex/WCE and CCT rate quotes need dimensions as JSON numbers, so a form-encoded quote to either always fails. Multipart is not accepted. |
| Dates | Dates are YYYY-MM-DD in both requests and responses. |
| Accented characters | Accents are folded to their Latin equivalents before matching, so Montréal is treated as MONTREAL. A literal ampersand in a query value must be sent as %26. |
| Case of values | Name and city filters are matched case-insensitively. customer-code is matched exactly. Rate quote inputs are uppercased before rating. |
Result size and pacing
A search returns every matching shipment, and the carrier system runs several follow-up queries per shipment returned. Keep date ranges narrow — a wide range on a busy account will be slow and can time out. There is no published request quota, but treat the API as a batch resource rather than something to poll per page view.
The API waits up to 180 seconds for the carrier system on any endpoint. A request still
unanswered then gets 500 {"error": "Internal server error."}. A search
that runs out of time will do so again, so narrow the range rather than retrying it. Set your
own client timeout a little above 180 seconds, so you receive that answer instead of cutting
the request off first.
Scheduled maintenance
Each carrier's backing system has a nightly maintenance window. During it, every endpoint
for that carrier returns 503 before your parameters are looked at:
{
"status": 503,
"code": "offline",
"message": "Service unavailable during scheduled window"
}Windows differ between Overland/Comox and Apex/WCE/CCT. Each is fixed on the clock of the system it belongs to:
| Carriers | Monday to Friday | Saturday | Clock |
|---|---|---|---|
| Apex, WCE, CCT | 02:57–03:15 and 04:00–05:20 | 20:00–22:30 | Toronto (Eastern) time, all year: EST in winter, EDT in summer. |
| Overland West, Comox | 02:00–03:30 | 17:00–19:30 | Pacific time, which no longer changes for daylight saving: UTC−7 all year. |
A window runs to the end of its last minute — 03:15 means until 03:15:59 — and there is none on Sunday. Only the Toronto clock moves for daylight saving, so Pacific time is two hours behind Eastern in winter and three hours behind in summer.
The times are configuration-driven and subject to change. Build a retry with backoff rather
than hard-coding them, and treat 503 as “try again later”, never as a
data error.
The check runs before your parameters are read, so a 503 tells you nothing about
the request. Do not log it as a validation failure or fall back to a different endpoint —
queue the work and retry once the window closes. It runs after authentication, though,
so a request with bad credentials during a maintenance window returns 401, not
503.
status carries the numeric HTTP status, matching every other response from this
API. The "offline" marker lives in code. If you have an older
integration testing status === "offline", it will no longer match — switch it
to code === "offline", or simply treat any 503 as a maintenance
window.
Look up a shipment
Retrieve a single shipment by one of four reference numbers, with its commodity rows, dimensions and milestone history.
- Carriers
- apex · cct · comox · owfl · wce
- Parameters in
- Query string
- Returns
{status, message, data[]}- Paginated
- No
Parameters
| Name | Type | Use | Details |
|---|---|---|---|
| customer-code | String | Required | Your customer code. Letters and digits only — a code containing a dash, space or period is rejected. Matched against the shipment's shipper code, consignee code or bill-to code. |
| probill | Int | One of | Probill number. Digits only. |
| bill-of-lading | String | One of | Bill of lading number. Printable ASCII characters only. |
| purchase-order | String | One of | Purchase order number. Printable ASCII characters only. |
| shipper-number | String | One of | Shipper reference number. Must not contain {. |
Send customer-code plus one and only one of
probill, bill-of-lading, purchase-order or
shipper-number. Sending none, or sending two, returns
400 Unable to look up probill, incorrect parameters. — the same error either
way. A field sent empty or as spaces counts as not sent.
A probill lookup against Apex or WCE automatically retries against the other of the two if the first finds nothing, so an interlined shipment resolves either way. Purchase order lookups use a different index for Apex and WCE than for the other carriers.
Lookups and searches read a copy of the carrier systems that is kept within a minute of them, so a change made in the last minute — a delivery just scanned, say — may not show yet.
Examples
curl -G 'https://api.rewc.com:8184/api/owfl/probill/lookup' \
-H 'x-client-id: YOUR_CLIENT_ID' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'x-customer-code: ABC1234' \
--data-urlencode 'customer-code=ABC1234' \
--data-urlencode 'probill=123456789'const url = new URL('https://api.rewc.com:8184/api/owfl/probill/lookup');
url.search = new URLSearchParams({
'customer-code': 'ABC1234',
'probill': '123456789' // exactly one lookup field
});
const res = await fetch(url, {
headers: {
'x-client-id': process.env.REWC_CLIENT_ID,
'x-api-key': process.env.REWC_API_KEY,
'x-customer-code': 'ABC1234'
}
});
// Read the body as text on error: it is JSON, but its shape depends on which layer answered.
if (!res.ok) throw new Error(`REWC ${res.status}: ${await res.text()}`);
const { data } = await res.json();
const shipment = data[0];
console.log(shipment.status, shipment['delivery-date']);
// dimensions is either an array or the string "No dimensions found"
const dims = Array.isArray(shipment.dimensions) ? shipment.dimensions : [];import os
import requests
res = requests.get(
"https://api.rewc.com:8184/api/owfl/probill/lookup",
headers={
"x-client-id": os.environ["REWC_CLIENT_ID"],
"x-api-key": os.environ["REWC_API_KEY"],
"x-customer-code": "ABC1234",
},
params={
"customer-code": "ABC1234",
"probill": "123456789", # exactly one lookup field
},
timeout=190,
)
res.raise_for_status()
shipment = res.json()["data"][0]
print(shipment["status"], shipment["delivery-date"])
# dimensions is either a list or the string "No dimensions found"
dims = shipment["dimensions"]
dims = dims if isinstance(dims, list) else []Envelope
| Field | Type | Details |
|---|---|---|
| status | Integer | Mirrors the HTTP status code. 200 on success. |
| message | String | Human-readable message describing the outcome. |
| data | Array[Object] | Array of result objects. Always an array, including when a single shipment matched. |
data is always an array. A probill lookup returns one element; bill of lading,
purchase order and shipper number lookups can return several.
Shipment object
| Field | Type | Details |
|---|---|---|
| probill | String | Carrier probill number. |
| bill-of-lading | String | Bill of lading value. |
| purchase-order | String | Purchase order value. |
| shipping-weight | String | Shipping weight, in pounds. |
| pickup-date | String | Pickup date, YYYY-MM-DD. Empty string when not recorded. |
| delivery-date | String | Delivery date, YYYY-MM-DD. Empty string when not recorded. |
| delivery-time | String | Delivery time, HH:MM, in the local time of the delivering terminal. Empty string when not recorded. |
| delivery-appointment-date | String | Delivery appointment date, if an appointment was requested. Empty string otherwise. |
| delivery-appointment-time | String | Delivery appointment time, if an appointment was requested, in the local time of the delivering terminal. Empty string otherwise. |
| shipper-name | String | Shipper name. |
| shipper-address-1 | String | Shipper address, line 1. |
| shipper-address-2 | String | Shipper address, line 2. Empty string when the shipper has only one address line. |
| shipper-city | String | Shipper city. |
| shipper-province | String | Shipper province. |
| shipper-postal-code | String | Shipper postal code. As recorded on the shipment. Can be the first three characters only, with no space. |
| consignee-name | String | Consignee name. |
| consignee-address-1 | String | Consignee address, line 1. |
| consignee-address-2 | String | Consignee address, line 2. Empty string when the consignee has only one address line. |
| consignee-city | String | Consignee city. |
| consignee-province | String | Consignee province. |
| consignee-postal-code | String | Consignee postal code. As recorded on the shipment. Can be the first three characters only, with no space. |
| billing-terms | String | Billing terms of the shipment, usually PPD (prepaid — the shipper pays), COL (collect — the consignee pays) or 3P (third party — a third party pays). Treat this as an open set: other values can appear, so pass through any you do not recognise. |
| status | String | Return the shipment status. |
| details | Array[Object] | Commodity rows for the shipment — 0 to many. See details object. Rows with a piece count of zero or less are omitted. |
| dimensions | Array[Object] or String | Either an array of dimension objects, or the literal string "No dimensions found" when none are on file. Check the type before iterating. |
| history | Array[Object] | Milestone history for the shipment, oldest first — 0 to many, including delivery, exception, delay and hold events. See history object. |
dimensions is an array when dimensions are on file and the literal string
"No dimensions found" when they are not — check the type before iterating.
history is always an array, empty when the shipment has no milestones.
Any field the carrier system has no value for — a date, a time, a second address line
— comes back as "", never null.
details object
| Field | Type | Details |
|---|---|---|
| pieces | String | Piece count for this commodity row. |
| description | String | Description for this commodity row. |
| weight | String | Weight for this commodity row, in pounds. |
dimensions object
| Field | Type | Details |
|---|---|---|
| units | String | Number of units these dimensions apply to. |
| length | String | Length, in inches. |
| width | String | Width, in inches. |
| height | String | Height, in inches. |
history object
| Field | Type | Details |
|---|---|---|
| date | String | The date the milestone was recorded, YYYY-MM-DD. No time is given. |
| status | String | The milestone or event recorded: one of the shipment status events, delivery reason codes or service exceptions. Treat this as an open set — carrier-specific milestones may be added, so match on the values you know and pass anything else through. |
Besides tracking milestones, history records delivery reason codes and
service exceptions, each on the date it happened. Read status on the shipment for where
it stands now.
Shipment status events
- The current status event is returned in the
statusfield of the shipment object. - Completed status events are returned in the
historyarray of the shipment object.
| Value | Meaning |
|---|---|
PICKED UP | The freight has been picked up. |
ORIGIN TERMINAL | The freight is at its origin terminal. |
AT ORIGIN TERMINAL: <CITY> | In history only. The freight reached its origin terminal in the named city. |
IN TRANSIT | The freight is moving between terminals. |
ARRIVED AT TERMINAL: <CITY> | The freight reached an intermediate terminal in the named city. |
DESTINATION TERMINAL | The freight is at its destination terminal. |
AT DESTINATION TERMINAL: <CITY> | In history only. The freight reached its destination terminal in the named city. |
APPOINTMENT BOOKED FOR <date> <time> | A delivery appointment was booked. |
OUT FOR DELIVERY | The freight is on a delivery run. |
TRANSFERRED TO INTERLINE | The freight was handed to a partner carrier for delivery. |
DELIVERED | Delivery has been recorded. In history: a delivery reason code, such as DELIVERED CLEAR. |
CANCELLED | The shipment was cancelled. |
PLEASE CALL CUSTOMER SERVICE FOR DETAILS | API is unable to return a status. |
Delivery reason codes
- The values below are returned in the
historyarray of the shipment object.
| Value | Meaning |
|---|---|
DELIVERED CLEAR | Delivered with no issues. |
DELIVERED DAMAGED | Delivered with damage. |
DELIVERED SHORT | Delivered with fewer pieces than on the bill of lading. |
DELIVERED OVER | Delivered with more pieces than on the bill of lading. |
PARTIALLY REFUSED | Receiver refused part of the shipment. |
REFUSED | Receiver refused the shipment. |
REFUSED DUE TO DAMAGE | Receiver refused the shipment because it was damaged. |
TRANSFERRED TO INTERLINE | Handed to a partner carrier for delivery. |
ATTEMPTED DELIVERY | Delivery was attempted but not completed. |
UNABLE TO CONTACT RECEIVER | No one was available to receive the shipment. |
CONSIGNEE CLOSED | Receiver was closed or past its cutoff time. |
WEATHER | Weather prevented delivery. |
Service exceptions
- The values listed below are returned in the
historyarray under the shipment object.
| Value | Meaning |
|---|---|
ACCIDENT | An accident affected the shipment. |
MECHANICAL BREAKDOWN | An equipment breakdown affected the shipment. |
ROAD CLOSURE | A closed road affected the shipment. |
WEATHER DELAY | Weather delayed the shipment. |
SEASPAN DELAY | Delay occurred in the ferry service. |
PENDING LINEHAUL DEPART | The freight is waiting to leave for the next terminal. |
LINEHAUL DELAY | Travel between terminals has been delayed. |
MISSED CUT TIME | The freight missed the cutoff for its planned movement. |
ON HAND FREIGHT | The freight is on hand at the terminal. |
DELIVERY DELAY | Delivery will happen later than planned. |
SHIPPER TENDERED LATE | The shipper made the freight available late. |
HOLD FOR PICK UP | The freight is held at the terminal for the receiver to pick up. |
HOLD BY REQUEST | As requested by the shipper or receiver. |
RETURNED TO SHIPPER | The freight was sent back to the shipper. |
Example
{
"status": 200,
"message": "The records were retrieved successfully.",
"data": [
{
"probill": "123456789",
"bill-of-lading": "my-bol-1234",
"purchase-order": "my-po-1234",
"shipping-weight": "253",
"pickup-date": "2026-08-04",
"delivery-date": "2026-08-06",
"delivery-time": "12:20",
"delivery-appointment-date": "",
"delivery-appointment-time": "",
"shipper-name": "SHIPPER NAME",
"shipper-address-1": "12345 MAIN ST",
"shipper-address-2": "",
"shipper-city": "EDMONTON",
"shipper-province": "AB",
"shipper-postal-code": "L1L1L1",
"consignee-name": "CONSIGNEE NAME",
"consignee-address-1": "123 FIRST ST",
"consignee-address-2": "",
"consignee-city": "LANGLEY",
"consignee-province": "BC",
"consignee-postal-code": "V4V4V4",
"billing-terms": "PPD",
"status": "DELIVERED",
"details": [
{ "pieces": "1", "description": "PC", "weight": "253" }
],
"dimensions": "No dimensions found",
"history": [
{ "date": "2026-08-04", "status": "AT ORIGIN TERMINAL: EDMONTON" },
{ "date": "2026-08-04", "status": "IN TRANSIT" },
{ "date": "2026-08-05", "status": "ARRIVED AT TERMINAL: CALGARY" },
{ "date": "2026-08-05", "status": "LINEHAUL DELAY" },
{ "date": "2026-08-06", "status": "AT DESTINATION TERMINAL: LANGLEY" },
{ "date": "2026-08-06", "status": "OUT FOR DELIVERY" },
{ "date": "2026-08-06", "status": "DELIVERED CLEAR" }
]
}
]
}Errors
| Status | Message | Cause |
|---|---|---|
400 | Unable to look up probill, incorrect parameters. | Zero or more than one lookup field supplied. |
400 | Unable to look up probill, invalid probill. | probill is not all digits. |
400 | Unable to look up probill, invalid bill of lading. | bill-of-lading contains a character outside printable ASCII. Unable to look up probill, invalid purchase order. is the same for purchase-order. |
400 | Unable to look up probill, invalid shipper number. | shipper-number contains {. |
400 | Unable to search probill, customer code is invalid. Supplied (customer-code=…) | customer-code missing, empty, or containing a character other than a letter or digit. |
400 | Status not available for this customer number. | Nothing matched. This is the not-found case — the API does not return 404 for a missing shipment. |
400 | Your x-customer-code does not match the customer-code submitted… | The customer-code you sent is not the account your x-customer-code header names. See how the customer code works. |
500 | {"error": "Internal server error."} | The carrier system did not answer, or not within 180 seconds — retry with backoff. An unusable x-customer-code is also a 500, and that one is not retryable — the header has to change, or the fault is on our side to fix. |
Search shipments
List every shipment picked up in a date range, optionally narrowed by shipper or consignee name and city. Each result carries the same shape as a single lookup.
- Carriers
- apex · cct · comox · owfl · wce
- Parameters in
- Query string
- Returns
{status, message, data[]}- Paginated
- No
Parameters
| Name | Type | Use | Details |
|---|---|---|---|
| customer-code | String | Required | Your customer code. Letters and digits only. Matched against the shipment's shipper code, consignee code or bill-to code. |
| start-date | String | Required | Start of the pickup date range, YYYY-MM-DD. Shipments picked up in the last two years can be searched. |
| end-date | String | Required | End of the pickup date range, YYYY-MM-DD. Must be on or after start-date; an inverted range simply matches nothing. |
| shipper-name | String | Optional | Shipper name. Prefix match — ACME matches ACME DISTRIBUTION but not THE ACME CO. Case-insensitive. Must not contain !, ^, { or }. |
| consignee-name | String | Optional | Consignee name. Prefix match, case-insensitive. Same character restrictions as shipper-name. |
| shipper-city | String | Optional | Shipper city. Prefix match, case-insensitive. Letters, spaces, periods, apostrophes and hyphens only — no digits. |
| consignee-city | String | Optional | Consignee city. Prefix match, case-insensitive. Same character restrictions as shipper-city. |
shipper-name, consignee-name, shipper-city and
consignee-city match from the start of the value only. Searching
consignee-city=YORK will not find NEW YORK. If you
need a contains-style search, filter the returned set on your side.
There is no maximum range, no result cap and no pagination, and every shipment returned carries its details, dimensions and full history. A month-wide range on a busy account can take a long time and may run past the API's 180-second limit. Page through time, a few days at a time, rather than asking for everything at once.
Examples
curl -G 'https://api.rewc.com:8184/api/owfl/probill/search' \
-H 'x-client-id: YOUR_CLIENT_ID' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'x-customer-code: ABC1234' \
--data-urlencode 'customer-code=ABC1234' \
--data-urlencode 'start-date=2026-08-01' \
--data-urlencode 'end-date=2026-08-07' \
--data-urlencode 'consignee-city=LANGLEY'const url = new URL('https://api.rewc.com:8184/api/owfl/probill/search');
url.search = new URLSearchParams({
'customer-code': 'ABC1234',
'start-date': '2026-08-01', // keep the window narrow
'end-date': '2026-08-07',
'consignee-city': 'LANGLEY' // prefix match, not substring
});
const res = await fetch(url, {
headers: {
'x-client-id': process.env.REWC_CLIENT_ID,
'x-api-key': process.env.REWC_API_KEY,
'x-customer-code': 'ABC1234'
}
});
if (!res.ok) throw new Error(`REWC ${res.status}: ${await res.text()}`);
const { data } = await res.json();
console.log(`${data.length} shipments`);import os
import requests
res = requests.get(
"https://api.rewc.com:8184/api/owfl/probill/search",
headers={
"x-client-id": os.environ["REWC_CLIENT_ID"],
"x-api-key": os.environ["REWC_API_KEY"],
"x-customer-code": "ABC1234",
},
params={
"customer-code": "ABC1234",
"start-date": "2026-08-01", # keep the window narrow
"end-date": "2026-08-07",
"consignee-city": "LANGLEY", # prefix match, not substring
},
timeout=190,
)
res.raise_for_status()
shipments = res.json()["data"]
print(len(shipments), "shipments")Shape
Identical to shipment lookup — the same
{status, message, data[]} envelope, and the same
shipment object in every element, including the
details, dimensions and
history arrays.
On a search, the details key is always present, even when the shipment has no
commodity rows — in which case it is an empty array. On a lookup, the key is omitted in
that case.
Errors
| Status | Message | Cause |
|---|---|---|
400 | Start date is required and must be in valid format (YYYY-MM-DD) | start-date missing or malformed. An equivalent message exists for end-date. Only the format is checked, so an impossible date such as 2026-02-30 is not rejected. |
400 | Your customer number is required. Supplied (customer-code=) | customer-code sent empty or as spaces. |
400 | Unable to search probill, customer code is invalid. Supplied (customer-code=…) | customer-code contains something other than a letter or digit. |
400 | Unable to search probill, shipper city is invalid | A city filter contains a digit or other disallowed character. Equivalent messages exist for consignee city and both name filters. |
400 | Status not available for this customer number. | Nothing matched the range and filters, including when end-date precedes start-date. |
400 | Your x-customer-code does not match the customer-code submitted… | The customer-code you sent is not the account your x-customer-code header names. See how the customer code works. |
500 | {"error": "Internal server error."} | The carrier system did not answer, or not within 180 seconds. Retry with backoff — but a search that ran out of time will again, so narrow the range first. An unusable x-customer-code is also a 500, and that one is not retryable — the header has to change, or the fault is on our side to fix. |
Omitting customer-code entirely on a search returns HTTP 200 with
the body {} rather than a 400. Treat an unexpected {} as a
malformed request on your side, not as “no shipments found”.
Retrieve shipment documents
Download the paperwork on file for a probill — bills of lading, proofs of delivery, or everything — merged into a single PDF.
- Carriers
- apex · cct · comox · owfl · wce
- Parameters in
- Query string
- Returns
application/pdf- Errors
- JSON
A successful response is a raw PDF with no JSON wrapper. Every failure is a JSON
body. Code that assumes a PDF, or that calls .json() unconditionally,
will break on the first missing document. Read
Content-Type and branch.
Parameters
| Name | Type | Use | Details |
|---|---|---|---|
| customer-code | String | Required | Your customer code. Letters and digits only. Must match the account in your x-customer-code header. |
| probill | Int | Required | The probill to retrieve documents for. Digits only, maximum 11 digits. |
| doc-type | String | Optional | Which documents to include: ALL, BOL or POD, in capitals. Defaults to ALL. See document types. |
Document types
Three values are accepted. Each covers every variant we record for that kind of document, so you do not need to know the internal type codes.
| Value | Covers |
|---|---|
| ALL | Every document on file for the probill. This is the default when doc-type is omitted. |
| BOL | Bills of lading, in every form we record them. |
| POD | Proofs of delivery, in every form we record them. |
Send ALL, BOL or POD exactly, in capitals, or omit the
parameter. Anything else, such as a typo like PODS or a lower-case pod,
returns 400 Document type is invalid. before any lookup is made.
Examples
curl -G 'https://api.rewc.com:8184/api/owfl/images' \
-H 'x-client-id: YOUR_CLIENT_ID' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'x-customer-code: ABC1234' \
--data-urlencode 'customer-code=ABC1234' \
--data-urlencode 'probill=123456789' \
--data-urlencode 'doc-type=POD' \
--output 123456789-POD.pdfconst url = new URL('https://api.rewc.com:8184/api/owfl/images');
url.search = new URLSearchParams({
'customer-code': 'ABC1234',
'probill': '123456789',
'doc-type': 'POD'
});
const res = await fetch(url, {
headers: {
'x-client-id': process.env.REWC_CLIENT_ID,
'x-api-key': process.env.REWC_API_KEY,
'x-customer-code': 'ABC1234'
}
});
// Success is a PDF; every failure is JSON. Branch on the type.
const type = res.headers.get('content-type') || '';
if (type.includes('application/pdf')) {
const pdf = Buffer.from(await res.arrayBuffer());
await fs.promises.writeFile('123456789-POD.pdf', pdf);
} else if (type.includes('application/json')) {
const { status, message } = await res.json();
throw new Error(`REWC ${status}: ${message}`);
} else {
throw new Error(`REWC ${res.status}: ${await res.text()}`);
}import os
import requests
res = requests.get(
"https://api.rewc.com:8184/api/owfl/images",
headers={
"x-client-id": os.environ["REWC_CLIENT_ID"],
"x-api-key": os.environ["REWC_API_KEY"],
"x-customer-code": "ABC1234",
},
params={
"customer-code": "ABC1234",
"probill": "123456789",
"doc-type": "POD",
},
timeout=190,
)
# Success is a PDF; every failure is JSON. Branch on the type.
content_type = res.headers.get("content-type", "")
if "application/pdf" in content_type:
with open("123456789-POD.pdf", "wb") as fh:
fh.write(res.content)
elif "application/json" in content_type:
body = res.json()
raise RuntimeError(f"REWC {body['status']}: {body['message']}")
else:
raise RuntimeError(f"REWC {res.status_code}: {res.text}")The PDF
| Header | Value |
|---|---|
Content-Type | application/pdf |
The response carries no file name; name the file yourself, for example
<probill>-<doc-type>.pdf.
All matching documents are merged into one PDF. Scanned images come first, each on its own
page, followed by the pages of documents stored as PDFs, copied through in their original
page order. Documents flagged as deleted are never included, and a stored file in a format we
do not handle is skipped — so a returned PDF can have fewer pages than we have
documents on file. A stored image or PDF that is damaged, or every document being unreadable,
means there is no PDF to return: the response is the same No images were found as a
probill with nothing on file.
Errors
| Status | Message | Cause |
|---|---|---|
400 | Probill number is missing or invalid. | probill missing, non-numeric, or longer than 11 digits. |
400 | Document type is invalid. | doc-type is not one of the document types, exactly as written. |
400 | No images were found for probill number <n>. | Nothing readable is available for that probill. Covers three cases: the probill has no documents of the requested type; the probill is not yours, because customer-code is applied as a filter inside the lookup; or documents exist but none of them could be rendered. All three read the same way — there is nothing to retrieve. |
400 | Your customer number is required. Supplied (customer-code=…) | customer-code missing, empty, or containing a character other than a letter or digit. |
400 | Your x-customer-code does not match the customer-code submitted… | The customer-code you sent is not the account your credential is entitled to. Reported as a user error, the same way probill/lookup and probill/search report it. |
500 | {"error": "Internal server error."} | The carrier system did not answer, or not within 180 seconds — retry with backoff. An unusable x-customer-code is also a 500, and that one is not retryable — the header has to change, or the fault is on our side to fix. |
Pricing API — Overland/Comox
Rate an LTL shipment of up to five commodity rows and get back a quote number, a full charge breakdown and the terminals that will handle it.
- Carriers
- owfl · comox
- Parameters in
- Request body
- Returns
- JSON array of one
- Soft errors
- At HTTP 200
Overland West and Comox share the rating engine documented here. Apex and WCE use the Apex/WCE rating engine and CCT Canada uses the CCT rating engine — different required fields, different accessorial names, ten dimension rows instead of five commodity rows, and a bare object instead of an array of one. Sending this payload to those carrier codes will not work. The side-by-side comparison shows every difference.
When a lane cannot be rated automatically — an oversized piece, a lane outside the
tariff, a commodity needing review — the API returns HTTP 200 with a body
containing an error key instead of a quote. Check for that key before reading any
charge field. See unquotable shipments.
Contact
Who to call about this quote. All three are required.
| Name | Type | Use | Details |
|---|---|---|---|
| contact-name | String | Required | Name of the person to contact about this quote. Maximum 100 characters. |
| contact-phone | String | Required | Phone number of the person to contact about this quote. Ten digits, which may be separated by spaces, dots or dashes, with the area code optionally in brackets and an optional country code and space in front — for example 604-580-4600, (604) 580-4600 or +1 604.580.4600. No extension. |
| contact-email | String | Required | Email address of the person to contact about this quote. A single address, name@domain. Maximum 254 characters. |
Origin, destination and terms
| Name | Type | Use | Details |
|---|---|---|---|
| shipper-code | String | Conditional | Shipper customer code. Up to 7 letters and digits. Required when payment is PPD and no bill-to-code is supplied. |
| shipper-name | String | Optional | Shipper company name. Maximum 30 characters. |
| shipper-city | String | Required | Shipper city. Maximum 20 characters. |
| shipper-prov | String | Required | Shipper province. See accepted provinces. |
| shipper-postal | String | Required | Shipper postal code, A1A1A1. A single space is tolerated and stripped. |
| consignee-code | String | Conditional | Consignee customer code. Up to 7 letters and digits. Required when payment is COL and no bill-to-code is supplied. |
| consignee-name | String | Optional | Consignee company name. Maximum 30 characters. |
| consignee-city | String | Required | Consignee city. Maximum 20 characters. |
| consignee-prov | String | Required | Consignee province. See accepted provinces. |
| consignee-postal | String | Required | Consignee postal code, A1A1A1. A single space is tolerated and stripped. |
| bill-to-code | String | Conditional | Third-party customer code. Up to 7 letters and digits. Required when payment is 3P, and accepted in place of shipper-code / consignee-code for the other terms. |
| payment | String | Required | Payment terms. One of PPD (prepaid), COL (collect) or 3P (third party). Determines which party code is required. |
payment=PPD needs shipper-code or bill-to-code.
payment=COL needs consignee-code or bill-to-code.
payment=3P needs bill-to-code. Company names are optional throughout
— the codes are what the rating engine uses.
Accepted provinces
Quebec is accepted as either QC or PQ. Anything outside this list,
and a shipper or consignee city that is missing or longer than 20 characters, is answered
the way a lane not in your tariff is — see unquotable shipments.
Commodity rows
A quote carries one to five commodity rows. Row 1 is required in full. Rows 2 through 5 are all-or-nothing: submit every field of a row or none of them.
| Name | Type | Use | Details |
|---|---|---|---|
| quantity-1 | Integer | Required | Number of units in this row. Maximum 999. |
| description-1 | String | Required | Description of the goods in this row. Maximum 35 characters. |
| weight-1 | String | Required | Weight of one piece in this row, a whole number. Maximum 9,999,999. |
| weight-type-1 | String | Required | Unit for weight-1: LBS or KGS. |
| length-1 | Integer | Required | Length of one unit, in inches. |
| width-1 | Integer | Required | Width of one unit, in inches. |
| height-1 | Integer | Required | Height of one unit, in inches. |
| dgoods-1 | Boolean | Optional | Set to 1 when this row is dangerous goods. Omit it or pass 0 otherwise. |
| class-1 | Decimal | Conditional | Dangerous goods class for this row. Required when dgoods-1 is set; a class of 0 counts as none. Format ####.#. |
| package-1 | String | Conditional | Dangerous goods packing group for this row. Required when dgoods-1 is set. Maximum 3 characters. |
Commodity rows 2 to 5 — identical fields, suffix 2 to 5
| Name | Type | Use | Details |
|---|---|---|---|
| quantity-2 | Integer | Conditional | Number of units in this row. Maximum 999. Required when you submit this commodity row. |
| description-2 | String | Conditional | Description of the goods in this row. Maximum 35 characters. Required when you submit this commodity row. |
| weight-2 | String | Conditional | Weight of one piece in this row, a whole number. Maximum 9,999,999. Required when you submit this commodity row. |
| weight-type-2 | String | Conditional | Unit for weight-2: LBS or KGS. Required when you submit this commodity row. |
| length-2 | Integer | Conditional | Length of one unit, in inches. Required when you submit this commodity row. |
| width-2 | Integer | Conditional | Width of one unit, in inches. Required when you submit this commodity row. |
| height-2 | Integer | Conditional | Height of one unit, in inches. Required when you submit this commodity row. |
| dgoods-2 | Boolean | Optional | Set to 1 when this row is dangerous goods. Omit it or pass 0 otherwise. |
| class-2 | Decimal | Conditional | Dangerous goods class for this row. Required when dgoods-2 is set; a class of 0 counts as none. Format ####.#. |
| package-2 | String | Conditional | Dangerous goods packing group for this row. Required when dgoods-2 is set. Maximum 3 characters. |
| Name | Type | Use | Details |
|---|---|---|---|
| quantity-3 | Integer | Conditional | Number of units in this row. Maximum 999. Required when you submit this commodity row. |
| description-3 | String | Conditional | Description of the goods in this row. Maximum 35 characters. Required when you submit this commodity row. |
| weight-3 | String | Conditional | Weight of one piece in this row, a whole number. Maximum 9,999,999. Required when you submit this commodity row. |
| weight-type-3 | String | Conditional | Unit for weight-3: LBS or KGS. Required when you submit this commodity row. |
| length-3 | Integer | Conditional | Length of one unit, in inches. Required when you submit this commodity row. |
| width-3 | Integer | Conditional | Width of one unit, in inches. Required when you submit this commodity row. |
| height-3 | Integer | Conditional | Height of one unit, in inches. Required when you submit this commodity row. |
| dgoods-3 | Boolean | Optional | Set to 1 when this row is dangerous goods. Omit it or pass 0 otherwise. |
| class-3 | Decimal | Conditional | Dangerous goods class for this row. Required when dgoods-3 is set; a class of 0 counts as none. Format ####.#. |
| package-3 | String | Conditional | Dangerous goods packing group for this row. Required when dgoods-3 is set. Maximum 3 characters. |
| Name | Type | Use | Details |
|---|---|---|---|
| quantity-4 | Integer | Conditional | Number of units in this row. Maximum 999. Required when you submit this commodity row. |
| description-4 | String | Conditional | Description of the goods in this row. Maximum 35 characters. Required when you submit this commodity row. |
| weight-4 | String | Conditional | Weight of one piece in this row, a whole number. Maximum 9,999,999. Required when you submit this commodity row. |
| weight-type-4 | String | Conditional | Unit for weight-4: LBS or KGS. Required when you submit this commodity row. |
| length-4 | Integer | Conditional | Length of one unit, in inches. Required when you submit this commodity row. |
| width-4 | Integer | Conditional | Width of one unit, in inches. Required when you submit this commodity row. |
| height-4 | Integer | Conditional | Height of one unit, in inches. Required when you submit this commodity row. |
| dgoods-4 | Boolean | Optional | Set to 1 when this row is dangerous goods. Omit it or pass 0 otherwise. |
| class-4 | Decimal | Conditional | Dangerous goods class for this row. Required when dgoods-4 is set; a class of 0 counts as none. Format ####.#. |
| package-4 | String | Conditional | Dangerous goods packing group for this row. Required when dgoods-4 is set. Maximum 3 characters. |
| Name | Type | Use | Details |
|---|---|---|---|
| quantity-5 | Integer | Conditional | Number of units in this row. Maximum 999. Required when you submit this commodity row. |
| description-5 | String | Conditional | Description of the goods in this row. Maximum 35 characters. Required when you submit this commodity row. |
| weight-5 | String | Conditional | Weight of one piece in this row, a whole number. Maximum 9,999,999. Required when you submit this commodity row. |
| weight-type-5 | String | Conditional | Unit for weight-5: LBS or KGS. Required when you submit this commodity row. |
| length-5 | Integer | Conditional | Length of one unit, in inches. Required when you submit this commodity row. |
| width-5 | Integer | Conditional | Width of one unit, in inches. Required when you submit this commodity row. |
| height-5 | Integer | Conditional | Height of one unit, in inches. Required when you submit this commodity row. |
| dgoods-5 | Boolean | Optional | Set to 1 when this row is dangerous goods. Omit it or pass 0 otherwise. |
| class-5 | Decimal | Conditional | Dangerous goods class for this row. Required when dgoods-5 is set; a class of 0 counts as none. Format ####.#. |
| package-5 | String | Conditional | Dangerous goods packing group for this row. Required when dgoods-5 is set. Maximum 3 characters. |
Dimensions are in inches, per unit. A piece over 96 inches in any dimension does not
produce a validation error — it produces an unquotable response
asking you to call for a rate. Length, width and height count alike for every
shipment-truck-req value, SEMITRAILER included. So does a total weight at or above 6,000 lb
(2,721 kg), a rated weight over 6,000 lb, a FLATBED equipment
requirement, and a Yellowknife NT consignee. A height of 72 inches or more is rated as
96 inches. Note that rated weight can exceed the weight
you submitted, because dimensional weight is taken into account — a request that validates
cleanly can still come back unquotable.
Totals and equipment
| Name | Type | Use | Details |
|---|---|---|---|
| total-pieces | Integer | Optional | Total pieces across all commodity rows. Calculated from the quantity-N fields when omitted. Maximum 999. |
| total-weight | Integer | Optional | Total weight across all commodity rows, a whole number. Maximum 9,999,999. When omitted it is worked out from the rows: each quantity-N × weight-N, summed. |
| total-weight-type | String | Optional | Unit for total-weight: LBS or KGS. Defaults to LBS. |
| shipment-truck-req | String | Optional | Equipment required for the shipment. Overland West accepts SEMITRAILER, FLATBED, PTG. Comox accepts NONE, SEMITRAILER, FLATBED. No default. FLATBED always routes to manual review; the 96-inch size limit is the same for every other value — see oversized shipments. |
Accessorials
Optional service requirements. Boolean accessorials take 1 to request the
service; omit them or send the number 0 otherwise. Any other value requests the
service — including the strings "0" and "false" — and is charged for it.
Only ten accessorials on a request are forwarded to the rating engine, taken in this fixed
order rather than the order you send them: appointment-delivery,
appointment-pickup, dangerous-goods, heat,
private-home-pickup, private-home-delivery, tailgate-pickup,
tailgate-delivery, declared-value, tarp-over-28,
flat-deck-pickup, flat-deck-delivery, mall-delivery,
mall-pickup, the two overlength bands,
alternative-floor-pickup-and-delivery, inside-delivery,
inside-pickup, jobsite-delivery, jobsite-pickup,
notify-prior-to-delivery, prebooked-appointment. Anything beyond the
tenth is dropped without an error, and the quote comes back looking valid. If you need
more than ten on one shipment, contact the pricing department.
| Name | Type | Meaning |
|---|---|---|
| appointment-delivery | Boolean | Delivery requires an appointment. |
| appointment-pickup | Boolean | Pickup requires an appointment. |
| prebooked-appointment | Boolean | The appointment is pre-booked. |
| notify-prior-to-delivery | Boolean | Call the consignee before delivering. |
| dangerous-goods | Boolean | The shipment contains dangerous goods. Set this in addition to the per-row dgoods-N flags. |
| heat | Boolean | The shipment requires heated service. |
| tarp-over-28 | Boolean | The load requires a tarp over 28 feet. |
| private-home-pickup | Boolean | Pickup is at a private residence. |
| private-home-delivery | Boolean | Delivery is to a private residence. |
| tailgate-pickup | Boolean | Pickup requires a tailgate. |
| tailgate-delivery | Boolean | Delivery requires a tailgate. |
| inside-pickup | Boolean | Pickup is inside the building. |
| inside-delivery | Boolean | Delivery is inside the building. |
| jobsite-pickup | Boolean | Pickup is at a construction or job site. |
| jobsite-delivery | Boolean | Delivery is at a construction or job site. |
| mall-pickup | Boolean | Pickup is at a shopping mall. |
| mall-delivery | Boolean | Delivery is to a shopping mall. |
| flat-deck-pickup | Boolean | Pickup requires a flat deck. |
| flat-deck-delivery | Boolean | Delivery requires a flat deck. |
| alternative-floor-pickup-and-delivery | Boolean | Pickup or delivery is above or below the ground floor. |
| overlength-from-120-to-239 | Boolean | The load includes a piece 120 to 239 inches long. |
| overlength-from-240-and-over | Boolean | The load includes a piece 240 inches or longer. |
| declared-value | Decimal | Declared value of the shipment, as a dollar amount: up to 9 digits and up to 2 decimal places, so 1500 and 1500.50 are both accepted. Thousands separators are accepted. |
Renamed and retired fields
| Old name | Use instead | Notes |
|---|---|---|
tarp | tarp-over-28 | Still accepted; use the replacement for new integrations. |
call-ahead | notify-prior-to-delivery | Still accepted; use the replacement for new integrations. |
overlength-from-120-to-228 | overlength-from-120-to-239 | The banding changed. Still accepted; use the replacement. |
overlength-from-229-and-over | overlength-from-240-and-over | The banding changed. Still accepted; use the replacement. |
cod-amount | — | No longer has any effect. The value is accepted but ignored. Arrange COD outside the rate quote. |
Examples
curl -X POST 'https://api.rewc.com:8184/api/owfl/ratequote/customer' \
-H 'x-client-id: YOUR_CLIENT_ID' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'x-customer-code: ABC1234' \
-H 'Content-Type: application/json' \
-d @quote.jsonconst res = await fetch(
'https://api.rewc.com:8184/api/owfl/ratequote/customer',
{
method: 'POST',
headers: {
'x-client-id': process.env.REWC_CLIENT_ID,
'x-api-key': process.env.REWC_API_KEY,
'x-customer-code': 'ABC1234',
'Content-Type': 'application/json'
},
body: JSON.stringify({
'contact-name': 'JANE OPERATOR',
'contact-phone': '6045804600',
'contact-email': 'jane@example.com',
'shipper-code': 'ABC1234',
'shipper-city': 'SURREY',
'shipper-prov': 'BC',
'shipper-postal': 'V3R0C2',
'consignee-city': 'KELOWNA',
'consignee-prov': 'BC',
'consignee-postal': 'V1V0C1',
'payment': 'PPD',
'quantity-1': 1,
'description-1': 'PALLETIZED HARDWARE',
'weight-1': '100',
'weight-type-1': 'LBS',
'length-1': 12,
'width-1': 12,
'height-1': 12
})
}
);
if (!res.ok) throw new Error(`REWC ${res.status}: ${await res.text()}`);
// A 200 does not mean you got a rate. A rated quote is an array of one;
// an unquotable lane is a bare object with an `error` key, so check the
// shape before you index into it.
const body = await res.json();
if (!Array.isArray(body)) {
// body.retryable says whether sending this again could help.
throw new Error(`REWC ${body.code}: ${body.message}`);
}
const [quote] = body;
console.log(quote['quote-number'], quote['net-total-charges']);import os
import requests
res = requests.post(
"https://api.rewc.com:8184/api/owfl/ratequote/customer",
headers={
"x-client-id": os.environ["REWC_CLIENT_ID"],
"x-api-key": os.environ["REWC_API_KEY"],
"x-customer-code": "ABC1234",
},
json={
"contact-name": "JANE OPERATOR",
"contact-phone": "6045804600",
"contact-email": "jane@example.com",
"shipper-code": "ABC1234",
"shipper-city": "SURREY",
"shipper-prov": "BC",
"shipper-postal": "V3R0C2",
"consignee-city": "KELOWNA",
"consignee-prov": "BC",
"consignee-postal": "V1V0C1",
"payment": "PPD",
"quantity-1": 1,
"description-1": "PALLETIZED HARDWARE",
"weight-1": "100",
"weight-type-1": "LBS",
"length-1": 12,
"width-1": 12,
"height-1": 12,
},
timeout=190,
)
res.raise_for_status()
# A 200 does not mean you got a rate. A rated quote is a list of one;
# an unquotable lane is a bare object with an "error" key, so check
# the shape before you index into it.
body = res.json()
if not isinstance(body, list):
# body["retryable"] says whether sending this again could help.
raise RuntimeError(f"REWC {body['code']}: {body['message']}")
quote = body[0]
print(quote["quote-number"], quote["net-total-charges"]){
"contact-name": "JANE OPERATOR",
"contact-phone": "6045804600",
"contact-email": "jane@example.com",
"shipper-code": "ABC1234",
"shipper-name": "ACME DISTRIBUTION",
"shipper-city": "SURREY",
"shipper-prov": "BC",
"shipper-postal": "V3R0C2",
"consignee-name": "KELOWNA HARDWARE",
"consignee-city": "KELOWNA",
"consignee-prov": "BC",
"consignee-postal": "V1V0C1",
"payment": "PPD",
"quantity-1": 1,
"description-1": "PALLETIZED HARDWARE",
"weight-1": "100",
"weight-type-1": "LBS",
"length-1": 12,
"width-1": 12,
"height-1": 12,
"tailgate-delivery": 1
}Shape
The response is a JSON array containing exactly one object — not an envelope, and not a
bare object. Fields belonging to commodity rows you did not submit, and accessorial slots you
did not use, are removed from the response entirely rather than returned as
null, so read with optional access rather than assuming every documented key is
present.
Quote and tariff
| Field | Type | Details |
|---|---|---|
| quote-number | Integer | Quote number to reference when booking the shipment. |
| quote-effective-date | String | Date the quote was rated, YYYY-MM-DD. How long it stays valid depends on the carrier. |
| tariff | String | Tariff code used to rate the quote. |
| tariff-effective-date | String | Effective date of that tariff, YYYY-MM-DD. |
Parties and rating stations
| Field | Type | Details |
|---|---|---|
| shipper-account | String | Shipper customer code. |
| shipper-name | String | Shipper company name. |
| shipper-city | String | Shipper city, echoed from your request. |
| shipper-prov | String | Shipper province, echoed from your request, except that PQ comes back as QC. |
| shipper-postal | String | Shipper postal code. |
| consignee-account | String | Consignee customer code. |
| consignee-name | String | Consignee company name. |
| consignee-city | String | Consignee city, echoed from your request. |
| consignee-prov | String | Consignee province, echoed from your request, except that PQ comes back as QC. |
| consignee-postal | String | Consignee postal code. |
| bill-to-account | String | Bill-to customer code. |
| basing-shipper-city | String | The rating station used for the origin. This can differ from shipper-city — the tariff is based on the nearest rated point. |
| basing-shipper-prov | String | Province of the origin rating station. |
| basing-consignee-city | String | The rating station used for the destination. This can differ from consignee-city. |
| basing-consignee-prov | String | Province of the destination rating station. |
The basing- fields name the rated point the tariff was actually applied from,
which is often the nearest larger centre rather than the city you sent. Show the customer their
own city and keep the basing city for reconciling charges with us.
Weights and volumes
| Field | Type | Details |
|---|---|---|
| total-pieces | Integer | Total pieces on the quote. |
| total-weight | Integer | Total weight on the quote. |
| total-weight-type | String | Unit for total-weight: P for pounds, K for kilograms. |
| total-volume | Decimal | Total volume of all commodity rows, in cubic feet. |
| payment-type | String | Payment type: P prepaid, C collect. |
| rated-weight | Integer | Weight the tariff was applied to. |
| dimensional-weight | Integer | Dimensional weight calculated from the submitted dimensions. |
| deficit-weight | Integer | Deficit weight applied to reach a rate break, if any. |
| deficit-rate | Decimal | Rate applied to the deficit weight. |
| deficit-amount | Decimal | Charge arising from the deficit weight. |
| hazardous-materials | String | Y or N. |
| declared-value | Decimal | Declared value carried on the quote. |
Rated commodity rows
| Field | Type | Details |
|---|---|---|
| desc-1 | String | Description for commodity row 1. |
| weight-1 | Integer | Weight for commodity row 1, in pounds. |
| rate-1 | Decimal | Rate applied to commodity row 1. |
| amount-1 | Decimal | Charge for commodity row 1. |
| length-1 | Decimal | Length submitted for commodity row 1. |
| width-1 | Decimal | Width submitted for commodity row 1. |
| height-1 | Decimal | Height submitted for commodity row 1. |
| class-1 | Decimal | Dangerous goods class for commodity row 1. Present for every commodity row you sent; 0 or blank unless the row was flagged as dangerous goods. |
| package-1 | Decimal | Dangerous goods packing group for commodity row 1. Present for every commodity row you sent; 0 or blank unless the row was flagged as dangerous goods. |
Rated commodity rows 2 to 5 — identical fields, suffix 2 to 5
| Field | Type | Details |
|---|---|---|
| desc-2 | String | Description for commodity row 2. Absent when commodity row 2 was not submitted. |
| weight-2 | Integer | Weight for commodity row 2, in pounds. Absent when commodity row 2 was not submitted. |
| rate-2 | Decimal | Rate applied to commodity row 2. Absent when commodity row 2 was not submitted. |
| amount-2 | Decimal | Charge for commodity row 2. Absent when commodity row 2 was not submitted. |
| length-2 | Decimal | Length submitted for commodity row 2. Absent when commodity row 2 was not submitted. |
| width-2 | Decimal | Width submitted for commodity row 2. Absent when commodity row 2 was not submitted. |
| height-2 | Decimal | Height submitted for commodity row 2. Absent when commodity row 2 was not submitted. |
| class-2 | Decimal | Dangerous goods class for commodity row 2. Present for every commodity row you sent; 0 or blank unless the row was flagged as dangerous goods. |
| package-2 | Decimal | Dangerous goods packing group for commodity row 2. Present for every commodity row you sent; 0 or blank unless the row was flagged as dangerous goods. |
| Field | Type | Details |
|---|---|---|
| desc-3 | String | Description for commodity row 3. Absent when commodity row 3 was not submitted. |
| weight-3 | Integer | Weight for commodity row 3, in pounds. Absent when commodity row 3 was not submitted. |
| rate-3 | Decimal | Rate applied to commodity row 3. Absent when commodity row 3 was not submitted. |
| amount-3 | Decimal | Charge for commodity row 3. Absent when commodity row 3 was not submitted. |
| length-3 | Decimal | Length submitted for commodity row 3. Absent when commodity row 3 was not submitted. |
| width-3 | Decimal | Width submitted for commodity row 3. Absent when commodity row 3 was not submitted. |
| height-3 | Decimal | Height submitted for commodity row 3. Absent when commodity row 3 was not submitted. |
| class-3 | Decimal | Dangerous goods class for commodity row 3. Present for every commodity row you sent; 0 or blank unless the row was flagged as dangerous goods. |
| package-3 | Decimal | Dangerous goods packing group for commodity row 3. Present for every commodity row you sent; 0 or blank unless the row was flagged as dangerous goods. |
| Field | Type | Details |
|---|---|---|
| desc-4 | String | Description for commodity row 4. Absent when commodity row 4 was not submitted. |
| weight-4 | Integer | Weight for commodity row 4, in pounds. Absent when commodity row 4 was not submitted. |
| rate-4 | Decimal | Rate applied to commodity row 4. Absent when commodity row 4 was not submitted. |
| amount-4 | Decimal | Charge for commodity row 4. Absent when commodity row 4 was not submitted. |
| length-4 | Decimal | Length submitted for commodity row 4. Absent when commodity row 4 was not submitted. |
| width-4 | Decimal | Width submitted for commodity row 4. Absent when commodity row 4 was not submitted. |
| height-4 | Decimal | Height submitted for commodity row 4. Absent when commodity row 4 was not submitted. |
| class-4 | Decimal | Dangerous goods class for commodity row 4. Present for every commodity row you sent; 0 or blank unless the row was flagged as dangerous goods. |
| package-4 | Decimal | Dangerous goods packing group for commodity row 4. Present for every commodity row you sent; 0 or blank unless the row was flagged as dangerous goods. |
| Field | Type | Details |
|---|---|---|
| desc-5 | String | Description for commodity row 5. Absent when commodity row 5 was not submitted. |
| weight-5 | Integer | Weight for commodity row 5, in pounds. Absent when commodity row 5 was not submitted. |
| rate-5 | Decimal | Rate applied to commodity row 5. Absent when commodity row 5 was not submitted. |
| amount-5 | Decimal | Charge for commodity row 5. Absent when commodity row 5 was not submitted. |
| length-5 | Decimal | Length submitted for commodity row 5. Absent when commodity row 5 was not submitted. |
| width-5 | Decimal | Width submitted for commodity row 5. Absent when commodity row 5 was not submitted. |
| height-5 | Decimal | Height submitted for commodity row 5. Absent when commodity row 5 was not submitted. |
| class-5 | Decimal | Dangerous goods class for commodity row 5. Present for every commodity row you sent; 0 or blank unless the row was flagged as dangerous goods. |
| package-5 | Decimal | Dangerous goods packing group for commodity row 5. Present for every commodity row you sent; 0 or blank unless the row was flagged as dangerous goods. |
Rated accessorials
Up to ten numbered code and amount pairs. A slot is absent when fewer accessorials were charged.
Accessorial slots 1 to 10
| Field | Type | Details |
|---|---|---|
| accessorial-code-1 | String | Code for accessorial 1. Absent when fewer than 1 accessorials were charged. |
| accessorial-amount-1 | Decimal | Charge for accessorial 1. Absent when fewer than 1 accessorials were charged. |
| Field | Type | Details |
|---|---|---|
| accessorial-code-2 | String | Code for accessorial 2. Absent when fewer than 2 accessorials were charged. |
| accessorial-amount-2 | Decimal | Charge for accessorial 2. Absent when fewer than 2 accessorials were charged. |
| Field | Type | Details |
|---|---|---|
| accessorial-code-3 | String | Code for accessorial 3. Absent when fewer than 3 accessorials were charged. |
| accessorial-amount-3 | Decimal | Charge for accessorial 3. Absent when fewer than 3 accessorials were charged. |
| Field | Type | Details |
|---|---|---|
| accessorial-code-4 | String | Code for accessorial 4. Absent when fewer than 4 accessorials were charged. |
| accessorial-amount-4 | Decimal | Charge for accessorial 4. Absent when fewer than 4 accessorials were charged. |
| Field | Type | Details |
|---|---|---|
| accessorial-code-5 | String | Code for accessorial 5. Absent when fewer than 5 accessorials were charged. |
| accessorial-amount-5 | Decimal | Charge for accessorial 5. Absent when fewer than 5 accessorials were charged. |
| Field | Type | Details |
|---|---|---|
| accessorial-code-6 | String | Code for accessorial 6. Absent when fewer than 6 accessorials were charged. |
| accessorial-amount-6 | Decimal | Charge for accessorial 6. Absent when fewer than 6 accessorials were charged. |
| Field | Type | Details |
|---|---|---|
| accessorial-code-7 | String | Code for accessorial 7. Absent when fewer than 7 accessorials were charged. |
| accessorial-amount-7 | Decimal | Charge for accessorial 7. Absent when fewer than 7 accessorials were charged. |
| Field | Type | Details |
|---|---|---|
| accessorial-code-8 | String | Code for accessorial 8. Absent when fewer than 8 accessorials were charged. |
| accessorial-amount-8 | Decimal | Charge for accessorial 8. Absent when fewer than 8 accessorials were charged. |
| Field | Type | Details |
|---|---|---|
| accessorial-code-9 | String | Code for accessorial 9. Absent when fewer than 9 accessorials were charged. |
| accessorial-amount-9 | Decimal | Charge for accessorial 9. Absent when fewer than 9 accessorials were charged. |
| Field | Type | Details |
|---|---|---|
| accessorial-code-10 | String | Code for accessorial 10. Absent when fewer than 10 accessorials were charged. |
| accessorial-amount-10 | Decimal | Charge for accessorial 10. Absent when fewer than 10 accessorials were charged. |
Charges
| Field | Type | Details |
|---|---|---|
| net-total-charges | Decimal | Freight charges before accessorials and fuel. |
| total-accessorial-amount | Decimal | Sum of all accessorial charges. |
| fuel-surcharge-amount | Decimal | Fuel surcharge. |
Terminals and contact
| Field | Type | Details |
|---|---|---|
| origin-terminal | String | Terminal that will handle the origin. |
| origin-terminal-phone | String | Phone number for the origin terminal. |
| destination-terminal | String | Terminal that will handle the destination. |
| destination-terminal-phone | String | Phone number for the destination terminal. |
| contact-name | String | Contact name, echoed from your request. |
| contact-phone | String | Contact phone, echoed from your request. |
| contact-email | String | Contact email, echoed from your request. |
Conditional fields
| Field | Type | Details |
|---|---|---|
| carbon-fees | Object | Present only when carbon fees apply. Nested object carrying the fee breakdown and its own quote-number. |
Numeric-looking values are converted to real JSON numbers, with a short list of exceptions
kept as strings: shipper-account, consignee-account,
bill-to-account, quote-effective-date, tariff,
tariff-effective-date, commodity and contact-phone. Parse
defensively rather than relying on the type of any one field, particularly if you also consume
the Apex/WCE rate quote, which keeps a different set as strings.
Example
[
{
"quote-number": 123,
"quote-effective-date": "2022-10-06",
"shipper-account": "ABC1234",
"shipper-name": "ACME DISTRIBUTION",
"shipper-city": "SURREY",
"shipper-prov": "BC",
"shipper-postal": "V3R0C2",
"consignee-name": "KELOWNA HARDWARE",
"consignee-city": "KELOWNA",
"consignee-prov": "BC",
"consignee-postal": "V1V0C1",
"total-pieces": 1,
"total-weight": 100,
"total-weight-type": "P",
"total-volume": 10.0,
"payment-type": "P",
"desc-1": "PALLETIZED HARDWARE",
"weight-1": 100,
"rate-1": 24.15,
"amount-1": 80.00,
"length-1": 12.00,
"width-1": 12.00,
"height-1": 12.00,
"tariff": "TARIFF_CODE",
"tariff-effective-date": "2022-05-02",
"rated-weight": 100,
"dimensional-weight": 10,
"accessorial-code-1": "TGD",
"accessorial-amount-1": 45.00,
"hazardous-materials": "N",
"origin-terminal": "VCR",
"origin-terminal-phone": "604-888-6300",
"destination-terminal": "KEL",
"destination-terminal-phone": "250-765-1441",
"total-accessorial-amount": 45.00,
"fuel-surcharge-amount": 20.00,
"net-total-charges": 80.00,
"contact-name": "JANE OPERATOR",
"contact-phone": "6045804600",
"contact-email": "jane@example.com",
"basing-shipper-city": "VANCOUVER",
"basing-shipper-prov": "BC",
"basing-consignee-city": "KELOWNA",
"basing-consignee-prov": "BC"
}
]Unquotable shipments
Your request was valid but the lane could not be rated automatically. The HTTP status is
200, and the body is a single object — not the array of one
a successful quote returns, so check the shape before you index into it. Branch on
code and retryable rather than matching the message text.
{
"error": "Your quote could not be automatically completed. Please call 604-580-4600 ext 9706 to acquire a rate.",
"message": "Your quote could not be automatically completed. Please call 604-580-4600 ext 9706 to acquire a rate.",
"code": "NEEDS_PRICING_DESK",
"retryable": false
}Overland West and Comox carry the message in both error and
message. error is the older field and is kept for existing
integrations; read message in new code, which is also where Apex, WCE and CCT put
it.
| Message | code | Cause |
|---|---|---|
| Your quote could not be automatically completed. Please call 604-580-4600 ext 9706 to acquire a rate. | NEEDS_PRICING_DESK | An oversized piece, a total or rated weight at or above 6,000 lb (2,721 kg), a FLATBED equipment requirement, or a Yellowknife NT consignee. |
| Pricing for lanes not in your tariff. Please call 604-580-4600 ext 9706 to acquire a rate. | NEEDS_PRICING_DESK | The lane is not in your tariff, or we do not quote it automatically — every quote is checked against your tariff and our lanes before it is rated. It is also the answer for a city or province that is missing, invalid, or one we cannot place. Call the pricing department for a spot quote. |
| Your quote could not be saved. Please try again later. | NOT_SAVED | The quote could not be written to the carrier system. |
| The quote could not be saved in the LTL. | NOT_SAVED | The rating program returned no quote number and gave no reason. |
| We are unable to provide a quote at this time. Please call 604-580-4600 ext 9706 to acquire a rate. | SYSTEM | The quote could not be completed on our side: a carrier system did not answer, the rating program gave no rate, or a quote number came back with no rate behind it. The cause is recorded on our side. Retryable. |
| Your quote could not be completed. Please try again later. | SYSTEM | The lane check that runs before every quote could not be completed, so nothing was rated or stored. Retryable. |
See soft error codes for the full set of code values and
which of them are worth retrying.
Errors
Request-level failures carry status and message at the top level,
alongside a legacy error object:
{
"status": 400,
"message": "Bad Request. No valid payment option. Choose one of :[PPD,COL,3P]. Supplied (XX)",
"error": {
"message": "Bad Request. No valid payment option. Choose one of :[PPD,COL,3P]. Supplied (XX)",
"data": []
}
}The nested error object duplicates message and exists only so
older integrations keep working. It is scheduled for removal. New code should
read the top-level status and message, which match the shape the
shipment and document endpoints already use.
| Status | Message prefix | Cause |
|---|---|---|
400 | Bad Request. | A validation failure. The rest of the message names the field and the rule it broke. A text field sent as an object, an array or true is one. |
501 | Endpoint not implemented for <company> | The carrier in the path has no rating engine. All five documented carrier codes have one, so this means the path carries a code that is valid for other endpoints but cannot rate. |
503 | {"status": 503, "code": "offline", "message": "Service unavailable during scheduled window"} | The carrier's nightly maintenance window. Retry once it closes; see scheduled maintenance. |
500 | {"error": "Internal server error."} | An unusable x-customer-code. It is not retryable — the header has to change, or the fault is on our side to fix. A rating system that fails is not a 500: it is a SYSTEM soft error. The exception is a quote still unanswered after 180 seconds, which the API stops waiting for and answers with this 500. The quote is stopped before it is saved unless saving had already begun, so it is usually safe to retry with backoff; if it had been saved, the retry gives a second quote number, as any repeated quote does. |
Pricing API — Apex/WCE
Rate an LTL shipment for Apex Motor Express or Western Canada Express. Dimension driven, up to ten rows, with a flat weight and commodity rather than per-row detail.
- Carriers
- apex · wce
- Parameters in
- Request body
- Returns
- Bare JSON object
- Soft errors
- At HTTP 200
Apex and WCE share the rating engine below. It is not the
Overland/Comox engine and not the
CCT one: different required fields, different accessorial names,
ten dimension rows instead of five commodity rows, and a bare object rather than an array of
one. There is no payment, no contact- fields, no postal codes and no
per-row weights or descriptions here.
An unknown customer, an unrecognised city, a lane outside your tariff or an oversized
shipment all come back as HTTP 200 with
{"error": true, "message": "…"} instead of a quote. Check for the
error key before reading any charge field. See
unquotable shipments.
Account and lane
| Name | Type | Use | Details |
|---|---|---|---|
| customer-code | String | Required | Your customer code. Must match the account in your x-customer-code header. Up to 7 characters. |
| shipper-city | String | Required | Origin city. Maximum 20 characters. Uppercased before rating. A missing or longer city is answered as a NEEDS_PRICING_DESK soft error, not a 400. |
| shipper-prov | String | Required | Origin province. See accepted provinces. |
| consignee-city | String | Required | Destination city. Maximum 20 characters. Uppercased before rating. A missing or longer city is answered as a NEEDS_PRICING_DESK soft error, not a 400. |
| consignee-prov | String | Required | Destination province. See accepted provinces. |
Service
| Name | Type | Use | Details |
|---|---|---|---|
| shipment-type | String | Required | Direction and payment of the shipment: OP outbound prepaid, or IC inbound collect. |
Freight
| Name | Type | Use | Details |
|---|---|---|---|
| weight | Integer | Required | Total shipment weight, as a number. Must be greater than zero, and below the cap for the unit you use — see weight limits. Thousands separators are accepted: "1,500" is read as 1500. |
| weight-type | String | Required | Unit for weight: LBS or KGS. |
| commodity | String | Required | Description of the goods. Maximum 50 characters, single line. |
Accepted provinces
Send QC or PQ for Quebec and NL or NF for
Newfoundland — both spellings are accepted on the way in. Anything outside this list,
and a shipper or consignee city that is missing or longer than 20 characters, is answered
the way a lane not in your tariff is, with NEEDS_PRICING_DESK — see
soft error codes.
shipper-prov and consignee-prov echo what you sent, in capitals, so
PQ or NF comes back as sent. The basing- fields always
use the modern codes (QC, NL). The terminal fields
shipper-terminal-prov and consignee-terminal-prov are returned in the
carrier's internal form and can contain PQ or NF. Normalise on your
side if you display them together.
Weight limits
| Unit | Accepted | Rejected |
|---|---|---|
LBS | Above 0 and below 15,000 lb | 400 at exactly 15,000 lb or above — the limit is exclusive. |
KGS | Above 0 and below about 6,804 kg | 400 once the pound equivalent reaches 15,000 lb. |
Clearing the request limit is not the same as being rateable. The carrier system can still
refuse the shipment at HTTP 200 — Apex and WCE at a rated weight of
15,000 lb, and CCT at 6,000 lb, well below the request limit. Rated
weight can exceed submitted weight when dimensional weight applies, so a 4,000 lb bulky
shipment can hit CCT's ceiling.
Dimension rows
Up to ten rows of piece dimensions. Row 1 is required. Rows 2 to 10 are all-or-nothing: send all three values for a row or leave the row out entirely.
| Name | Type | Use | Details |
|---|---|---|---|
| length-1 | Integer | Required | Length of one piece, in inches. Whole numbers only, maximum 119. |
| width-1 | Integer | Required | Width of one piece, in inches. Whole numbers only, maximum 96. |
| height-1 | Integer | Required | Height of one piece, in inches. Whole numbers only, maximum 102. |
Dimension rows 2 to 10 — identical fields, suffix 2 to 10
| Name | Type | Use | Details |
|---|---|---|---|
| length-2 | Integer | Conditional | Length of one piece, in inches. Whole numbers only, maximum 119. Required when you submit this dimension row. |
| width-2 | Integer | Conditional | Width of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| height-2 | Integer | Conditional | Height of one piece, in inches. Whole numbers only, maximum 102. Required when you submit this dimension row. |
| Name | Type | Use | Details |
|---|---|---|---|
| length-3 | Integer | Conditional | Length of one piece, in inches. Whole numbers only, maximum 119. Required when you submit this dimension row. |
| width-3 | Integer | Conditional | Width of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| height-3 | Integer | Conditional | Height of one piece, in inches. Whole numbers only, maximum 102. Required when you submit this dimension row. |
| Name | Type | Use | Details |
|---|---|---|---|
| length-4 | Integer | Conditional | Length of one piece, in inches. Whole numbers only, maximum 119. Required when you submit this dimension row. |
| width-4 | Integer | Conditional | Width of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| height-4 | Integer | Conditional | Height of one piece, in inches. Whole numbers only, maximum 102. Required when you submit this dimension row. |
| Name | Type | Use | Details |
|---|---|---|---|
| length-5 | Integer | Conditional | Length of one piece, in inches. Whole numbers only, maximum 119. Required when you submit this dimension row. |
| width-5 | Integer | Conditional | Width of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| height-5 | Integer | Conditional | Height of one piece, in inches. Whole numbers only, maximum 102. Required when you submit this dimension row. |
| Name | Type | Use | Details |
|---|---|---|---|
| length-6 | Integer | Conditional | Length of one piece, in inches. Whole numbers only, maximum 119. Required when you submit this dimension row. |
| width-6 | Integer | Conditional | Width of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| height-6 | Integer | Conditional | Height of one piece, in inches. Whole numbers only, maximum 102. Required when you submit this dimension row. |
| Name | Type | Use | Details |
|---|---|---|---|
| length-7 | Integer | Conditional | Length of one piece, in inches. Whole numbers only, maximum 119. Required when you submit this dimension row. |
| width-7 | Integer | Conditional | Width of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| height-7 | Integer | Conditional | Height of one piece, in inches. Whole numbers only, maximum 102. Required when you submit this dimension row. |
| Name | Type | Use | Details |
|---|---|---|---|
| length-8 | Integer | Conditional | Length of one piece, in inches. Whole numbers only, maximum 119. Required when you submit this dimension row. |
| width-8 | Integer | Conditional | Width of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| height-8 | Integer | Conditional | Height of one piece, in inches. Whole numbers only, maximum 102. Required when you submit this dimension row. |
| Name | Type | Use | Details |
|---|---|---|---|
| length-9 | Integer | Conditional | Length of one piece, in inches. Whole numbers only, maximum 119. Required when you submit this dimension row. |
| width-9 | Integer | Conditional | Width of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| height-9 | Integer | Conditional | Height of one piece, in inches. Whole numbers only, maximum 102. Required when you submit this dimension row. |
| Name | Type | Use | Details |
|---|---|---|---|
| length-10 | Integer | Conditional | Length of one piece, in inches. Whole numbers only, maximum 119. Required when you submit this dimension row. |
| width-10 | Integer | Conditional | Width of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| height-10 | Integer | Conditional | Height of one piece, in inches. Whole numbers only, maximum 102. Required when you submit this dimension row. |
Every dimension must be a JSON integer. A quoted string such as "48" or a
decimal such as 48.5 is rejected with a 400. Keys beyond
length-10 are ignored without an error, so a shipment with more than ten distinct
piece sizes needs to be grouped before you send it.
Declared value
| Name | Type | Use | Details |
|---|---|---|---|
| excess-amount | Decimal | Optional | Declared value of the shipment, as a dollar amount. Rejected above $100,000 or above $10.00 per pound of weight; a weight in kilograms is converted to pounds first. Thousands separators are accepted; any other value that is not a dollar amount of zero or more is rejected. |
Accessorials
All optional. Send the number 1 to request the service; omit the key otherwise.
Each -rural service is rated and itemised separately from its urban counterpart.
| Name | Meaning |
|---|---|
require-tailgate-pickup | Tailgate required at pickup. |
require-tailgate-delivery | Tailgate required at delivery. |
require-inside-pickup | Pickup is inside the building. |
require-inside-delivery | Delivery is inside the building. |
require-home-pickup | Pickup is at a private residence in an urban area. |
require-home-delivery | Delivery is to a private residence in an urban area. |
require-home-pickup-rural | Pickup is at a private residence in a rural area. |
require-home-delivery-rural | Delivery is to a private residence in a rural area. |
require-saturday-pickup | Saturday pickup. |
require-saturday-delivery | Saturday delivery. |
require-sunday-pickup | Sunday pickup. |
require-sunday-delivery | Sunday delivery. |
require-after-hours-delivery | Delivery outside normal hours. |
require-prebook-appointment | Delivery appointment is pre-booked. |
require-call-for-appointment | Call the consignee to arrange an appointment. |
require-heat | Heated service required. |
require-dangerous-goods | Shipment contains dangerous goods. |
require-limited-access | Pickup or delivery is at a limited-access location. |
require-limited-access-pickup-rural | Pickup is at a limited-access location in a rural area. |
require-limited-access-delivery-rural | Delivery is to a limited-access location in a rural area. |
Examples
curl -X POST 'https://api.rewc.com:8184/api/apex/ratequote/customer' \
-H 'x-client-id: YOUR_CLIENT_ID' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'x-customer-code: ABC1234' \
-H 'Content-Type: application/json' \
-d @quote.jsonconst res = await fetch(
'https://api.rewc.com:8184/api/apex/ratequote/customer',
{
method: 'POST',
headers: {
'x-client-id': process.env.REWC_CLIENT_ID,
'x-api-key': process.env.REWC_API_KEY,
'x-customer-code': 'ABC1234',
'Content-Type': 'application/json'
},
body: JSON.stringify({
'customer-code': 'ABC1234',
'shipment-type': 'OP', // OP outbound prepaid, IC inbound collect
'shipper-city': 'TORONTO',
'shipper-prov': 'ON',
'consignee-city': 'MONTREAL',
'consignee-prov': 'QC',
'weight': 850,
'weight-type': 'LBS',
'commodity': 'PALLETIZED HARDWARE',
'length-1': 48, // integers, not strings
'width-1': 40,
'height-1': 60,
'require-tailgate-delivery': 1 // the number 1, not true
})
}
);
if (!res.ok) throw new Error(`REWC ${res.status}: ${await res.text()}`);
// A bare object, not an array -- and a 200 does not mean you got a rate.
const quote = await res.json();
if (quote.error) throw new Error(quote.message);
// quote-number is a prefixed string: AC... for Apex, WC... for WCE.
console.log(quote['quote-number'], quote['total-charge']);import os
import requests
res = requests.post(
"https://api.rewc.com:8184/api/apex/ratequote/customer",
headers={
"x-client-id": os.environ["REWC_CLIENT_ID"],
"x-api-key": os.environ["REWC_API_KEY"],
"x-customer-code": "ABC1234",
},
json={
"customer-code": "ABC1234",
"shipment-type": "OP", # OP outbound prepaid, IC inbound collect
"shipper-city": "TORONTO",
"shipper-prov": "ON",
"consignee-city": "MONTREAL",
"consignee-prov": "QC",
"weight": 850,
"weight-type": "LBS",
"commodity": "PALLETIZED HARDWARE",
"length-1": 48, # integers, not strings
"width-1": 40,
"height-1": 60,
"require-tailgate-delivery": 1, # the number 1, not True
},
timeout=190,
)
res.raise_for_status()
# A bare object, not a list -- and a 200 does not mean you got a rate.
quote = res.json()
if quote.get("error"):
raise RuntimeError(quote["message"])
# quote-number is a prefixed string: AC... for Apex, WC... for WCE.
print(quote["quote-number"], quote["total-charge"]){
"customer-code": "ABC1234",
"shipment-type": "OP",
"shipper-city": "TORONTO",
"shipper-prov": "ON",
"consignee-city": "MONTREAL",
"consignee-prov": "QC",
"weight": 850,
"weight-type": "LBS",
"commodity": "PALLETIZED HARDWARE",
"length-1": 48,
"width-1": 40,
"height-1": 60,
"require-tailgate-delivery": 1
}Shape
The response is a single JSON object — no envelope, no array. Accessorial charge fields
you did not request, dimension rows you did not submit, and any field the carrier system has no
value for are removed entirely rather than returned as null. Read
with optional access rather than assuming every documented key is present.
Quote and tariff
| Field | Type | Details |
|---|---|---|
| quote-number | String | Quote number to reference when booking. Prefixed by carrier — AC for Apex, WC for WCE — so it is a string such as AC1234567, never an integer. |
| customer-code | String | Customer code the quote was rated for. |
| quote-date | String | Date the quote was rated, YYYY-MM-DD. |
| tariff-code | String | Tariff used to rate the quote. |
| commodity | String | Commodity description, echoed from your request. |
Weights and rating
| Field | Type | Details |
|---|---|---|
| rate | Decimal | Rate applied to the shipment. |
| cost-per-weight | Decimal | Base freight charge before fuel and accessorials. |
| quoted-weight | Integer | Weight the tariff was applied to. |
| customer-input-weight | Integer | Weight as you submitted it. |
| deficit-weight | Integer | Deficit weight applied to reach a rate break, if any. |
| cubic-weight | Integer | Total cubic weight across all dimension rows. |
| density | Decimal | Density used for rating. |
Charges
| Field | Type | Details |
|---|---|---|
| total-charge | Decimal | Total charge for the shipment. Includes carbon fees — the itemised fields below will not sum to this figure unless you add carbon-charge-total back in. |
| fuel-surcharge | Decimal | Fuel surcharge. |
| gst-pst | Decimal | GST and PST amount. |
| excess | Decimal | Charge for the declared value. Present only when you sent excess-amount. |
| excess-amount | Decimal | The declared value, echoed back. Present only when you sent it. |
Accessorial charges
Each field appears only when you requested the matching accessorial.
| Field | Type | Details |
|---|---|---|
| tailgate-pickup-amount | Decimal | Tailgate pickup charge. |
| tailgate-delivery-amount | Decimal | Tailgate delivery charge. |
| inside-pickup-amount | Decimal | Inside pickup charge. |
| inside-delivery-amount | Decimal | Inside delivery charge. |
| home-pickup-amount | Decimal | Residential pickup charge. |
| home-delivery-amount | Decimal | Residential delivery charge. |
| home-pickup-rural-amount | Decimal | Rural residential pickup charge. |
| home-delivery-rural-amount | Decimal | Rural residential delivery charge. |
| saturday-pickup-amount | Decimal | Saturday pickup charge. |
| saturday-delivery-amount | Decimal | Saturday delivery charge. |
| sunday-pickup-amount | Decimal | Sunday pickup charge. |
| sunday-delivery-amount | Decimal | Sunday delivery charge. |
| after-hours-delivery-amount | Decimal | After-hours delivery charge. |
| pre-booked-amount | Decimal | Pre-booked appointment charge. |
| call-for-appointment-amount | Decimal | Call-for-appointment charge. |
| heat-amount | Decimal | Heated service charge. |
| dangerous-goods-amount | Decimal | Dangerous goods charge. |
| limited-access-amount | Decimal | Limited-access charge. |
| limited-access-pickup-rural-amount | Decimal | Rural limited-access pickup charge. |
| limited-access-delivery-rural-amount | Decimal | Rural limited-access delivery charge. |
Rated dimension rows
| Field | Type | Details |
|---|---|---|
| length-1 | Integer | Length submitted for row 1. |
| width-1 | Integer | Width submitted for row 1. |
| height-1 | Integer | Height submitted for row 1. |
| cubic-weight-1 | Integer | Cubic weight calculated for row 1. |
Rated dimension rows 2 to 10
| Field | Type | Details |
|---|---|---|
| length-2 | Integer | Length submitted for row 2. Absent when dimension row 2 was not submitted. |
| width-2 | Integer | Width submitted for row 2. Absent when dimension row 2 was not submitted. |
| height-2 | Integer | Height submitted for row 2. Absent when dimension row 2 was not submitted. |
| cubic-weight-2 | Integer | Cubic weight calculated for row 2. Absent when dimension row 2 was not submitted. |
| Field | Type | Details |
|---|---|---|
| length-3 | Integer | Length submitted for row 3. Absent when dimension row 3 was not submitted. |
| width-3 | Integer | Width submitted for row 3. Absent when dimension row 3 was not submitted. |
| height-3 | Integer | Height submitted for row 3. Absent when dimension row 3 was not submitted. |
| cubic-weight-3 | Integer | Cubic weight calculated for row 3. Absent when dimension row 3 was not submitted. |
| Field | Type | Details |
|---|---|---|
| length-4 | Integer | Length submitted for row 4. Absent when dimension row 4 was not submitted. |
| width-4 | Integer | Width submitted for row 4. Absent when dimension row 4 was not submitted. |
| height-4 | Integer | Height submitted for row 4. Absent when dimension row 4 was not submitted. |
| cubic-weight-4 | Integer | Cubic weight calculated for row 4. Absent when dimension row 4 was not submitted. |
| Field | Type | Details |
|---|---|---|
| length-5 | Integer | Length submitted for row 5. Absent when dimension row 5 was not submitted. |
| width-5 | Integer | Width submitted for row 5. Absent when dimension row 5 was not submitted. |
| height-5 | Integer | Height submitted for row 5. Absent when dimension row 5 was not submitted. |
| cubic-weight-5 | Integer | Cubic weight calculated for row 5. Absent when dimension row 5 was not submitted. |
| Field | Type | Details |
|---|---|---|
| length-6 | Integer | Length submitted for row 6. Absent when dimension row 6 was not submitted. |
| width-6 | Integer | Width submitted for row 6. Absent when dimension row 6 was not submitted. |
| height-6 | Integer | Height submitted for row 6. Absent when dimension row 6 was not submitted. |
| cubic-weight-6 | Integer | Cubic weight calculated for row 6. Absent when dimension row 6 was not submitted. |
| Field | Type | Details |
|---|---|---|
| length-7 | Integer | Length submitted for row 7. Absent when dimension row 7 was not submitted. |
| width-7 | Integer | Width submitted for row 7. Absent when dimension row 7 was not submitted. |
| height-7 | Integer | Height submitted for row 7. Absent when dimension row 7 was not submitted. |
| cubic-weight-7 | Integer | Cubic weight calculated for row 7. Absent when dimension row 7 was not submitted. |
| Field | Type | Details |
|---|---|---|
| length-8 | Integer | Length submitted for row 8. Absent when dimension row 8 was not submitted. |
| width-8 | Integer | Width submitted for row 8. Absent when dimension row 8 was not submitted. |
| height-8 | Integer | Height submitted for row 8. Absent when dimension row 8 was not submitted. |
| cubic-weight-8 | Integer | Cubic weight calculated for row 8. Absent when dimension row 8 was not submitted. |
| Field | Type | Details |
|---|---|---|
| length-9 | Integer | Length submitted for row 9. Absent when dimension row 9 was not submitted. |
| width-9 | Integer | Width submitted for row 9. Absent when dimension row 9 was not submitted. |
| height-9 | Integer | Height submitted for row 9. Absent when dimension row 9 was not submitted. |
| cubic-weight-9 | Integer | Cubic weight calculated for row 9. Absent when dimension row 9 was not submitted. |
| Field | Type | Details |
|---|---|---|
| length-10 | Integer | Length submitted for row 10. Absent when dimension row 10 was not submitted. |
| width-10 | Integer | Width submitted for row 10. Absent when dimension row 10 was not submitted. |
| height-10 | Integer | Height submitted for row 10. Absent when dimension row 10 was not submitted. |
| cubic-weight-10 | Integer | Cubic weight calculated for row 10. Absent when dimension row 10 was not submitted. |
Lane and basing points
| Field | Type | Details |
|---|---|---|
| shipper-city | String | Origin city, echoed from your request — not the point the rate was based on. |
| shipper-prov | String | Origin province, echoed from your request. |
| consignee-city | String | Destination city, echoed from your request. |
| consignee-prov | String | Destination province, echoed from your request. |
| basing-shipper-city | String | The point the rate was actually based from. Station cities collapse to their basing point, so this often differs from shipper-city. |
| basing-shipper-prov | String | Province of the origin basing point. |
| basing-consignee-city | String | The destination point the rate was based on. |
| basing-consignee-prov | String | Province of the destination basing point. |
Terminals and bill-to
| Field | Type | Details |
|---|---|---|
| shipper-terminal-city | String | Terminal that will handle the origin. |
| shipper-terminal-prov | String | Province of the origin terminal. Returned in the carrier's internal form, so Quebec appears as PQ and Newfoundland as NF. |
| shipper-terminal-phone | String | Phone number for the origin terminal. |
| consignee-terminal-city | String | Terminal that will handle the destination. |
| consignee-terminal-prov | String | Province of the destination terminal, in the carrier's internal form. |
| consignee-terminal-phone | String | Phone number for the destination terminal. |
| customer-name | String | Bill-to company name. |
| customer-address | String | Bill-to address, line 1. |
| customer-address-2 | String | Bill-to address, line 2. Absent when the account has only one address line. |
| customer-city | String | Bill-to city. |
| customer-prov | String | Bill-to province. |
| customer-postal-code | String | Bill-to postal code. |
Conditional fields
These appear only in specific circumstances. Both accompany a successful quote — neither is an error.
| Field | Type | Details |
|---|---|---|
| general-tariff | String | Y when the lane was rated off the general tariff rather than your own, N when it came from your tariff. Absent when the carrier system has no value. Treat Y as a spot quote — see reading general-tariff. |
| carbon-fees | Object | Provincial carbon charges. Present only when carbon applies to the lane. See carbon fees. |
Reading general-tariff
A lane that is not in your own tariff is still rated — we fall back to the
general tariff and return a quote you can book. general-tariff tells you which
happened:
| Value | Meaning |
|---|---|
N | Rated from your own tariff. |
Y | Rated from the general tariff. Treat it as a spot quote for convenience only. |
| absent | The carrier system returned no value. Do not infer either case. |
The API returns the flag and no more. Any wording your customers see — a “spot quote” label, a caveat on a rate sheet — is yours to write, and yours to keep consistent with your own commercial terms.
Carbon fees
Present only when carbon charges apply to the lane. Provinces with no charge are left out entirely, so read the keys rather than expecting all thirteen.
| Field | Type | Details |
|---|---|---|
| quote-number | String | The same prefixed quote number as the parent object. |
| carbon-charge-total | Decimal | Total carbon charge. Already added into the shipment total, so do not add it again when reconciling. |
| carbon-charge-<prov> | Decimal | Per-province carbon charge, for each province the shipment moves through: carbon-charge-ab, -bc, -mb, -nb, -nl, -ns, -nt, -nu, -on, -pe, -pq, -sk, -yt. Provinces with no charge are omitted. |
carbon-charge-total has been added into the shipment total before the response
is sent. Add it again and you will over-bill. Conversely, if you reconcile by summing the
itemised charge fields, you will be short by exactly the carbon total — add it back for
that check.
Example
{
"quote-number": "AC1234567",
"customer-code": "ABC1234",
"rate": 18.42,
"cost-per-weight": 156.57,
"quoted-weight": 850,
"customer-input-weight": 850,
"deficit-weight": 0,
"cubic-weight": 267,
"length-1": 48,
"width-1": 40,
"height-1": 60,
"cubic-weight-1": 267,
"fuel-surcharge": 31.31,
"gst-pst": 24.42,
"total-charge": 297.30,
"tariff-code": "TARIFF_CODE",
"density": 3.18,
"tailgate-delivery-amount": 75.00,
"shipper-city": "TORONTO",
"shipper-prov": "ON",
"consignee-city": "MONTREAL",
"consignee-prov": "QC",
"commodity": "PALLETIZED HARDWARE",
"quote-date": "2026-08-24",
"shipper-terminal-city": "TORONTO",
"shipper-terminal-prov": "ON",
"shipper-terminal-phone": "905-738-2106",
"consignee-terminal-city": "MONTREAL",
"consignee-terminal-prov": "PQ",
"consignee-terminal-phone": "514-333-1400",
"customer-name": "ACME DISTRIBUTION",
"customer-address": "12345 MAIN ST",
"customer-city": "TORONTO",
"customer-prov": "ON",
"customer-postal-code": "M4B1B3",
"carbon-fees": {
"quote-number": "AC1234567",
"carbon-charge-on": 6.40,
"carbon-charge-pq": 4.60,
"carbon-charge-total": 11.00
},
"general-tariff": "N",
"basing-shipper-city": "TORONTO",
"basing-shipper-prov": "ON",
"basing-consignee-city": "MONTREAL",
"basing-consignee-prov": "QC"
}Unquotable shipments
Your request was valid but the shipment could not be rated — or a city or province
could not be quoted, which is checked before the other fields. The HTTP status is
200 and the body replaces the quote entirely. Branch on code and
retryable rather than matching the message text.
{
"error": true,
"message": "Pricing for lanes not in your tariff. Please call our Pricing Department at (905)738-2106 in the Greater Toronto Area or (800)387-3702",
"code": "NEEDS_PRICING_DESK",
"retryable": false
}| Message | code | What it means |
|---|---|---|
The customer does not exist for APEX | CUSTOMER_NOT_FOUND | Your customer-code is not set up for this carrier. The carrier name in the message reflects the code in your path — APEX or WCE. |
Pricing for lanes not in your tariff. | NEEDS_PRICING_DESK | The lane is not in your tariff, or we do not quote it automatically — every quote is checked against your tariff and our lanes before it is rated. It is also the answer for a city or province that is missing, invalid, or one we cannot place. Call the pricing department for a spot quote. |
Pricing for accounts with cube exception. | NEEDS_PRICING_DESK | The account has a cube exception that has to be rated by hand. |
Pricing on rated weight of 15,000 lbs and more. | NEEDS_PRICING_DESK | The rated weight reached the 15,000 lb ceiling. |
Excess Value must be approved. | NEEDS_PRICING_DESK | The declared value needs approval before the shipment can be rated. |
Oversized shipment linear rates to apply, call for spot quote. | NEEDS_PRICING_DESK | Linear rates apply; the shipment needs a spot quote. |
We are unable to provide a quote at this time. | UNKNOWN | The rating engine returned a code this service does not recognise. The code is recorded on our side; worth reporting. |
We are unable to provide a quote at this time. | SYSTEM | The quote could not be completed on our side: the carrier rating system did not answer or failed, or a quote number came back with no rate behind it. The cause is recorded on our side. Retryable. |
Your quote could not be completed. Please try again later. | SYSTEM | The lane check that runs before every quote could not be completed, so nothing was rated or stored. Retryable. |
See soft error codes for the full set of code values and
which of them are worth retrying.
Validation errors
Request-level failures return 400 with status and
message at the top level, alongside a legacy error object that is
scheduled for removal. The message names the field and the rule it
broke, and includes the value you sent.
{
"status": 400,
"message": "Bad Request. Not a valid shipment-type. Choose one of :[OP,IC]. Supplied (XX)",
"error": {
"message": "Bad Request. Not a valid shipment-type. Choose one of :[OP,IC]. Supplied (XX)",
"data": []
}
}Validation stops at the first failure, so a request with several problems reports only the
first: a text field sent as an object, an array or true, then account, then the
shipper and consignee city and province (answered as a
NEEDS_PRICING_DESK soft error, not a 400), then weight, then dimensions,
then commodity, then shipment-type, then declared value.
Expect to iterate rather than getting a complete list.
Pricing API — CCT
Rate an LTL shipment for CCT Canada. The same dimension-driven shape as Apex and WCE, with a service level instead of a shipment type and a much larger set of ancillary charges.
- Carriers
- cct
- Parameters in
- Request body
- Returns
- Bare JSON object
- Soft errors
- At HTTP 200
If you already integrate Apex or WCE, five things change for CCT:
service-type replaces shipment-type;
value-amount replaces excess-amount;
total-charges is plural; the height cap drops from 102 to 96 inches; and the
accessorial vocabulary is different — require-weekend-* instead of
require-saturday-* and require-sunday-*,
require-residential-* instead of require-home-*. Only eight
accessorial names are shared.
Account and lane
| Name | Type | Use | Details |
|---|---|---|---|
| customer-code | String | Required | Your customer code. Must match the account in your x-customer-code header. Up to 7 characters. |
| shipper-city | String | Required | Origin city. Maximum 20 characters. Uppercased before rating. A missing or longer city is answered as a NEEDS_PRICING_DESK soft error, not a 400. |
| shipper-prov | String | Required | Origin province. See accepted provinces. |
| consignee-city | String | Required | Destination city. Maximum 20 characters. Uppercased before rating. A missing or longer city is answered as a NEEDS_PRICING_DESK soft error, not a 400. |
| consignee-prov | String | Required | Destination province. See accepted provinces. |
Service level
| Name | Type | Use | Details |
|---|---|---|---|
| service-type | String | Required | Service level: Regular, Intermodal or Expedited. Matched case-insensitively. |
| Value | Service |
|---|---|
Regular | Standard LTL service. |
Intermodal | Rail-assisted movement. |
Expedited | Time-sensitive service. |
Freight
| Name | Type | Use | Details |
|---|---|---|---|
| weight | Integer | Required | Total shipment weight, as a number. Must be greater than zero, and below the cap for the unit you use — see weight limits. Thousands separators are accepted: "1,500" is read as 1500. |
| weight-type | String | Required | Unit for weight: LBS or KGS. |
| commodity | String | Required | Description of the goods. Maximum 50 characters, single line. |
CCT accepts the same province codes and the same request weight limits. What differs is the rating ceiling: CCT refuses at a rated weight of 6,000 lb, well below the 15,000 lb request limit, so a request that validates cleanly can still come back unquotable.
Dimension rows
Up to ten rows of piece dimensions. Row 1 is required. Rows 2 to 10 are all-or-nothing: send all three values for a row or leave the row out entirely. The height cap is 96 inches — six inches lower than Apex and WCE.
| Name | Type | Use | Details |
|---|---|---|---|
| length-1 | Integer | Required | Length of one piece, in inches. Whole numbers only, maximum 119. |
| width-1 | Integer | Required | Width of one piece, in inches. Whole numbers only, maximum 96. |
| height-1 | Integer | Required | Height of one piece, in inches. Whole numbers only, maximum 96. |
Dimension rows 2 to 10 — identical fields, suffix 2 to 10
| Name | Type | Use | Details |
|---|---|---|---|
| length-2 | Integer | Conditional | Length of one piece, in inches. Whole numbers only, maximum 119. Required when you submit this dimension row. |
| width-2 | Integer | Conditional | Width of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| height-2 | Integer | Conditional | Height of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| Name | Type | Use | Details |
|---|---|---|---|
| length-3 | Integer | Conditional | Length of one piece, in inches. Whole numbers only, maximum 119. Required when you submit this dimension row. |
| width-3 | Integer | Conditional | Width of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| height-3 | Integer | Conditional | Height of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| Name | Type | Use | Details |
|---|---|---|---|
| length-4 | Integer | Conditional | Length of one piece, in inches. Whole numbers only, maximum 119. Required when you submit this dimension row. |
| width-4 | Integer | Conditional | Width of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| height-4 | Integer | Conditional | Height of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| Name | Type | Use | Details |
|---|---|---|---|
| length-5 | Integer | Conditional | Length of one piece, in inches. Whole numbers only, maximum 119. Required when you submit this dimension row. |
| width-5 | Integer | Conditional | Width of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| height-5 | Integer | Conditional | Height of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| Name | Type | Use | Details |
|---|---|---|---|
| length-6 | Integer | Conditional | Length of one piece, in inches. Whole numbers only, maximum 119. Required when you submit this dimension row. |
| width-6 | Integer | Conditional | Width of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| height-6 | Integer | Conditional | Height of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| Name | Type | Use | Details |
|---|---|---|---|
| length-7 | Integer | Conditional | Length of one piece, in inches. Whole numbers only, maximum 119. Required when you submit this dimension row. |
| width-7 | Integer | Conditional | Width of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| height-7 | Integer | Conditional | Height of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| Name | Type | Use | Details |
|---|---|---|---|
| length-8 | Integer | Conditional | Length of one piece, in inches. Whole numbers only, maximum 119. Required when you submit this dimension row. |
| width-8 | Integer | Conditional | Width of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| height-8 | Integer | Conditional | Height of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| Name | Type | Use | Details |
|---|---|---|---|
| length-9 | Integer | Conditional | Length of one piece, in inches. Whole numbers only, maximum 119. Required when you submit this dimension row. |
| width-9 | Integer | Conditional | Width of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| height-9 | Integer | Conditional | Height of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| Name | Type | Use | Details |
|---|---|---|---|
| length-10 | Integer | Conditional | Length of one piece, in inches. Whole numbers only, maximum 119. Required when you submit this dimension row. |
| width-10 | Integer | Conditional | Width of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
| height-10 | Integer | Conditional | Height of one piece, in inches. Whole numbers only, maximum 96. Required when you submit this dimension row. |
Declared value
| Name | Type | Use | Details |
|---|---|---|---|
| value-amount | Decimal | Optional | Declared value of the shipment, as a dollar amount. Rejected above $100,000 or above $10.00 per pound of weight; a weight in kilograms is converted to pounds first. Thousands separators are accepted; any other value that is not a dollar amount of zero or more is rejected. |
Accessorials
All optional. Send the number 1 to request the service; omit the key otherwise.
Each -rural service is rated and itemised separately from its urban counterpart.
| Name | Meaning |
|---|---|
require-tailgate-pickup | Tailgate required at pickup. |
require-tailgate-delivery | Tailgate required at delivery. |
require-inside-pickup | Pickup is inside the building. |
require-inside-delivery | Delivery is inside the building. |
require-residential-pickup | Pickup is at a private residence in an urban area. |
require-residential-delivery | Delivery is to a private residence in an urban area. Also turns on appointment delivery — see the note below. |
require-residential-pickup-rural | Pickup is at a private residence in a rural area. |
require-residential-delivery-rural | Delivery is to a private residence in a rural area. Unlike require-residential-delivery, it does not turn on appointment delivery. |
require-appointment-pickup | Pickup requires an appointment. |
require-appointment-delivery | Delivery requires an appointment. |
require-prebooked-appointment | The delivery appointment is pre-booked. |
require-weekend-pickup | Weekend pickup. |
require-weekend-delivery | Weekend delivery. |
require-after-hours-delivery | Delivery outside normal hours. |
require-heat | Heated service required. |
require-dangerous-goods | Shipment contains dangerous goods. |
require-limited-access | Pickup or delivery is at a limited-access location in an urban area. |
require-limited-access-rural | Pickup or delivery is at a limited-access location in a rural area. |
Sending require-residential-delivery turns appointment delivery on at the rating
engine as well. If you did not also send require-appointment-delivery, the
appointment charge is included in total-charges but
appointment-delivery-amount is left out of the response — so
the itemised charges will not sum to the total.
Send require-appointment-delivery: 1 alongside it whenever you request a
residential delivery, and the charge will be itemised.
Examples
curl -X POST 'https://api.rewc.com:8184/api/cct/ratequote/customer' \
-H 'x-client-id: YOUR_CLIENT_ID' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'x-customer-code: ABC1234' \
-H 'Content-Type: application/json' \
-d @quote.jsonconst res = await fetch(
'https://api.rewc.com:8184/api/cct/ratequote/customer',
{
method: 'POST',
headers: {
'x-client-id': process.env.REWC_CLIENT_ID,
'x-api-key': process.env.REWC_API_KEY,
'x-customer-code': 'ABC1234',
'Content-Type': 'application/json'
},
body: JSON.stringify({
'customer-code': 'ABC1234',
'service-type': 'Regular', // Regular | Intermodal | Expedited
'shipper-city': 'TORONTO',
'shipper-prov': 'ON',
'consignee-city': 'MONTREAL',
'consignee-prov': 'QC',
'weight': 850,
'weight-type': 'LBS',
'commodity': 'PALLETIZED HARDWARE',
'length-1': 48, // integers, not strings
'width-1': 40,
'height-1': 60,
'require-appointment-delivery': 1
})
}
);
if (!res.ok) throw new Error(`REWC ${res.status}: ${await res.text()}`);
const quote = await res.json();
if (quote.error) throw new Error(quote.message);
// Note the plural: CCT returns total-charges, Apex and WCE return total-charge.
console.log(quote['quote-number'], quote['total-charges']);import os
import requests
res = requests.post(
"https://api.rewc.com:8184/api/cct/ratequote/customer",
headers={
"x-client-id": os.environ["REWC_CLIENT_ID"],
"x-api-key": os.environ["REWC_API_KEY"],
"x-customer-code": "ABC1234",
},
json={
"customer-code": "ABC1234",
"service-type": "Regular", # Regular | Intermodal | Expedited
"shipper-city": "TORONTO",
"shipper-prov": "ON",
"consignee-city": "MONTREAL",
"consignee-prov": "QC",
"weight": 850,
"weight-type": "LBS",
"commodity": "PALLETIZED HARDWARE",
"length-1": 48, # integers, not strings
"width-1": 40,
"height-1": 60,
"require-appointment-delivery": 1,
},
timeout=190,
)
res.raise_for_status()
quote = res.json()
if quote.get("error"):
raise RuntimeError(quote["message"])
# Note the plural: CCT returns total-charges, Apex and WCE return total-charge.
print(quote["quote-number"], quote["total-charges"]){
"customer-code": "ABC1234",
"service-type": "Regular",
"shipper-city": "TORONTO",
"shipper-prov": "ON",
"consignee-city": "MONTREAL",
"consignee-prov": "QC",
"weight": 850,
"weight-type": "LBS",
"commodity": "PALLETIZED HARDWARE",
"length-1": 48,
"width-1": 40,
"height-1": 60,
"require-appointment-delivery": 1
}Shape
The response is a single JSON object — no envelope, no array. CCT prunes harder than
the other two contracts: an accessorial charge is removed when you did not request the
accessorial, and an ancillary charge when its amount is zero.
An accessorial you did request comes back even when its charge is 0. Read with
optional access throughout.
Quote and tariff
| Field | Type | Details |
|---|---|---|
| quote-number | String | Quote number to reference when booking. Prefixed CC, so it is a string such as CC1234567, never an integer. |
| customer-code | String | Customer code the quote was rated for. |
| quote-date | String | Date the quote was rated, YYYY-MM-DD. |
| tariff-code | String | Tariff used to rate the quote. |
| commodity | String | Commodity description, echoed from your request. |
| service-type | String | Service level, normalised and uppercased: REGULAR, INTERMODAL or EXPEDITED. |
Weights and rating
| Field | Type | Details |
|---|---|---|
| rate | Decimal | Rate applied to the shipment. |
| cost-per-weight | Decimal | Base freight charge before fuel and accessorials. |
| quoted-weight | Integer | Weight the tariff was applied to. |
| customer-input-weight | Integer | Weight as you submitted it. |
| deficit-weight | Integer | Deficit weight applied to reach a rate break, if any. |
| deficit-weigh-cost | Decimal | Charge arising from the deficit weight. The field name is spelled deficit-weigh-cost. |
| cubic-weight | Integer | Total cubic weight across all dimension rows. |
| density | Decimal | Density used for rating. |
Charges
| Field | Type | Details |
|---|---|---|
| total-charges | Decimal | Total charge for the shipment. Note the plural — Apex and WCE return total-charge. Includes carbon fees, so the itemised fields will not sum to it unless you add carbon-charge-total back in. |
| fuel-surcharge | Decimal | Fuel surcharge. |
| excess-amount | Decimal | The charge for the declared value, not the value itself. The opposite of the Apex/WCE meaning. |
| value-amount | Decimal | The declared value you sent, echoed back. |
For CCT, value-amount is the value you declared and excess-amount
is the charge for it. For Apex and WCE it is the other way round —
excess-amount is the value and excess is the charge. If you consume
both, map them explicitly rather than by name.
Accessorial charges
Each field appears when you requested the matching accessorial, even when the charge is
0.
| Field | Type | Details |
|---|---|---|
| tailgate-pickup-amount | Decimal | Tailgate pickup charge. |
| lift-gate-delivery-amount | Decimal | Tailgate delivery charge. Note the name: pickup is tailgate-, delivery is lift-gate-. |
| inside-pickup-amount | Decimal | Inside pickup charge. |
| inside-delivery-amount | Decimal | Inside delivery charge. |
| residential-pickup-amount | Decimal | Residential pickup charge. |
| residential-delivery-amount | Decimal | Residential delivery charge. |
| residential-pickup-rural-amount | Decimal | Rural residential pickup charge. |
| residential-delivery-rural-amount | Decimal | Rural residential delivery charge. |
| appointment-pickup-amount | Decimal | Appointment pickup charge. |
| appointment-delivery-amount | Decimal | Appointment delivery charge. |
| prebooked-appointment-amount | Decimal | Pre-booked appointment charge. |
| weekend-pickup-amount | Decimal | Weekend pickup charge. |
| weekend-delivery-amount | Decimal | Weekend delivery charge. |
| after-hours-delivery-amount | Decimal | After-hours delivery charge. |
| heat-amount | Decimal | Heated service charge. |
| dangerous-goods-amount | Decimal | Dangerous goods charge. |
| limited-access-delivery-amount | Decimal | Limited-access charge. Apex and WCE call this limited-access-amount. |
| limited-access-delivery-rural-amount | Decimal | Rural limited-access charge, for require-limited-access-rural. |
Ancillary charges
Charges we can add without a corresponding request flag. Each appears only when it is non-zero, so most quotes carry none of them.
Ancillary charge fields (28)
| Field | Type | Details |
|---|---|---|
| admin-amount | Decimal | Administration fee. |
| linehaul-surcharge-amount | Decimal | Linehaul surcharge. |
| newfoundland-amount | Decimal | Newfoundland service charge. |
| wholesale-amount | Decimal | Wholesale adjustment. |
| pickup-charge | Decimal | Pickup charge. |
| drop-fee | Decimal | Trailer drop fee. |
| direct-drive | Decimal | Direct drive charge. |
| cross-dock-charge | Decimal | Cross-dock charge. |
| same-day-charge | Decimal | Same-day service charge. |
| site-delivery-charge | Decimal | Job-site delivery charge. |
| storage-charge | Decimal | Storage charge. |
| disposal-charge | Decimal | Disposal charge. |
| delivery-detention | Decimal | Detention at delivery. |
| pickup-detention | Decimal | Detention at pickup. |
| re-delivery-charge | Decimal | Re-delivery charge. |
| redirect-charge | Decimal | Redirect charge. |
| bol-change-charge | Decimal | Bill of lading change charge. |
| plaque-card-fee | Decimal | Placard fee. |
| swamper-lumper-fee | Decimal | Swamper / lumper fee. |
| two-man-pick-up | Decimal | Two-person pickup charge. |
| two-man-delivery | Decimal | Two-person delivery charge. |
| trade-show-pickup-charge | Decimal | Trade show pickup charge. |
| trade-show-delivery-amount | Decimal | Trade show delivery charge. |
| after-hours-pickup-5-7am | Decimal | Pickup between 5am and 7am. |
| after-hours-pickup-6pm-5am | Decimal | Pickup between 6pm and 5am. |
| after-hours-delivery-6pm-5am | Decimal | Delivery between 6pm and 5am. |
| After-hours-pu/charge | Decimal | Additional after-hours pickup charge. The field name is exactly as shown — capital A and a literal slash. |
| cod-amount | Decimal | COD amount. Always zero; COD is not rated through this endpoint. |
Rated dimension rows
| Field | Type | Details |
|---|---|---|
| length-1 | Integer | Length submitted for row 1. |
| width-1 | Integer | Width submitted for row 1. |
| height-1 | Integer | Height submitted for row 1. |
| cubic-weight-1 | Integer | Cubic weight calculated for row 1. |
Rated dimension rows 2 to 10
| Field | Type | Details |
|---|---|---|
| length-2 | Integer | Length submitted for row 2. Absent when dimension row 2 was not submitted. |
| width-2 | Integer | Width submitted for row 2. Absent when dimension row 2 was not submitted. |
| height-2 | Integer | Height submitted for row 2. Absent when dimension row 2 was not submitted. |
| cubic-weight-2 | Integer | Cubic weight calculated for row 2. Absent when dimension row 2 was not submitted. |
| Field | Type | Details |
|---|---|---|
| length-3 | Integer | Length submitted for row 3. Absent when dimension row 3 was not submitted. |
| width-3 | Integer | Width submitted for row 3. Absent when dimension row 3 was not submitted. |
| height-3 | Integer | Height submitted for row 3. Absent when dimension row 3 was not submitted. |
| cubic-weight-3 | Integer | Cubic weight calculated for row 3. Absent when dimension row 3 was not submitted. |
| Field | Type | Details |
|---|---|---|
| length-4 | Integer | Length submitted for row 4. Absent when dimension row 4 was not submitted. |
| width-4 | Integer | Width submitted for row 4. Absent when dimension row 4 was not submitted. |
| height-4 | Integer | Height submitted for row 4. Absent when dimension row 4 was not submitted. |
| cubic-weight-4 | Integer | Cubic weight calculated for row 4. Absent when dimension row 4 was not submitted. |
| Field | Type | Details |
|---|---|---|
| length-5 | Integer | Length submitted for row 5. Absent when dimension row 5 was not submitted. |
| width-5 | Integer | Width submitted for row 5. Absent when dimension row 5 was not submitted. |
| height-5 | Integer | Height submitted for row 5. Absent when dimension row 5 was not submitted. |
| cubic-weight-5 | Integer | Cubic weight calculated for row 5. Absent when dimension row 5 was not submitted. |
| Field | Type | Details |
|---|---|---|
| length-6 | Integer | Length submitted for row 6. Absent when dimension row 6 was not submitted. |
| width-6 | Integer | Width submitted for row 6. Absent when dimension row 6 was not submitted. |
| height-6 | Integer | Height submitted for row 6. Absent when dimension row 6 was not submitted. |
| cubic-weight-6 | Integer | Cubic weight calculated for row 6. Absent when dimension row 6 was not submitted. |
| Field | Type | Details |
|---|---|---|
| length-7 | Integer | Length submitted for row 7. Absent when dimension row 7 was not submitted. |
| width-7 | Integer | Width submitted for row 7. Absent when dimension row 7 was not submitted. |
| height-7 | Integer | Height submitted for row 7. Absent when dimension row 7 was not submitted. |
| cubic-weight-7 | Integer | Cubic weight calculated for row 7. Absent when dimension row 7 was not submitted. |
| Field | Type | Details |
|---|---|---|
| length-8 | Integer | Length submitted for row 8. Absent when dimension row 8 was not submitted. |
| width-8 | Integer | Width submitted for row 8. Absent when dimension row 8 was not submitted. |
| height-8 | Integer | Height submitted for row 8. Absent when dimension row 8 was not submitted. |
| cubic-weight-8 | Integer | Cubic weight calculated for row 8. Absent when dimension row 8 was not submitted. |
| Field | Type | Details |
|---|---|---|
| length-9 | Integer | Length submitted for row 9. Absent when dimension row 9 was not submitted. |
| width-9 | Integer | Width submitted for row 9. Absent when dimension row 9 was not submitted. |
| height-9 | Integer | Height submitted for row 9. Absent when dimension row 9 was not submitted. |
| cubic-weight-9 | Integer | Cubic weight calculated for row 9. Absent when dimension row 9 was not submitted. |
| Field | Type | Details |
|---|---|---|
| length-10 | Integer | Length submitted for row 10. Absent when dimension row 10 was not submitted. |
| width-10 | Integer | Width submitted for row 10. Absent when dimension row 10 was not submitted. |
| height-10 | Integer | Height submitted for row 10. Absent when dimension row 10 was not submitted. |
| cubic-weight-10 | Integer | Cubic weight calculated for row 10. Absent when dimension row 10 was not submitted. |
Lane and basing points
| Field | Type | Details |
|---|---|---|
| shipper-city | String | Origin city, echoed from your request — not the point the rate was based on. |
| shipper-prov | String | Origin province, echoed from your request. |
| consignee-city | String | Destination city, echoed from your request. |
| consignee-prov | String | Destination province, echoed from your request. |
| basing-shipper-city | String | The point the rate was actually based from. Station cities collapse to their basing point, so this often differs from shipper-city. |
| basing-shipper-prov | String | Province of the origin basing point. |
| basing-consignee-city | String | The destination point the rate was based on. |
| basing-consignee-prov | String | Province of the destination basing point. |
Terminals and bill-to
| Field | Type | Details |
|---|---|---|
| shipper-terminal-city | String | Terminal that will handle the origin. |
| shipper-terminal-prov | String | Province of the origin terminal. Returned in the carrier's internal form, so Quebec appears as PQ and Newfoundland as NF. |
| shipper-terminal-phone | String | Phone number for the origin terminal. |
| consignee-terminal-city | String | Terminal that will handle the destination. |
| consignee-terminal-prov | String | Province of the destination terminal, in the carrier's internal form. |
| consignee-terminal-phone | String | Phone number for the destination terminal. |
| customer-name | String | Bill-to company name. |
| customer-address | String | Bill-to address, line 1. |
| customer-address-2 | String | Bill-to address, line 2. Absent when the account has only one address line. |
| customer-city | String | Bill-to city. |
| customer-prov | String | Bill-to province. |
| customer-postal-code | String | Bill-to postal code. |
| customer-postal-code-extra | String | Postal code extension. Apex and WCE call this customer-postal-code-4. |
Conditional fields
| Field | Type | Details |
|---|---|---|
| general-tariff | String | Y when the lane was rated off the general tariff rather than your own. Whether CCT populates this field depends on the carrier system, so treat it as optional and absent by default. See reading general-tariff. |
| carbon-fees | Object | Provincial carbon charges. Present only when carbon applies to the lane. See carbon fees. |
An out-of-tariff lane on CCT usually comes back as an
unquotable shipment rather than a quote flagged
general-tariff: "Y". Handle both.
carbon-fees works exactly as it does for Apex and WCE, including the total
already being folded into the shipment total — see carbon fees.
The one difference is the field it is added to: CCT uses total-charges, plural.
Unquotable shipments
Your request was valid but the shipment could not be rated — or a city or province
could not be quoted, which is checked before the other fields. The HTTP status is
200. Branch on code and retryable rather than matching
the message text.
{
"error": true,
"message": "Pricing on rated weight of 6,000 lbs and more. Please call our Pricing Department at (905)362-9198 or email us at rates@cctcanada.com.",
"code": "NEEDS_PRICING_DESK",
"retryable": false
}| Message | code | What it means |
|---|---|---|
The customer does not exist for CCT | CUSTOMER_NOT_FOUND | Your customer-code is not set up for CCT. |
Pricing for lanes not in your tariff. | NEEDS_PRICING_DESK | The lane is not in your tariff, or we do not quote it automatically — every quote is checked against your tariff and our lanes before it is rated. It is also the answer for a city or province that is missing, invalid, or one we cannot place. Call the pricing department for a spot quote. |
Pricing on cube greater than 600 cubic feet. | NEEDS_PRICING_DESK | The shipment exceeds 600 cubic feet and has to be rated by hand. |
Pricing on rated weight of 6,000 lbs and more. | NEEDS_PRICING_DESK | The rated weight reached CCT's 6,000 lb ceiling — lower than the 15,000 lb request limit, so a request that validates can still land here. |
Excess Value must be approved. | NEEDS_PRICING_DESK | The declared value needs approval before the shipment can be rated. |
Invalid accessorial code. | INVALID_ACCESSORIAL | One of the accessorials you requested is not valid for this lane or service level. |
We are unable to provide a quote at this time. | UNKNOWN | The rating engine returned a code this service does not recognise. The code is recorded on our side; worth reporting. |
We are unable to provide a quote at this time. | SYSTEM | The quote could not be completed on our side: the carrier rating system did not answer or failed, or a quote number came back with no rate behind it. The cause is recorded on our side. Retryable. |
Your quote could not be completed. Please try again later. | SYSTEM | The lane check that runs before every quote could not be completed, so nothing was rated or stored. Retryable. |
See soft error codes for the full set of code values and
which of them are worth retrying.
What to watch for
Seven behaviours that catch most first integrations on these two contracts.
| Behaviour | What it means for you |
|---|---|
Accessorial flags must equal 1 | Only a value equal to the number 1 — 1, "1" or true — turns an accessorial on. "yes", "on" and 2 all rate as off, silently, and the quote comes back looking correct. |
Never send "0" as a string | A string "0" does not apply the accessorial to the rate, but it does keep the matching charge field in the response — so you get an itemised charge that is not in the total. Send numbers, or omit the key. |
| Dimensions must be JSON integers | 48 is accepted; "48" and 48.5 are both rejected with a 400. This applies to every row, including unused ones, so omit them rather than sending "0". Send these quotes as JSON: a form-encoded body sends every dimension as text and always fails. |
| Numbers may carry thousands separators | A weight of "1,500" is read as 1500 and a declared value of "1,500.00" as 1500.00, and both are held to their caps. Anything else that is not a number — "$1500", "1500 lbs" — is rejected with a 400. |
| Text fields take text | A field such as shipper-city or commodity can be sent as a string or a number. An object, an array or true is rejected with a 400 naming the field, before any other check. |
| Response cities are your input, echoed | shipper-city and consignee-city are what you sent. The point the rate was actually based on is in the basing- fields, and it legitimately differs — station cities collapse to their basing point. |
| Every call creates a stored quote | Requests are not idempotent. A retry produces a second quote number, not the same one. Store the quote number from the first successful response rather than re-requesting. |
Errors and status codes
Five response shapes and nine status codes. The shape depends on which layer caught the problem, so a client that assumes one envelope on every failure will break.
Most failures now share one JSON envelope — status and
message. Two things still break a client that assumes it everywhere: the API's own
checks — credentials, permissions, unreadable request bodies and server errors —
answer with a single
error key instead, and an unratable shipment is reported at
HTTP 200. Branch on the status code and the Content-Type header first,
then parse.
Response envelopes
Status envelope
Used by probill/lookup, probill/search and images
{
"status": 400,
"message": "Unable to look up probill, incorrect parameters."
}The HTTP status always equals the status field. The data key is absent on failure rather than null — and also absent on success when there is nothing to return, so do not treat a missing data as an error.
Status envelope with legacy error object
Used by ratequote/customer, all three rating engines
{
"status": 400,
"message": "Bad Request. No valid payment option. Choose one of :[PPD,COL,3P]. Supplied (XX)",
"error": {
"message": "Bad Request. No valid payment option. Choose one of :[PPD,COL,3P]. Supplied (XX)",
"data": []
}
}Read status and message. The nested error object duplicates the message and exists only so older integrations keep working — it is scheduled for removal. The message is prefixed by category; see the status codes table.
Soft error, HTTP 200
Used by ratequote/customer
// Overland West and Comox -- a bare object, message in both fields
{
"error": "Your quote could not be automatically completed. Please call 604-580-4600 ext 9706 to acquire a rate.",
"message": "Your quote could not be automatically completed. Please call 604-580-4600 ext 9706 to acquire a rate.",
"code": "NEEDS_PRICING_DESK",
"retryable": false
}
// Apex, WCE and CCT -- a bare object, and "error" is a boolean
{
"error": true,
"message": "Pricing for lanes not in your tariff. ...",
"code": "NEEDS_PRICING_DESK",
"retryable": false
}Your request was valid; the shipment simply could not be rated automatically. Check for an error key on every 200 from the rate quote. Both are a single object — a soft error is never wrapped in an array, even on Overland/Comox where a successful quote is. The only remaining difference is error itself: it holds the message on Overland/Comox and true on Apex/WCE/CCT. message, code and retryable are identical across all five carriers — read those three and the difference stops mattering. See soft error codes.
Gateway error
Used by authentication and permission failures, unreadable request bodies, unknown paths and every server error
{
"error": "Unauthorized."
}Answered by the API itself, ahead of any endpoint: a missing or rejected credential (400, 401), an x-customer-code you are not entitled to (400), a request body that is not valid JSON or is too large (400, 413), a path outside /api/<COMPANY_CODE>/ (404), and every 500, whose body is always {"error": "Internal server error."}. There is no status key — read the HTTP status. See authentication failures.
Scheduled maintenance
Used by All endpoints, during the carrier's nightly window
{
"status": 503,
"code": "offline",
"message": "Service unavailable during scheduled window"
}Returned before your request reaches an endpoint, so it says nothing about the request itself. status carries the numeric HTTP status like every other response; the machine-readable marker is in code. See scheduled maintenance.
Status codes
| Code | Meaning | What to do |
|---|---|---|
200 | Success — or a rate quote soft error | For every endpoint except the rate quote, a 200 means what you expect. On the rate quote, inspect the body for an error key, then read code and retryable. An unexpected 200 with the body {} on probill/search means customer-code was omitted entirely; check also that your parameter names are lowercase. The rate quote no longer answers with an empty body — a carrier with no rating engine is a 501. |
400 | Bad request | A parameter is missing, malformed, or fails a length or character rule. Also the not-found case for shipment lookup and search, which return Status not available for this customer number. rather than a 404. The API's own checks answer some 400s too, with a single error key: a missing credential header, an x-customer-code your credential is not entitled to, or a request body that is not valid JSON ({"error": "Bad Request. The request body is not valid JSON."}) — see authentication failures. Not retryable without changing the request. |
401 | Unauthorized | Bad client ID or key, or a credential not permitted this endpoint, HTTP method or carrier — which includes a carrier code that is not one of the five, a misspelt path and the wrong method, because the permission check runs first. The body is {"error": "Unauthorized."}. Not retryable. A customer-code that does not match your x-customer-code header is a 400, not a 401 — it is your parameter, so it is reported as a user error. |
404 | Not found | A path outside /api/<COMPANY_CODE>/, answered with {"error": "Not found."}. Inside it, an unknown carrier code, path or method is a 401. Note that a missing shipment is a 400, not a 404. |
413 | Request body too large | The request body is over the size limit, answered with {"error": "Payload Too Large."}. A body in a character set or content encoding the API does not accept is answered the same way, with a 415 and {"error": "Unsupported Media Type."}. Not retryable without changing the request. |
500 | Server error | The carrier system did not answer, or not within 180 seconds — that limit applies to every endpoint. The body is always {"error": "Internal server error."} — the cause is not passed on. Retryable with exponential backoff. On the rate quote a carrier system that fails is a SYSTEM soft error instead, so a 500 there means an unusable x-customer-code — or, if it arrived after 180 seconds, a quote the API stopped waiting for, which is retryable (usually nothing was saved; if it was, the retry gives a second quote number). The unusable header is the exception everywhere: it is a 500 because the fault is not the caller's to correct, but retrying will not help — check the header, and report it if it looks right. A stored document that cannot be rendered is not a 500 — it reads as not-found. |
501 | No rating engine for this carrier | On rate quote only: the carrier code in the path cannot rate. All five documented carrier codes can, so this means the path carries a code that is valid for other endpoints but not for rating. Not retryable — correct the path. |
503 | Scheduled maintenance | The carrier's nightly maintenance window is in progress. Retryable once the window closes; see scheduled maintenance. |
Soft error codes
Rate quote responses that could not produce a quote carry a stable code and a
retryable boolean alongside the human-readable message. Branch on these,
not on the message text — the wording differs per carrier, carries phone numbers
and email addresses, and is subject to change. The codes are the same across all five
carriers.
| code | Retryable | Meaning |
|---|---|---|
CUSTOMER_NOT_FOUND | No | The customer code is not set up with this carrier. |
INVALID_ORIGIN | No | No longer sent. A city and province the rating engine cannot place at the origin is now answered as a lane not in your tariff, with NEEDS_PRICING_DESK. |
INVALID_DESTINATION | No | No longer sent. Same, for the destination. |
INVALID_ACCESSORIAL | No | An accessorial is not valid for this lane or service level. CCT only. |
NEEDS_PRICING_DESK | No | The shipment needs a person to rate it — an out-of-tariff lane or one we do not quote automatically, a city or province that is missing, invalid or cannot be placed, an oversized or overweight load, an excess value needing approval. The message carries the pricing department's contact details. |
VALIDATION | No | No longer sent. Overland/Comox used it when the rating program gave no rate; that is now SYSTEM, since the generic message gives you nothing to correct. |
NOT_SAVED | Yes | The rate was calculated but could not be stored, so there is no quote number to book against. |
SYSTEM | Yes | The quote could not be completed on our side: the carrier rating system or the lane check did not answer, the rating program gave no rate, a lookup failed, or a quote number came back with no rate behind it. The message is the carrier's generic one, or for the lane check Your quote could not be completed. Please try again later. |
UNKNOWN | No | The rating engine returned a code this service does not recognise. Apex/WCE and CCT only. The message is the carrier's generic one; the code is recorded on our side. Report it if you see it. |
When a quote fails for a reason that is ours to deal with rather than yours — a carrier system that did not answer, a code or reason from the rating engine that is not worded for customers — the message is the carrier's generic one: We are unable to provide a quote at this time. followed by its pricing department's contact details. The real cause is recorded on our side; see reporting a problem for what to include when you report one.
NOT_SAVED and SYSTEM are transient — the rate was calculable
but something downstream failed. Everything else needs either a corrected request or a person at
the pricing desk, and retrying will return the same answer.
Retry those two carefully: every rate quote call stores a quote, so a retry loop against a persistent failure leaves a trail of duplicate quote numbers behind it. Retry once or twice with backoff, then surface it.
A retry policy that works
| Situation | Handling |
|---|---|
500, 503, connection error | Retry with exponential backoff and jitter. Cap at a few attempts and alert rather than looping. |
400, 401, 404, 413, 415, 501 | Do not retry. The request or the credential has to change. |
| Rate quote soft error | Retry only when retryable is true — that is, NOT_SAVED or SYSTEM. See soft error codes. |
| Rate quote timeout | Retry once, then stop. Every call creates a stored quote, so repeated retries leave duplicate quote numbers behind. |
200 with the body {} | Only probill/search answers this way, when customer-code is omitted entirely. Treat as a client bug and verify parameter name casing. |
Every request to /api/<COMPANY_CODE>/ that carries an x-client-id is
recorded with the response you were sent — including one the API's own checks reject, and any
server error. When you report a problem, give the time, with your time zone, and your client ID;
that is enough to find the request. A request with no x-client-id, or a body the API
could not read, is not recorded.
About this reference
What is settled, what is still being confirmed, and where to ask.
Verified against the code
Parameter names, validation rules, enumerations, response fields and error messages here were checked against the running implementation rather than transcribed from earlier documents.
Pick the one for your carrier
Overland/Comox, Apex/WCE and CCT. They are separate rating engines, not variations — sending one carrier's payload to another will not work.
Credentials and approval
A client ID, API key and approval for each carrier and customer account you need are issued by Reimer Group. Contact your account representative to start.
Choosing between the three rating engines
| Overland/Comox | Apex/WCE | CCT | |
|---|---|---|---|
| Carriers | owfl, comox | apex, wce | cct |
| Rows | 5 commodity rows, each with quantity, description and weight | 10 dimension rows, dimensions only | 10 dimension rows, dimensions only |
| Weight | Per commodity row | One weight for the shipment | One weight for the shipment |
| Service field | shipment-truck-req (optional) | shipment-type — OP or IC | service-type — Regular, Intermodal, Expedited |
| Payment terms | payment required | Implied by shipment-type | Not applicable |
| Contact fields | Required | None | None |
| Postal codes | Required | Not used | Not used |
| Height cap | 96 in | 102 in | 96 in |
| Declared value | declared-value | excess-amount | value-amount |
| Response | Array of one | Bare object | Bare object |
| Total field | net-total-charges | total-charge | total-charges |
| Quote number | Unprefixed | AC / WC prefix | CC prefix |
| Soft error shape | {"error": "<msg>", …} | {"error": true, …} | {"error": true, …} |
Soft error message / code / retryable | Identical | Identical | Identical |
How the rating sections were written
The Overland/Comox rate quote, shipment status and document retrieval sections started from existing internal documents and were then corrected against the implementation.
The Apex/WCE and CCT sections had no earlier document and were written from the implementation directly. If something in them does not match what you observe, that is worth reporting — contact your account representative.