Discussions

Ask a Question
Back to all

Allocated Cost Current"

he "Allocated Cost Current" value isn't directly exposed as a field on orders in the classic Platform API. The buy-side carrier cost lives at the manifest
level.

Here's how to get it:

Step 1 — Get the manifest ID for your order

GET /api/v1/orders/{orderID}/legs

The response includes legs, each with a manifest_id field.

Step 2 — Get the carrier (buy) cost for that manifest

GET /api/v1/manifests/{manifestID}/quotes/dispatched

This returns the dispatched manifest quote with:
{ "manifest_quote": { "freight_cost": ..., "fuel_cost": ..., "accessorials_cost": ..., "sub_total_cost": ..., "tax_cost": ..., "total_cost": ... } }

Important caveat: If multiple orders are consolidated onto one manifest, total_cost represents the carrier cost for the entire manifest, not just your single
order. In that case, "Allocated Cost Current" in the UI is a proportional allocation — the API doesn't expose that per-order breakdown directly. You'd need to
calculate it based on how the orders are weighted (e.g. by weight or revenue share).

If your orders are always 1:1 with manifests, total_cost from the dispatched quote is exactly what you're looking for.