> ## Documentation Index
> Fetch the complete documentation index at: https://docs.haulstow.co/llms.txt
> Use this file to discover all available pages before exploring further.

# How pricing works

> Distance bands, minivan load tiers, the preferred rate, and what happens to the fee when a destination changes.

Every delivery fee comes from the same rate card HaulStow operations use. `POST /quotes` shows you the number before you book, and `POST /deliveries` records the same calculation on the delivery. You never send a fee yourself.

## Distance bands

The trip is measured along the road from pickup to drop-off (`distance_source: road`), or estimated from the straight-line distance when the maps provider is unreachable (`estimated`). The fee is the flat price of the distance band the trip falls in. Each vehicle type has its own bands.

A trip past the last band is not priced automatically: the quote comes back with `"requires_custom_quote": true` and `"fee": null`, and the delivery is booked without a fee for HaulStow operations to price by hand. You will receive `delivery.repriced` when they do.

## Minivan load tiers

A bike is priced on distance alone. A minivan is priced on distance **and** load. Send `weight_kg` and `volume_m3` on the quote and on the delivery; HaulStow works out a tier from each and uses the higher one.

| Tier | Label | Up to |
| - | - | - |
| 1 | Small | 50 kg · 0.4 m³ |
| 2 | Medium | 100 kg · 0.8 m³ |
| 3 | Large | 150 kg · 1.2 m³ |
| 4 | Extra-large | 200 kg · 1.6 m³ |

So 60 kg in 0.3 m³ is tier 2 (the weight decides), and 20 kg in 1.1 m³ is tier 3 (the volume decides). Leave both fields out and the delivery is priced as tier 1.

Anything over tier 4 cannot be priced automatically. Both `POST /quotes` and `POST /deliveries` refuse it with `422 MANUAL_QUOTE_REQUIRED`; contact HaulStow for a manual quote or split the load.

The quote tells you which tier it used:

```json theme={null}
{
  "vehicle_type": "minivan",
  "distance_km": 12.3,
  "fee": 210,
  "requires_custom_quote": false,
  "load_tier": 2,
  "load_tier_label": "Medium",
  "pricing_source": "band"
}
```

`weight_kg` and `volume_m3` are ignored on a bike.

## Preferred rate

Some businesses are on a **preferred rate**: a flat delivery price for any drop-off within a fixed radius of the HaulStow hub, whatever the distance from the pickup. HaulStow enables it per business.

When it applies, the quote and the delivery carry `"pricing_source": "preferred_rate"` and `fee` is the flat price. Outside the radius the normal bands apply. The sandbox never applies the preferred rate.

## When the fee changes after booking

`delivery_fee` on a delivery can change after you create it:

* HaulStow operations entered a manual fee on a trip that could not be priced automatically (`pricing.source` becomes `manual`).
* The drop-off address was changed. Before the rider has the parcel this is a plain re-quote of the new route. Once the rider is en route (`picked_up` or `in_transit`), the new fee is **120% of the higher of** the original fee and the new route's quote, and `pricing` records `original_fee`, `revised_fee`, `destination_change_surcharge` and `destination_changed_at`. Anything the recipient already paid counts towards the new fee.

Every such change is announced by a `delivery.repriced` webhook whose `data.delivery` carries the new `delivery_fee` and `pricing`. Poll `GET /deliveries/{delivery_id}` if you do not use webhooks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.