Get a Delivery
delivery Query
There are two ways to retrieve information for a delivery.
The delivery query used to get information about a specific delivery (you must provide the
delivery id from the bookDelivery endpoint).
The deliveries query allows you to list all the deliveries attached to your account.
query {
delivery(id: "del_3XPWMR6GC2") {
id
createdAt
distance
price
estimatedTravelTime
deliveryMethod
deliveredAt
deliveryMeta {
dropoffNote
pickupNote
poNumber
orderNumber
}
deliveryStatus {
name
code
}
origin {
name
addressLine1
addressLine2
city
state
postalCode
latitude
longitude
}
destination {
name
addressLine1
addressLine2
city
state
postalCode
latitude
longitude
}
driver {
firstName
lastName
phoneNumber
profileImageUrl
lastKnownLocation {
latitude
longitude
}
}
images
trackingUrl
cancellationReason
}
}
See Cancellation reasons for the full list. When the delivery is not canceled, it is null.
Response
The response includes the fields you request in the query. See the delivery query for the full list of available attributes.
Response Body
{
"data": {
"delivery": {
"id": "del_3XPWMR6GC2",
"createdAt": "2019-12-04T16:10:59.098-08:00",
"distance": "13060",
"price": "2637",
"estimatedTravelTime": "1504",
"deliveryMethod": "car",
"deliveredAt": null,
"deliveryMeta": {
"dropoffNote": "",
"pickupNote": "",
"poNumber": "",
"orderNumber": ""
},
"deliveryStatus": {
"name": "Pending",
"code": "pending"
},
"origin": {
"name": "3665 Hughes Avenue",
"addressLine1": "3665 Hughes Ave",
"addressLine2": "",
"city": "Los Angeles",
"state": "CA",
"postalCode": "90034",
"latitude": "34.02577",
"longitude": "-118.401021"
},
"destination": {
"name": "1129 West Washington Boulevard",
"addressLine1": "1129 W Washington Blvd",
"addressLine2": "",
"city": "Los Angeles",
"state": "CA",
"postalCode": "90015",
"latitude": "34.03943",
"longitude": "-118.282125"
},
"driver": {
"firstName": "Asif",
"lastName": "Ahmed",
"phoneNumber": "+15053213265",
"profileImageUrl": null
"lastKnownLocation": {
"latitude": 34.01854991382614,
"longitude": -118.40279246866258
}
},
"images": [],
"trackingUrl": "https://app.curri.com/track/C-jkK3BwRapvG2Le3gBKXrz5AY8e1ODd"
}
}
}