Skip to main content

List Deliveries

deliveries Query

query {
deliveries {
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
}
images
}
}

Response

attributedescription
idID of the delivery
priceFee for the delivery in cents

Response Body

{
"data": {
"deliveries": [{
"id": "del_CVNDR5F59Y",
"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
},
"images": []
}]
}
}