POST
/
v1
/
jobs
/
external_identifier
/
{externalIdentifier}
/
autodispatch

Autodispatch Job

For a given job, you can set up auto dispatch features by creating Dispatch Strategies.

In some scenarios, you may want to create a job to display the quotes to your customer before sending the job for fulfillment. This is the case in a checkout experience, where you would want to display the delivery options before dispatching the job. After the customer accepts the order and would like to place it, you can utilize the Autodispatch Job endpoint to make sure that the job is sent using the customized Options Group that you have created.

Therefore, to autodispatch a job using an options group, you need to ensure that an options group has been attached to the job and that you have selected a dispatching strategy for the options group. When creating a job, you can display the quotes to your customers, and then instead of selecting a quote, you can autodispatch the job using this endpoint.

Autodispatch Preferred Quote

When a call to /autodispatch is made, the quote with the tag autodispatch_preferred_quote will be selected. You may utilize this tag to know what price to display to your customers, if you are utilizing this feature as part of your checkout experience. You can access the full list of quotes create_job_response["jobConfigurations"][0]["advanced_task"]["quotes"] and then filter the one with "autodispatch_preferred_quote" in quote.tags.

Please make sure that Enable Autodispatch is switched off on the Dispatch Strategy that you are using to autodispatch the job.

Path Parameters

externalIdentifier
string
required

job external identifier

Response

200 - application/json

Expected output from autodispatch job endpoint.

job
object
required

A Nash Job.