Skip to content

Create an order

Use POST /api/v3/orders to create a delivery order. API-client keys need the orders:write scope.

This section separates implementation guidance from the endpoint reference, so request fields, sandbox behavior, routing, and troubleshooting are easy to find.

  1. Create a merchant and save its First merchant ID.
  2. Build the request using Request fields and Addresses.
  3. Decide whether to use your account’s default dispatch strategy, a specific strategy_id, or a recently fetched quote_id. See Quotes and routing.
  4. Test with realistic data in Sandbox.
  5. Save the returned First order ID and _request_id.
  6. Follow the order through webhooks or bounded polling. See Delivery lifecycle.

Without an automatic dispatch strategy, the order appears in the Dispatch column for its current status. A dispatcher can assign it to an internal fleet or send it to Pending External Driver for external provider routing.

With an automatic dispatch strategy, First evaluates eligible providers and routing rules. An accepted external provider appears on the order, and the order moves to the assigned courier’s row when a courier accepts it.

The response can include an auto_route object:

  • enabled says whether external-fleet auto-routing was active.
  • success says whether First routed the order to a provider.
  • errors explains validation errors and provider rejections.

Order creation can succeed even when routing does not. Always inspect both the created order and auto_route.