Batch Rating
These endpoints rate multiple shipments in a single API call.
BatchRating_BaseRate
| Method | POST |
| Route | api/rating/Batch/BaseRate/{rateMatrixVersionGUID}/{authCode} |
| Auth | webAuthCode or dmAuthCode only |
| Body | List<InternalRate> (JSON array) |
| Returns | List<InternalRateDetail> |
Rates a batch of shipments using a specific rate matrix version. Each shipment in the list is rated using the base rate calculation and the results are returned as a flat list of rate details.
BatchRating_QuickRate
| Method | POST |
| Route | api/rating/Batch/QuickRate/{authCode} |
| Auth | webAuthCode or dmAuthCode only |
| Body | List<InternalRate> (JSON array) |
| Returns | List<InternalRateDetail> |
Rates a batch of shipments using the quick rate logic (multi-carrier). Each shipment uses its own client and profile configuration.
Usage Notes
- Batch endpoints accept only
webAuthCodeordmAuthCode-- client auth codes are not supported for batch operations. - The request body is a JSON array of
InternalRateobjects. Each element is rated independently. - Consider the total payload size and server timeout when batching large numbers of shipments.