What’s a batch job?
A batch job is a group of packages that are delivered by same courier (and thus same provider). A batch job has N packages where N > 1, in contrast with single jobs (non-batch) which have a single package.Batch types
- pattern 1: single pickup, multiple dropoffs = same pickup address, name and phone-number for all packages
- pattern 2: multiple pickups, single dropoff = same dropoff address, name and phone-number for all packages
- pattern 3: multiple pickups, multiple dropoff
- multiple pickups then multiple dropoffs. note: there’s no pickup after a dropoff (interleaving)
isBatch
, and batch
field:
batch
field:
- batch.id: unique id for this batch
- batch.type: one of these values:
SINGLE_PICKUP_MULTIPLE_DROPOFFS
MULTIPLE_PICKUPS_SINGLE_DROPOFF
MULTIPLE_PICKUPS_MULTIPLE_DROPOFFS
- batch.objectSequence: list of
jobConfigurations
(which container package information) in order: - batch.stopTypes: list of stop representing actions sequence:
PICKUP
orDROPOFF
- batch.quotes, batch.winnerQuote, batch.failedQuotes: same as task.quotes, task.winnerQuote, task.failedQuotes from non-batch jobs
For this and all other endpoints, as Nash processes fields from different providers, please assume that any field in the response we provide may be
null
.Body
application/json
Expected input for creating a batch job.
Response
OK
The format for a returned batch job used in many endpoints.