Skip to content

Quotes and routing

Create Order can use one of four routing modes.

Omit quote_id, strategy_id, and skip_routing_strategy to use the merchant’s configured dispatch strategy.

The strategy controls provider eligibility, ranking, timing, fallbacks, and active hours. See Auto-routing strategies.

Pass a quote ID from Get Provider Quotes:

{
"quote_id": "2e12b919-74c0-4222-a469-f356acd9b371"
}

First tries that exact provider and quote before normal strategy-ranked providers. If the quote attempt fails, First records the error and can continue through strategy fallbacks.

Provider pricing and availability can change quickly, and providers have different expiration rules. Fetch quotes again immediately before order placement when a customer chooses a provider, price, or delivery time.

If a quoted provider is mandatory, inspect auto_route rather than assuming a created order means that provider accepted it.

Pass strategy_id to use a specific strategy instead of the merchant default:

{
"strategy_id": "30ff3b81-b075-4e20-a22b-587105633f2d"
}

An unknown ID returns strategy_id not found. Strategy hours still apply. If the strategy is outside its active hours, First creates the order but does not auto-dispatch it.

Set skip_routing_strategy: true to create the order without automatic strategy routing:

{
"skip_routing_strategy": true
}

The order remains available in Dispatch for manual assignment.

The response’s auto_route object explains what happened:

  • enabled: external-fleet routing was enabled.
  • success: a provider accepted the delivery.
  • errors: First validation errors and provider rejection messages.

See Provider rejects when success is false.