Skip to main content
POST
Autodispatch order
This is similar to Autodispatch Job
Autodispatch selects a quote for you instead of you choosing one by hand. Set the selection rules up front by creating a dispatch strategy and attaching it to the order; Nash then picks the winning quote when you call this endpoint. This fits a checkout flow. You create the order and show the customer their delivery options while the order sits unfulfilled. When the customer places the order, you call this endpoint instead of selecting a quote yourself, and the order goes out under the dispatch strategy you configured.

Autodispatch preferred quote

When you call /autodispatch, Nash selects the quote tagged autodispatch_preferred_quote. Read that tag ahead of time to know which price to show the customer during checkout: take the full list at order["quotes"] and filter for the one with "autodispatch_preferred_quote" in quote.tags.
Keep Enable Autodispatch switched off, so the order isn’t dispatched the moment it’s created.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Unique reference number for the order: either order.id (starts with "ord_") or order.externalId

Example:

"ord_1234567890"

Response

OK

Expected output from autodispatch job endpoint.

job
ReturnedJobMixin · object
required

A Nash Job.