Request a rate quote
This endpoint is implemented by the rate provider and called by Augment. Every other endpoint in this reference operates in the opposite direction, so the distinction warrants emphasis: Augment acts as the HTTP client, and cannot retrieve quotes until the endpoint is available on the provider side. The path and base URL shown above are placeholders for the values the provider assigns.
Each request describes a single shipment and expects the rates that apply to it. mode, rateType, two stops carrying a city and a state, and equipment.equipmentType are always present. The remaining fields are included when Augment holds a value and omitted when it does not, so an omitted optional field should be read as unknown rather than as a default. An omitted isHazmat, for example, does not indicate that the freight is non-hazardous.
dimensions is optional, but Augment includes it whenever a value is available, so that the rate provider rather than Augment determines whether a shipment is legal or oversize. Where oversize freight falls outside the scope of an initial build, dimensions may be disregarded and the field reserved for later use.
Where a shipment cannot be priced, the response must be 200 with an empty rates array and a populated noRateReason. This condition must not be reported with an error status: an error prevents Augment from distinguishing between "no rate exists" and "the endpoint is unavailable", and the two require opposite handling. 4xx and 5xx responses are reserved for malformed requests, authentication failures, and genuine faults.
One request is sent per rep. When a customer email reaches several of your reps, Augment sends one request for each, with its own augmentQuoteId and that rep as QUOTE_OWNER. Create one quote per request and do not merge them.
A request that repeats an augmentQuoteId already sent is an update to that quote, not a new quote. Augment resends it when the customer replies on the same thread with changes. Treat the call as idempotent: apply the latest values and return the same externalId.
Request
- Base URLhttps://rates.example.com/v1
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"hazmatUnNumber": "UN1090",
"accessorials": [
"AFTER_HOURS"
]
}Response
The applicable rates. Also the response for a shipment that cannot be priced: an empty rates array plus a noRateReason.
Example response
{
"rates": [
{
"source": "ATS_SPECIALIZED",
"accessorials": [
{
"code": "AFTER_HOURS"
}
]
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.