curl --request POST \
--url https://api.sandbox.usenash.com/v1/jobs/external_identifier/{externalIdentifier}/autodispatch \
--header 'Authorization: Bearer <token>'{
"job": {
"id": "job_01234567890",
"createdAt": "2023-08-29T19:17:46.264523",
"portalUrl": "https://usenash.com/portal/job_abc123",
"isActive": true,
"isBatch": false,
"jobConfigurations": [
{
"id": "cfg_01234567890",
"package": {
"id": "pkg_01234567890",
"requirements": [
"photo_proof_of_delivery",
"age_verification_on_delivery"
],
"valueCents": 123,
"itemsCount": 100,
"pickupLocation": {
"id": "loc_01234567890",
"address": "1600 Amphitheatre Parkway",
"formattedAddress": "1600 Amphitheatre Parkway",
"addressCity": "Mountain View",
"addressCountry": "US",
"timezoneId": "America/Los_Angeles",
"timezoneName": "Pacific Time",
"addressNumber": "1600",
"addressFormattedStreet": "Amphitheatre Parkway",
"addressCounty": "Santa Clara",
"addressState": "CA",
"addressZip": "94043",
"instructions": "Turn left on Main St",
"businessName": "Nash",
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "+15555555555",
"email": "[email protected]",
"lat": 37.774929,
"lng": -122.419416
},
"dropoffLocation": {
"id": "loc_01234567890",
"address": "1600 Amphitheatre Parkway",
"formattedAddress": "1600 Amphitheatre Parkway",
"addressCity": "Mountain View",
"addressCountry": "US",
"timezoneId": "America/Los_Angeles",
"timezoneName": "Pacific Time",
"addressNumber": "1600",
"addressFormattedStreet": "Amphitheatre Parkway",
"addressCounty": "Santa Clara",
"addressState": "CA",
"addressZip": "94043",
"instructions": "Turn left on Main St",
"businessName": "Nash",
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "+15555555555",
"email": "[email protected]",
"lat": 37.774929,
"lng": -122.419416
},
"description": "Package description",
"tags": [
"Alcohol"
],
"packageDeliveryMode": "now",
"pickupStartTime": "2021-01-01T00:00:00Z",
"pickupEndTime": "2021-01-01T00:00:00Z",
"pickupBarcodes": [
"<string>"
],
"dropoffStartTime": "2021-01-01T00:00:00Z",
"dropoffEndTime": "2021-01-01T00:00:00Z",
"dropoffBarcodes": [
"<string>"
],
"taxCents": 100,
"serviceFeeCents": 100,
"externalIdentifier": "mini-mart-order-99",
"minimumVehicleSize": "car",
"pickupStoreLocationId": "store_01234567890",
"pickupStoreLocationExternalId": "0123",
"dropoffStoreLocationId": "store_01234567890",
"drivingMetrics": {
"distance": 100,
"duration": 100
},
"value": 100,
"tax": 100,
"serviceFee": 100,
"tipAmountCents": 123,
"weight": 100,
"dimensions": {
"height": 100,
"length": 100,
"width": 100
},
"items": [
{
"count": 1,
"description": "Item 1",
"valueCents": 100
}
],
"referenceId": "mini-mart-order-99",
"packageMetadata": {
"key": "value"
}
},
"tasks": [
{
"id": "tsk_01234567890",
"createdAt": "2023-08-29T19:17:46.264523",
"status": "running",
"pickupStartTime": "2023-08-29T19:17:46.264523",
"pickupEndTime": "2023-08-29T19:17:46.264523",
"dropoffStartTime": "2023-08-29T19:17:46.264523",
"dropoffEndTime": "2023-08-29T19:17:46.264523",
"providerId": "prv_01234567890",
"providerIsInternal": true,
"tipAmountCents": 100,
"winnerQuote": {
"id": "qot_01234567890",
"price_cents": 100
},
"quotes": [
{
"id": "qot_01234567890",
"price_cents": 100
}
],
"failedQuotes": [
{
"id": "qot_01234567890",
"price_cents": 100
}
],
"delivery": {
"id": "dlv_01234567890",
"status": "dropoff_complete",
"isActive": true,
"priceCents": 123,
"currency": "<string>",
"type": "<string>",
"statusHistory": [
{
"created_at": "2023-08-29T19:17:46.264523",
"status": "created"
},
{
"created_at": "2023-08-29T19:17:47.509265",
"status": "not_assigned_driver"
}
],
"pickupEta": "<string>",
"dropoffEta": "<string>",
"dropoffDeadline": "<string>",
"documents": [
{
"createdAt": "<string>",
"id": "<string>",
"type": "<string>",
"contentType": "<string>",
"url": "<string>",
"data": "<string>",
"documentMetadata": {}
}
],
"nashFeeCents": 123,
"courierName": "<string>",
"courierPhoneNumber": "<string>",
"courierPickupPhoneNumber": "<string>",
"courierDropoffPhoneNumber": "<string>",
"courierLocation": {},
"courierVehicle": {},
"courierProfileImage": "<string>",
"proofOfDelivery": [
{}
],
"providerDeliveryId": "<string>",
"providerBatchId": "<string>",
"price": 123,
"taxAmountCents": 123,
"tollFeeCents": 123,
"waitFeeCents": 123,
"waitTimeMinutes": 123,
"cancellationFeeCents": 123,
"returnFeeCents": 123,
"otherProviderFees": {},
"insuranceFeeCents": 123,
"totalPriceBreakdown": {},
"totalPriceCents": 123,
"pickedItems": [
{
"sku": "<string>",
"requestedSku": "<string>",
"id": "<string>",
"requestedId": "<string>",
"quantity": 123,
"scannedBarcode": "<string>",
"weight": 123,
"priceCents": 123,
"status": "<string>",
"name": "<string>",
"scans": [
{
"substitutionType": "<string>",
"barcodes": [
{
"weight": 123,
"priceCents": 123,
"weightUnit": "<string>",
"productCode": "<string>",
"isVariableWeight": true,
"barcode": "<string>",
"variableValue": 123,
"format": "<string>",
"indicatorDigit": "<string>",
"checkDigit": "<string>",
"manufacturerCode": "<string>",
"itemReference": "<string>",
"pluCheckDigit": "<string>",
"barcodeSansCheckDigit": "<string>",
"expirationDate": "<string>"
}
]
}
]
}
]
},
"tipAmountUsd": 100,
"failureReason": "Task failed",
"taskNotes": [
{
"created_at": "2023-08-29T19:17:46.264523",
"id": "not_01234567890",
"note": "Task note",
"user": {
"email": "[email protected]"
}
}
]
}
],
"advancedTask": {
"id": "tsk_01234567890",
"createdAt": "2023-08-29T19:17:46.264523",
"status": "running",
"pickupStartTime": "2023-08-29T19:17:46.264523",
"pickupEndTime": "2023-08-29T19:17:46.264523",
"dropoffStartTime": "2023-08-29T19:17:46.264523",
"dropoffEndTime": "2023-08-29T19:17:46.264523",
"providerId": "prv_01234567890",
"providerIsInternal": true,
"tipAmountCents": 100,
"winnerQuote": {
"id": "qot_01234567890",
"price_cents": 100
},
"quotes": [
{
"id": "qot_01234567890",
"price_cents": 100
}
],
"failedQuotes": [
{
"id": "qot_01234567890",
"price_cents": 100
}
],
"delivery": {
"id": "dlv_01234567890",
"status": "dropoff_complete",
"isActive": true,
"priceCents": 123,
"currency": "<string>",
"type": "<string>",
"statusHistory": [
{
"created_at": "2023-08-29T19:17:46.264523",
"status": "created"
},
{
"created_at": "2023-08-29T19:17:47.509265",
"status": "not_assigned_driver"
}
],
"pickupEta": "<string>",
"dropoffEta": "<string>",
"dropoffDeadline": "<string>",
"documents": [
{
"createdAt": "<string>",
"id": "<string>",
"type": "<string>",
"contentType": "<string>",
"url": "<string>",
"data": "<string>",
"documentMetadata": {}
}
],
"nashFeeCents": 123,
"courierName": "<string>",
"courierPhoneNumber": "<string>",
"courierPickupPhoneNumber": "<string>",
"courierDropoffPhoneNumber": "<string>",
"courierLocation": {},
"courierVehicle": {},
"courierProfileImage": "<string>",
"proofOfDelivery": [
{}
],
"providerDeliveryId": "<string>",
"providerBatchId": "<string>",
"price": 123,
"taxAmountCents": 123,
"tollFeeCents": 123,
"waitFeeCents": 123,
"waitTimeMinutes": 123,
"cancellationFeeCents": 123,
"returnFeeCents": 123,
"otherProviderFees": {},
"insuranceFeeCents": 123,
"totalPriceBreakdown": {},
"totalPriceCents": 123,
"pickedItems": [
{
"sku": "<string>",
"requestedSku": "<string>",
"id": "<string>",
"requestedId": "<string>",
"quantity": 123,
"scannedBarcode": "<string>",
"weight": 123,
"priceCents": 123,
"status": "<string>",
"name": "<string>",
"scans": [
{
"substitutionType": "<string>",
"barcodes": [
{
"weight": 123,
"priceCents": 123,
"weightUnit": "<string>",
"productCode": "<string>",
"isVariableWeight": true,
"barcode": "<string>",
"variableValue": 123,
"format": "<string>",
"indicatorDigit": "<string>",
"checkDigit": "<string>",
"manufacturerCode": "<string>",
"itemReference": "<string>",
"pluCheckDigit": "<string>",
"barcodeSansCheckDigit": "<string>",
"expirationDate": "<string>"
}
]
}
]
}
]
},
"tipAmountUsd": 100,
"failureReason": "Task failed",
"taskNotes": [
{
"created_at": "2023-08-29T19:17:46.264523",
"id": "not_01234567890",
"note": "Task note",
"user": {
"email": "[email protected]"
}
}
]
},
"delivery": {
"id": "dlv_01234567890",
"status": "dropoff_complete",
"isActive": true,
"priceCents": 123,
"currency": "<string>",
"type": "<string>",
"statusHistory": [
{
"created_at": "2023-08-29T19:17:46.264523",
"status": "created"
},
{
"created_at": "2023-08-29T19:17:47.509265",
"status": "not_assigned_driver"
}
],
"pickupEta": "<string>",
"dropoffEta": "<string>",
"dropoffDeadline": "<string>",
"documents": [
{
"createdAt": "<string>",
"id": "<string>",
"type": "<string>",
"contentType": "<string>",
"url": "<string>",
"data": "<string>",
"documentMetadata": {}
}
],
"nashFeeCents": 123,
"courierName": "<string>",
"courierPhoneNumber": "<string>",
"courierPickupPhoneNumber": "<string>",
"courierDropoffPhoneNumber": "<string>",
"courierLocation": {},
"courierVehicle": {},
"courierProfileImage": "<string>",
"proofOfDelivery": [
{}
],
"providerDeliveryId": "<string>",
"providerBatchId": "<string>",
"price": 123,
"taxAmountCents": 123,
"tollFeeCents": 123,
"waitFeeCents": 123,
"waitTimeMinutes": 123,
"cancellationFeeCents": 123,
"returnFeeCents": 123,
"otherProviderFees": {},
"insuranceFeeCents": 123,
"totalPriceBreakdown": {},
"totalPriceCents": 123,
"pickedItems": [
{
"sku": "<string>",
"requestedSku": "<string>",
"id": "<string>",
"requestedId": "<string>",
"quantity": 123,
"scannedBarcode": "<string>",
"weight": 123,
"priceCents": 123,
"status": "<string>",
"name": "<string>",
"scans": [
{
"substitutionType": "<string>",
"barcodes": [
{
"weight": 123,
"priceCents": 123,
"weightUnit": "<string>",
"productCode": "<string>",
"isVariableWeight": true,
"barcode": "<string>",
"variableValue": 123,
"format": "<string>",
"indicatorDigit": "<string>",
"checkDigit": "<string>",
"manufacturerCode": "<string>",
"itemReference": "<string>",
"pluCheckDigit": "<string>",
"barcodeSansCheckDigit": "<string>",
"expirationDate": "<string>"
}
]
}
]
}
]
},
"publicTrackingUrl": "https://usenash.com/tracking/job_abc123"
}
],
"externalIdentifier": "mini-mart-order-99",
"jobMetadata": {
"key": "value"
},
"optionsGroup": {
"id": "opn_WyMhHj",
"label": "New York City Strategy",
"allowedProviders": [
"prv_01234567890",
"prv_01234567891"
],
"enableAutoDispatch": true,
"providerSelectionStrategy": "cheapest",
"reassignOnFailure": true,
"enableMaxDeliveryFee": true,
"maxDeliveryFeeCents": 10000,
"costSplitMaxFixedPriceCents": 10000,
"costSplitMaxPercentage": 0.1,
"costSplitStrategy": "price",
"smartReassignment": true
},
"shortReferenceCode": "0123456",
"selectedConfiguration": {
"tasks": []
},
"jobSpecification": {
"packages": []
},
"route": {
"id": "rte_JphRWDiEosGpXuxwgaYfY3",
"type": "SINGLE_PICKUP_MULTIPLE_DROPOFFS",
"stops": [
{
"stopType": "PICKUP",
"objectIds": [
"ord_Qr5bVt8WiByGh66z2g7xEu",
"ord_WJFuooSiRvFCaceGZjpbqs"
],
"location": {
"lat": 45.558214,
"lng": -122.587074
},
"arrivalTime": "2025-04-25T03:27:00",
"departTime": "2025-04-25T03:30:00",
"serviceTime": 360,
"distanceFromPrevious": 3376,
"durationFromPrevious": 420
}
],
"jobId": "job_1234567890abcdef12345678",
"externalId": "rte_JphRWDiEosGpXuxwgaYfY3",
"routeMetadata": {
"priority": "high",
"source": "optimization_engine"
}
}
}
}Automatically select a quote based on dispatch strategy
curl --request POST \
--url https://api.sandbox.usenash.com/v1/jobs/external_identifier/{externalIdentifier}/autodispatch \
--header 'Authorization: Bearer <token>'{
"job": {
"id": "job_01234567890",
"createdAt": "2023-08-29T19:17:46.264523",
"portalUrl": "https://usenash.com/portal/job_abc123",
"isActive": true,
"isBatch": false,
"jobConfigurations": [
{
"id": "cfg_01234567890",
"package": {
"id": "pkg_01234567890",
"requirements": [
"photo_proof_of_delivery",
"age_verification_on_delivery"
],
"valueCents": 123,
"itemsCount": 100,
"pickupLocation": {
"id": "loc_01234567890",
"address": "1600 Amphitheatre Parkway",
"formattedAddress": "1600 Amphitheatre Parkway",
"addressCity": "Mountain View",
"addressCountry": "US",
"timezoneId": "America/Los_Angeles",
"timezoneName": "Pacific Time",
"addressNumber": "1600",
"addressFormattedStreet": "Amphitheatre Parkway",
"addressCounty": "Santa Clara",
"addressState": "CA",
"addressZip": "94043",
"instructions": "Turn left on Main St",
"businessName": "Nash",
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "+15555555555",
"email": "[email protected]",
"lat": 37.774929,
"lng": -122.419416
},
"dropoffLocation": {
"id": "loc_01234567890",
"address": "1600 Amphitheatre Parkway",
"formattedAddress": "1600 Amphitheatre Parkway",
"addressCity": "Mountain View",
"addressCountry": "US",
"timezoneId": "America/Los_Angeles",
"timezoneName": "Pacific Time",
"addressNumber": "1600",
"addressFormattedStreet": "Amphitheatre Parkway",
"addressCounty": "Santa Clara",
"addressState": "CA",
"addressZip": "94043",
"instructions": "Turn left on Main St",
"businessName": "Nash",
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "+15555555555",
"email": "[email protected]",
"lat": 37.774929,
"lng": -122.419416
},
"description": "Package description",
"tags": [
"Alcohol"
],
"packageDeliveryMode": "now",
"pickupStartTime": "2021-01-01T00:00:00Z",
"pickupEndTime": "2021-01-01T00:00:00Z",
"pickupBarcodes": [
"<string>"
],
"dropoffStartTime": "2021-01-01T00:00:00Z",
"dropoffEndTime": "2021-01-01T00:00:00Z",
"dropoffBarcodes": [
"<string>"
],
"taxCents": 100,
"serviceFeeCents": 100,
"externalIdentifier": "mini-mart-order-99",
"minimumVehicleSize": "car",
"pickupStoreLocationId": "store_01234567890",
"pickupStoreLocationExternalId": "0123",
"dropoffStoreLocationId": "store_01234567890",
"drivingMetrics": {
"distance": 100,
"duration": 100
},
"value": 100,
"tax": 100,
"serviceFee": 100,
"tipAmountCents": 123,
"weight": 100,
"dimensions": {
"height": 100,
"length": 100,
"width": 100
},
"items": [
{
"count": 1,
"description": "Item 1",
"valueCents": 100
}
],
"referenceId": "mini-mart-order-99",
"packageMetadata": {
"key": "value"
}
},
"tasks": [
{
"id": "tsk_01234567890",
"createdAt": "2023-08-29T19:17:46.264523",
"status": "running",
"pickupStartTime": "2023-08-29T19:17:46.264523",
"pickupEndTime": "2023-08-29T19:17:46.264523",
"dropoffStartTime": "2023-08-29T19:17:46.264523",
"dropoffEndTime": "2023-08-29T19:17:46.264523",
"providerId": "prv_01234567890",
"providerIsInternal": true,
"tipAmountCents": 100,
"winnerQuote": {
"id": "qot_01234567890",
"price_cents": 100
},
"quotes": [
{
"id": "qot_01234567890",
"price_cents": 100
}
],
"failedQuotes": [
{
"id": "qot_01234567890",
"price_cents": 100
}
],
"delivery": {
"id": "dlv_01234567890",
"status": "dropoff_complete",
"isActive": true,
"priceCents": 123,
"currency": "<string>",
"type": "<string>",
"statusHistory": [
{
"created_at": "2023-08-29T19:17:46.264523",
"status": "created"
},
{
"created_at": "2023-08-29T19:17:47.509265",
"status": "not_assigned_driver"
}
],
"pickupEta": "<string>",
"dropoffEta": "<string>",
"dropoffDeadline": "<string>",
"documents": [
{
"createdAt": "<string>",
"id": "<string>",
"type": "<string>",
"contentType": "<string>",
"url": "<string>",
"data": "<string>",
"documentMetadata": {}
}
],
"nashFeeCents": 123,
"courierName": "<string>",
"courierPhoneNumber": "<string>",
"courierPickupPhoneNumber": "<string>",
"courierDropoffPhoneNumber": "<string>",
"courierLocation": {},
"courierVehicle": {},
"courierProfileImage": "<string>",
"proofOfDelivery": [
{}
],
"providerDeliveryId": "<string>",
"providerBatchId": "<string>",
"price": 123,
"taxAmountCents": 123,
"tollFeeCents": 123,
"waitFeeCents": 123,
"waitTimeMinutes": 123,
"cancellationFeeCents": 123,
"returnFeeCents": 123,
"otherProviderFees": {},
"insuranceFeeCents": 123,
"totalPriceBreakdown": {},
"totalPriceCents": 123,
"pickedItems": [
{
"sku": "<string>",
"requestedSku": "<string>",
"id": "<string>",
"requestedId": "<string>",
"quantity": 123,
"scannedBarcode": "<string>",
"weight": 123,
"priceCents": 123,
"status": "<string>",
"name": "<string>",
"scans": [
{
"substitutionType": "<string>",
"barcodes": [
{
"weight": 123,
"priceCents": 123,
"weightUnit": "<string>",
"productCode": "<string>",
"isVariableWeight": true,
"barcode": "<string>",
"variableValue": 123,
"format": "<string>",
"indicatorDigit": "<string>",
"checkDigit": "<string>",
"manufacturerCode": "<string>",
"itemReference": "<string>",
"pluCheckDigit": "<string>",
"barcodeSansCheckDigit": "<string>",
"expirationDate": "<string>"
}
]
}
]
}
]
},
"tipAmountUsd": 100,
"failureReason": "Task failed",
"taskNotes": [
{
"created_at": "2023-08-29T19:17:46.264523",
"id": "not_01234567890",
"note": "Task note",
"user": {
"email": "[email protected]"
}
}
]
}
],
"advancedTask": {
"id": "tsk_01234567890",
"createdAt": "2023-08-29T19:17:46.264523",
"status": "running",
"pickupStartTime": "2023-08-29T19:17:46.264523",
"pickupEndTime": "2023-08-29T19:17:46.264523",
"dropoffStartTime": "2023-08-29T19:17:46.264523",
"dropoffEndTime": "2023-08-29T19:17:46.264523",
"providerId": "prv_01234567890",
"providerIsInternal": true,
"tipAmountCents": 100,
"winnerQuote": {
"id": "qot_01234567890",
"price_cents": 100
},
"quotes": [
{
"id": "qot_01234567890",
"price_cents": 100
}
],
"failedQuotes": [
{
"id": "qot_01234567890",
"price_cents": 100
}
],
"delivery": {
"id": "dlv_01234567890",
"status": "dropoff_complete",
"isActive": true,
"priceCents": 123,
"currency": "<string>",
"type": "<string>",
"statusHistory": [
{
"created_at": "2023-08-29T19:17:46.264523",
"status": "created"
},
{
"created_at": "2023-08-29T19:17:47.509265",
"status": "not_assigned_driver"
}
],
"pickupEta": "<string>",
"dropoffEta": "<string>",
"dropoffDeadline": "<string>",
"documents": [
{
"createdAt": "<string>",
"id": "<string>",
"type": "<string>",
"contentType": "<string>",
"url": "<string>",
"data": "<string>",
"documentMetadata": {}
}
],
"nashFeeCents": 123,
"courierName": "<string>",
"courierPhoneNumber": "<string>",
"courierPickupPhoneNumber": "<string>",
"courierDropoffPhoneNumber": "<string>",
"courierLocation": {},
"courierVehicle": {},
"courierProfileImage": "<string>",
"proofOfDelivery": [
{}
],
"providerDeliveryId": "<string>",
"providerBatchId": "<string>",
"price": 123,
"taxAmountCents": 123,
"tollFeeCents": 123,
"waitFeeCents": 123,
"waitTimeMinutes": 123,
"cancellationFeeCents": 123,
"returnFeeCents": 123,
"otherProviderFees": {},
"insuranceFeeCents": 123,
"totalPriceBreakdown": {},
"totalPriceCents": 123,
"pickedItems": [
{
"sku": "<string>",
"requestedSku": "<string>",
"id": "<string>",
"requestedId": "<string>",
"quantity": 123,
"scannedBarcode": "<string>",
"weight": 123,
"priceCents": 123,
"status": "<string>",
"name": "<string>",
"scans": [
{
"substitutionType": "<string>",
"barcodes": [
{
"weight": 123,
"priceCents": 123,
"weightUnit": "<string>",
"productCode": "<string>",
"isVariableWeight": true,
"barcode": "<string>",
"variableValue": 123,
"format": "<string>",
"indicatorDigit": "<string>",
"checkDigit": "<string>",
"manufacturerCode": "<string>",
"itemReference": "<string>",
"pluCheckDigit": "<string>",
"barcodeSansCheckDigit": "<string>",
"expirationDate": "<string>"
}
]
}
]
}
]
},
"tipAmountUsd": 100,
"failureReason": "Task failed",
"taskNotes": [
{
"created_at": "2023-08-29T19:17:46.264523",
"id": "not_01234567890",
"note": "Task note",
"user": {
"email": "[email protected]"
}
}
]
},
"delivery": {
"id": "dlv_01234567890",
"status": "dropoff_complete",
"isActive": true,
"priceCents": 123,
"currency": "<string>",
"type": "<string>",
"statusHistory": [
{
"created_at": "2023-08-29T19:17:46.264523",
"status": "created"
},
{
"created_at": "2023-08-29T19:17:47.509265",
"status": "not_assigned_driver"
}
],
"pickupEta": "<string>",
"dropoffEta": "<string>",
"dropoffDeadline": "<string>",
"documents": [
{
"createdAt": "<string>",
"id": "<string>",
"type": "<string>",
"contentType": "<string>",
"url": "<string>",
"data": "<string>",
"documentMetadata": {}
}
],
"nashFeeCents": 123,
"courierName": "<string>",
"courierPhoneNumber": "<string>",
"courierPickupPhoneNumber": "<string>",
"courierDropoffPhoneNumber": "<string>",
"courierLocation": {},
"courierVehicle": {},
"courierProfileImage": "<string>",
"proofOfDelivery": [
{}
],
"providerDeliveryId": "<string>",
"providerBatchId": "<string>",
"price": 123,
"taxAmountCents": 123,
"tollFeeCents": 123,
"waitFeeCents": 123,
"waitTimeMinutes": 123,
"cancellationFeeCents": 123,
"returnFeeCents": 123,
"otherProviderFees": {},
"insuranceFeeCents": 123,
"totalPriceBreakdown": {},
"totalPriceCents": 123,
"pickedItems": [
{
"sku": "<string>",
"requestedSku": "<string>",
"id": "<string>",
"requestedId": "<string>",
"quantity": 123,
"scannedBarcode": "<string>",
"weight": 123,
"priceCents": 123,
"status": "<string>",
"name": "<string>",
"scans": [
{
"substitutionType": "<string>",
"barcodes": [
{
"weight": 123,
"priceCents": 123,
"weightUnit": "<string>",
"productCode": "<string>",
"isVariableWeight": true,
"barcode": "<string>",
"variableValue": 123,
"format": "<string>",
"indicatorDigit": "<string>",
"checkDigit": "<string>",
"manufacturerCode": "<string>",
"itemReference": "<string>",
"pluCheckDigit": "<string>",
"barcodeSansCheckDigit": "<string>",
"expirationDate": "<string>"
}
]
}
]
}
]
},
"publicTrackingUrl": "https://usenash.com/tracking/job_abc123"
}
],
"externalIdentifier": "mini-mart-order-99",
"jobMetadata": {
"key": "value"
},
"optionsGroup": {
"id": "opn_WyMhHj",
"label": "New York City Strategy",
"allowedProviders": [
"prv_01234567890",
"prv_01234567891"
],
"enableAutoDispatch": true,
"providerSelectionStrategy": "cheapest",
"reassignOnFailure": true,
"enableMaxDeliveryFee": true,
"maxDeliveryFeeCents": 10000,
"costSplitMaxFixedPriceCents": 10000,
"costSplitMaxPercentage": 0.1,
"costSplitStrategy": "price",
"smartReassignment": true
},
"shortReferenceCode": "0123456",
"selectedConfiguration": {
"tasks": []
},
"jobSpecification": {
"packages": []
},
"route": {
"id": "rte_JphRWDiEosGpXuxwgaYfY3",
"type": "SINGLE_PICKUP_MULTIPLE_DROPOFFS",
"stops": [
{
"stopType": "PICKUP",
"objectIds": [
"ord_Qr5bVt8WiByGh66z2g7xEu",
"ord_WJFuooSiRvFCaceGZjpbqs"
],
"location": {
"lat": 45.558214,
"lng": -122.587074
},
"arrivalTime": "2025-04-25T03:27:00",
"departTime": "2025-04-25T03:30:00",
"serviceTime": 360,
"distanceFromPrevious": 3376,
"durationFromPrevious": 420
}
],
"jobId": "job_1234567890abcdef12345678",
"externalId": "rte_JphRWDiEosGpXuxwgaYfY3",
"routeMetadata": {
"priority": "high",
"source": "optimization_engine"
}
}
}
}/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.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
job external identifier
OK
Expected output from autodispatch job endpoint.
A Nash Job.
Show child attributes
Job ID
"job_01234567890"
Created at
"2023-08-29T19:17:46.264523"
Portal URL
"https://usenash.com/portal/job_abc123"
Is the job active
true
Is the job a batch
false
Job configurations
Show child attributes
Job Configuration ID
"cfg_01234567890"
Package
Show child attributes
Package ID
"pkg_01234567890"
Requirements
[
"photo_proof_of_delivery",
"age_verification_on_delivery"
]Items count
100
Generic serializer for location used in many endpoints.
Show child attributes
Location ID
"loc_01234567890"
Address
"1600 Amphitheatre Parkway"
Formatted address
"1600 Amphitheatre Parkway"
Address city
"Mountain View"
Address country
"US"
Timezone ID
"America/Los_Angeles"
Timezone name
"Pacific Time"
Address number
"1600"
Address formatted street
"Amphitheatre Parkway"
Address county
"Santa Clara"
Address state
"CA"
Address zip
"94043"
Instructions
"Turn left on Main St"
Business name
"Nash"
First name
"John"
Last name
"Doe"
Phone number
"+15555555555"
Latitude
37.774929
Longitude
-122.419416
Generic serializer for location used in many endpoints.
Show child attributes
Location ID
"loc_01234567890"
Address
"1600 Amphitheatre Parkway"
Formatted address
"1600 Amphitheatre Parkway"
Address city
"Mountain View"
Address country
"US"
Timezone ID
"America/Los_Angeles"
Timezone name
"Pacific Time"
Address number
"1600"
Address formatted street
"Amphitheatre Parkway"
Address county
"Santa Clara"
Address state
"CA"
Address zip
"94043"
Instructions
"Turn left on Main St"
Business name
"Nash"
First name
"John"
Last name
"Doe"
Phone number
"+15555555555"
Latitude
37.774929
Longitude
-122.419416
Description
"Package description"
Tags
["Alcohol"]Package delivery mode
"now"
Pickup start time
"2021-01-01T00:00:00Z"
Pickup end time
"2021-01-01T00:00:00Z"
Dropoff start time
"2021-01-01T00:00:00Z"
Dropoff end time
"2021-01-01T00:00:00Z"
Tax in cents
100
Service fee in cents
100
External identifier
"mini-mart-order-99"
Minimum vehicle size required for the package. Allowed values: ['any', 'bike', 'motorbike', 'cargobike', 'sedan', 'car', 'suv', 'pickup_truck', 'pickup', 'van', 'large_van', 'extra_large_van', 'truck']
any, bike, motorbike, cargobike, sedan, car, suv, pickup_truck, pickup, van, large_van, extra_large_van, truck "car"
Pickup store location ID
"store_01234567890"
Pickup store location external ID
"0123"
Dropoff store location ID
"store_01234567890"
Driving metrics (distance in meters, duration in seconds)
{ "distance": 100, "duration": 100 }Value
100
Tax
100
Service fee
100
Weight
100
Dimensions
{
"height": 100,
"length": 100,
"width": 100
}Items
Show child attributes
The merchant ID of the item
"abc-123"
The description of the item
"A box of books"
The quantity of the item
2
The dimensions of the item
Show child attributes
The height of the item in centimeters (cm)
10
The width of the item in centimeters (cm)
12
The depth of the item in centimeters (cm)
14
{ "depth": 14, "height": 10, "width": 12 }The weight of the item in kilograms (kg)
1.5
The value of the item in cents
1000
The nested sub-items
Show child attributes
The merchant ID of the item
"abc-123"
The description of the item
"A box of books"
The quantity of the item
2
The dimensions of the item
Show child attributes
The height of the item in centimeters (cm)
10
The width of the item in centimeters (cm)
12
The depth of the item in centimeters (cm)
14
{ "depth": 14, "height": 10, "width": 12 }The weight of the item in kilograms (kg)
1.5
The value of the item in cents
1000
The SKU of the sub-item
Substitution information for the sub-item
Show child attributes
Substitution preference: refund or substitute
Source of substitution, e.g., merchant, customer
List of substitute items
Show child attributes
The ID of the substitute item
The SKU of the substitute item
The quantity of the substitute item
The nested sub-items
[
{
"count": 1,
"description": "Item 1",
"valueCents": 100
}
]Reference ID
"mini-mart-order-99"
Package metadata
{ "key": "value" }Tasks
Show child attributes
Task ID
"tsk_01234567890"
Created at
"2023-08-29T19:17:46.264523"
Status
"running"
Pickup start time
"2023-08-29T19:17:46.264523"
Pickup end time
"2023-08-29T19:17:46.264523"
Dropoff start time
"2023-08-29T19:17:46.264523"
Dropoff end time
"2023-08-29T19:17:46.264523"
Provider ID
"prv_01234567890"
Provider is internal
true
Tip amount in cents
100
Winner quote
{
"id": "qot_01234567890",
"price_cents": 100
}Quotes
Show child attributes
Quote ID
"qot_01234567890"
Provider ID
"uber_standard_mini_mart"
Provider name
"Nash"
Created time
"2021-01-01T00:00:00Z"
Price in cents
1000
Quote type
Provider logo
"https://nash.com/logo.png"
Is the provider internal
Expire time
"2021-01-01T00:00:00Z"
Tax amount in cents
100
Toll fee in cents
100
Nash fee in cents
100
Insurance fee in cents
100
Currency
"USD"
Pickup window
"2021-01-01T00:00:00Z"
Dropoff ETA
"2021-01-01T00:00:00Z"
Tags
[
"tag1",
"tag2",
"autodispatch_preferred_quote"
]Cost split customer in cents
100
Cost split business in cents
100
Total price breakdown
{
"subtotal": 1000,
"tax": 100,
"total": 1100
}Total price in cents
1000
Price
1000
Is successful
true
Error message
"Error message"
[
{
"id": "qot_01234567890",
"price_cents": 100
}
]Failed quotes
[
{
"id": "qot_01234567890",
"price_cents": 100
}
]Delivery object
Show child attributes
Delivery ID
"dlv_01234567890"
Delivery status
"dropoff_complete"
Is the delivery active
Price in cents
Currency
Delivery status history
[
{
"created_at": "2023-08-29T19:17:46.264523",
"status": "created"
},
{
"created_at": "2023-08-29T19:17:47.509265",
"status": "not_assigned_driver"
}
]Pickup ETA
Dropoff ETA
Dropoff deadline
Documents
Show child attributes
Nash fee in cents
Courier name
Courier phone number
Courier pickup phone number
Courier dropoff phone number
Courier location
Courier vehicle
Courier profile image
Proof of delivery
Provider delivery id
Provider batch id
Price
Tax amount in cents
Toll fee in cents
Wait fee in cents
Wait time in minutes
Cancellation fee in cents
Return fee in cents
Other provider fees
Insurance fee in cents
Total price breakdown
Total price in cents
Picked items
Show child attributes
Show child attributes
Show child attributes
Tip amount in USD
100
Failure reason
"Task failed"
Task notes
Show child attributes
Note ID
"not_01234567890"
Created at
"2023-08-29T19:17:46.264523"
Note
"Task note"
[
{
"created_at": "2023-08-29T19:17:46.264523",
"id": "not_01234567890",
"note": "Task note",
"user": { "email": "[email protected]" }
}
]Advanced task
Show child attributes
Task ID
"tsk_01234567890"
Created at
"2023-08-29T19:17:46.264523"
Status
"running"
Pickup start time
"2023-08-29T19:17:46.264523"
Pickup end time
"2023-08-29T19:17:46.264523"
Dropoff start time
"2023-08-29T19:17:46.264523"
Dropoff end time
"2023-08-29T19:17:46.264523"
Provider ID
"prv_01234567890"
Provider is internal
true
Tip amount in cents
100
Winner quote
{
"id": "qot_01234567890",
"price_cents": 100
}Quotes
Show child attributes
Quote ID
"qot_01234567890"
Provider ID
"uber_standard_mini_mart"
Provider name
"Nash"
Created time
"2021-01-01T00:00:00Z"
Price in cents
1000
Quote type
Provider logo
"https://nash.com/logo.png"
Is the provider internal
Expire time
"2021-01-01T00:00:00Z"
Tax amount in cents
100
Toll fee in cents
100
Nash fee in cents
100
Insurance fee in cents
100
Currency
"USD"
Pickup window
"2021-01-01T00:00:00Z"
Dropoff ETA
"2021-01-01T00:00:00Z"
Tags
[
"tag1",
"tag2",
"autodispatch_preferred_quote"
]Cost split customer in cents
100
Cost split business in cents
100
Total price breakdown
{
"subtotal": 1000,
"tax": 100,
"total": 1100
}Total price in cents
1000
Price
1000
Is successful
true
Error message
"Error message"
[
{
"id": "qot_01234567890",
"price_cents": 100
}
]Failed quotes
[
{
"id": "qot_01234567890",
"price_cents": 100
}
]Delivery object
Show child attributes
Delivery ID
"dlv_01234567890"
Delivery status
"dropoff_complete"
Is the delivery active
Price in cents
Currency
Delivery status history
[
{
"created_at": "2023-08-29T19:17:46.264523",
"status": "created"
},
{
"created_at": "2023-08-29T19:17:47.509265",
"status": "not_assigned_driver"
}
]Pickup ETA
Dropoff ETA
Dropoff deadline
Documents
Show child attributes
Nash fee in cents
Courier name
Courier phone number
Courier pickup phone number
Courier dropoff phone number
Courier location
Courier vehicle
Courier profile image
Proof of delivery
Provider delivery id
Provider batch id
Price
Tax amount in cents
Toll fee in cents
Wait fee in cents
Wait time in minutes
Cancellation fee in cents
Return fee in cents
Other provider fees
Insurance fee in cents
Total price breakdown
Total price in cents
Picked items
Show child attributes
Show child attributes
Show child attributes
Tip amount in USD
100
Failure reason
"Task failed"
Task notes
Show child attributes
Note ID
"not_01234567890"
Created at
"2023-08-29T19:17:46.264523"
Note
"Task note"
[
{
"created_at": "2023-08-29T19:17:46.264523",
"id": "not_01234567890",
"note": "Task note",
"user": { "email": "[email protected]" }
}
]Delivery
Show child attributes
Delivery ID
"dlv_01234567890"
Delivery status
"dropoff_complete"
Is the delivery active
Price in cents
Currency
Delivery status history
[
{
"created_at": "2023-08-29T19:17:46.264523",
"status": "created"
},
{
"created_at": "2023-08-29T19:17:47.509265",
"status": "not_assigned_driver"
}
]Pickup ETA
Dropoff ETA
Dropoff deadline
Documents
Show child attributes
Nash fee in cents
Courier name
Courier phone number
Courier pickup phone number
Courier dropoff phone number
Courier location
Courier vehicle
Courier profile image
Proof of delivery
Provider delivery id
Provider batch id
Price
Tax amount in cents
Toll fee in cents
Wait fee in cents
Wait time in minutes
Cancellation fee in cents
Return fee in cents
Other provider fees
Insurance fee in cents
Total price breakdown
Total price in cents
Picked items
Show child attributes
Show child attributes
Show child attributes
Public tracking URL
"https://usenash.com/tracking/job_abc123"
External identifier
"mini-mart-order-99"
Job metadata
{ "key": "value" }Options group
Show child attributes
Dispatch Strategy ID
"opn_WyMhHj"
Dispatch Strategy Label
"New York City Strategy"
Allowed providers
["prv_01234567890", "prv_01234567891"]Enable auto dispatch
true
Provider selection strategy
"cheapest"
Reassign on failure
true
Enable max delivery fee
true
Max delivery fee in cents
10000
Cost split max fixed price in cents
10000
Cost split max percentage
0.1
Cost split strategy
"price"
Smart reassignment
true
7-digit non-unique human-readable reference code for the job.
"0123456"
Selected configuration
Show child attributes
Show child attributes
Task ID
"tsk_01234567890"
Created at
"2023-08-29T19:17:46.264523"
Status
"running"
Pickup start time
"2023-08-29T19:17:46.264523"
Pickup end time
"2023-08-29T19:17:46.264523"
Dropoff start time
"2023-08-29T19:17:46.264523"
Dropoff end time
"2023-08-29T19:17:46.264523"
Provider ID
"prv_01234567890"
Provider is internal
true
Tip amount in cents
100
Winner quote
{
"id": "qot_01234567890",
"price_cents": 100
}Quotes
Show child attributes
Quote ID
"qot_01234567890"
Provider ID
"uber_standard_mini_mart"
Provider name
"Nash"
Created time
"2021-01-01T00:00:00Z"
Price in cents
1000
Quote type
Provider logo
"https://nash.com/logo.png"
Is the provider internal
Expire time
"2021-01-01T00:00:00Z"
Tax amount in cents
100
Toll fee in cents
100
Nash fee in cents
100
Insurance fee in cents
100
Currency
"USD"
Pickup window
"2021-01-01T00:00:00Z"
Dropoff ETA
"2021-01-01T00:00:00Z"
Tags
[
"tag1",
"tag2",
"autodispatch_preferred_quote"
]Cost split customer in cents
100
Cost split business in cents
100
Total price breakdown
{
"subtotal": 1000,
"tax": 100,
"total": 1100
}Total price in cents
1000
Price
1000
Is successful
true
Error message
"Error message"
[
{
"id": "qot_01234567890",
"price_cents": 100
}
]Failed quotes
[
{
"id": "qot_01234567890",
"price_cents": 100
}
]Delivery object
Show child attributes
Delivery ID
"dlv_01234567890"
Delivery status
"dropoff_complete"
Is the delivery active
Price in cents
Currency
Delivery status history
[
{
"created_at": "2023-08-29T19:17:46.264523",
"status": "created"
},
{
"created_at": "2023-08-29T19:17:47.509265",
"status": "not_assigned_driver"
}
]Pickup ETA
Dropoff ETA
Dropoff deadline
Documents
Show child attributes
Nash fee in cents
Courier name
Courier phone number
Courier pickup phone number
Courier dropoff phone number
Courier location
Courier vehicle
Courier profile image
Proof of delivery
Provider delivery id
Provider batch id
Price
Tax amount in cents
Toll fee in cents
Wait fee in cents
Wait time in minutes
Cancellation fee in cents
Return fee in cents
Other provider fees
Insurance fee in cents
Total price breakdown
Total price in cents
Picked items
Show child attributes
Show child attributes
Show child attributes
Tip amount in USD
100
Failure reason
"Task failed"
Task notes
Show child attributes
Note ID
"not_01234567890"
Created at
"2023-08-29T19:17:46.264523"
Note
"Task note"
[
{
"created_at": "2023-08-29T19:17:46.264523",
"id": "not_01234567890",
"note": "Task note",
"user": { "email": "[email protected]" }
}
]{ "tasks": [] }Job specification
Show child attributes
Show child attributes
Package ID
"pkg_01234567890"
Requirements
[
"photo_proof_of_delivery",
"age_verification_on_delivery"
]Items count
100
Generic serializer for location used in many endpoints.
Show child attributes
Location ID
"loc_01234567890"
Address
"1600 Amphitheatre Parkway"
Formatted address
"1600 Amphitheatre Parkway"
Address city
"Mountain View"
Address country
"US"
Timezone ID
"America/Los_Angeles"
Timezone name
"Pacific Time"
Address number
"1600"
Address formatted street
"Amphitheatre Parkway"
Address county
"Santa Clara"
Address state
"CA"
Address zip
"94043"
Instructions
"Turn left on Main St"
Business name
"Nash"
First name
"John"
Last name
"Doe"
Phone number
"+15555555555"
Latitude
37.774929
Longitude
-122.419416
Generic serializer for location used in many endpoints.
Show child attributes
Location ID
"loc_01234567890"
Address
"1600 Amphitheatre Parkway"
Formatted address
"1600 Amphitheatre Parkway"
Address city
"Mountain View"
Address country
"US"
Timezone ID
"America/Los_Angeles"
Timezone name
"Pacific Time"
Address number
"1600"
Address formatted street
"Amphitheatre Parkway"
Address county
"Santa Clara"
Address state
"CA"
Address zip
"94043"
Instructions
"Turn left on Main St"
Business name
"Nash"
First name
"John"
Last name
"Doe"
Phone number
"+15555555555"
Latitude
37.774929
Longitude
-122.419416
Description
"Package description"
Tags
["Alcohol"]Package delivery mode
"now"
Pickup start time
"2021-01-01T00:00:00Z"
Pickup end time
"2021-01-01T00:00:00Z"
Dropoff start time
"2021-01-01T00:00:00Z"
Dropoff end time
"2021-01-01T00:00:00Z"
Tax in cents
100
Service fee in cents
100
External identifier
"mini-mart-order-99"
Minimum vehicle size required for the package. Allowed values: ['any', 'bike', 'motorbike', 'cargobike', 'sedan', 'car', 'suv', 'pickup_truck', 'pickup', 'van', 'large_van', 'extra_large_van', 'truck']
any, bike, motorbike, cargobike, sedan, car, suv, pickup_truck, pickup, van, large_van, extra_large_van, truck "car"
Pickup store location ID
"store_01234567890"
Pickup store location external ID
"0123"
Dropoff store location ID
"store_01234567890"
Driving metrics (distance in meters, duration in seconds)
{ "distance": 100, "duration": 100 }Value
100
Tax
100
Service fee
100
Weight
100
Dimensions
{
"height": 100,
"length": 100,
"width": 100
}Items
Show child attributes
The merchant ID of the item
"abc-123"
The description of the item
"A box of books"
The quantity of the item
2
The dimensions of the item
Show child attributes
The height of the item in centimeters (cm)
10
The width of the item in centimeters (cm)
12
The depth of the item in centimeters (cm)
14
{ "depth": 14, "height": 10, "width": 12 }The weight of the item in kilograms (kg)
1.5
The value of the item in cents
1000
The nested sub-items
Show child attributes
The merchant ID of the item
"abc-123"
The description of the item
"A box of books"
The quantity of the item
2
The dimensions of the item
Show child attributes
The height of the item in centimeters (cm)
10
The width of the item in centimeters (cm)
12
The depth of the item in centimeters (cm)
14
{ "depth": 14, "height": 10, "width": 12 }The weight of the item in kilograms (kg)
1.5
The value of the item in cents
1000
The SKU of the sub-item
Substitution information for the sub-item
Show child attributes
Substitution preference: refund or substitute
Source of substitution, e.g., merchant, customer
List of substitute items
Show child attributes
The ID of the substitute item
The SKU of the substitute item
The quantity of the substitute item
The nested sub-items
[
{
"count": 1,
"description": "Item 1",
"valueCents": 100
}
]Reference ID
"mini-mart-order-99"
Package metadata
{ "key": "value" }{ "packages": [] }Route
Show child attributes
Unique identifier for the route.
"rte_JphRWDiEosGpXuxwgaYfY3"
Type of the route, indicating the pickup/dropoff structure.
"SINGLE_PICKUP_MULTIPLE_DROPOFFS"
Ordered list of stops included in the route.
Show child attributes
Type of the stop.
"PICKUP"
List of object IDs (e.g., order IDs, store location IDs) associated with this stop.
[
"ord_Qr5bVt8WiByGh66z2g7xEu",
"ord_WJFuooSiRvFCaceGZjpbqs"
]Estimated arrival time at the stop (UTC).
"2025-04-25T03:27:00"
Estimated departure time from the stop (UTC).
"2025-04-25T03:30:00"
Estimated service time spent at the stop (in seconds).
360
Distance traveled from the previous stop (in meters).
3376
Travel duration from the previous stop (in seconds).
420
Dispatched Job ID of this route
"job_1234567890abcdef12345678"
External Route ID.
"rte_JphRWDiEosGpXuxwgaYfY3"
Additional metadata for the route.
{
"priority": "high",
"source": "optimization_engine"
}