Quote Management
These endpoints manage rate quotes -- saving, validating, retrieving, and checking pending quotes.
SaveQuote
| Method | POST |
| Routes | api/rating/SaveQuote/{authCode}api/rating/SaveQuote |
| Auth | webAuthCode, dmAuthCode, or client auth |
| Body | InternalRateQuote (JSON) |
| Returns | InternalRateQuote (with QuoteNumber populated) |
Persists a rate quote to the database. The quote is assigned a quote number and can be retrieved later for booking or validation. The Source field is automatically set to "API" if not provided.
Key Fields in InternalRateQuote
| Field | Type | Description |
|---|---|---|
BranchGUID | Guid | Client branch identifier |
CarrierGUID | Guid | Selected carrier |
ClientInvoice | decimal | Client-facing invoice amount |
CarrierNet | decimal | Carrier net cost |
TransitDays | int | Estimated transit time |
TotalWeight | int | Total shipment weight |
RateRequest | InternalRate | The original rate request with rate details |
QuoteNumber | long | Assigned after save (output) |
Source | string | Origin of the quote (defaults to "API") |
ValidateQuote
| Method | POST |
| Route | api/rating/ValidateQuote/{quoteGUID}/{authCode} |
| Auth | webAuthCode, dmAuthCode, or client auth |
| Returns | InternalRateQuote |
Validates an existing quote. If the original rate is no longer valid, the shipment is re-rated as an audit (isAudit=true) and the updated quote is returned.
PendingQuote
| Method | GET |
| Route | api/rating/PendingQuote/{quoteGUID}/{authCode} |
| Auth | webAuthCode or dmAuthCode only |
| Returns | InternalRateQuote |
Retrieves a pending quote. If the original quote is no longer valid, returns all available rates (isAudit=false) rather than re-rating as an audit.
Quote (Retrieve by GUID)
| Method | GET |
| Route | api/rating/Quote/{quoteGUID}/{authCode} |
| Auth | webAuthCode or dmAuthCode only |
| Returns | InternalRateQuote |
Retrieves a saved quote by its GUID without any re-rating or validation.
RetrieveQuote (by Quote Number)
| Method | GET |
| Route | api/rating/retrieveQuote/{quoteNumber}/{authCode} |
| Auth | webAuthCode, dmAuthCode, or client auth |
| Returns | InternalRateQuote |
Retrieves a saved quote by its numeric quote number (assigned during SaveQuote).
Related Pages
- Back to Portal Home
- Shipment Booking -- Convert quotes into booked shipments
- Rating Endpoints