delivery orders
Attributes
orderId Integer
Unique identifier for this order
orderNumber String
Order reference of customer platform
companyId Integer
Identifier of the company to which this order belong
areaId Integer
Identifier of the operational area when the company is operating their delivery
customer Object
Customer associated with the order
Child attributes
name
StringName of the customer
address
StringAddress of the customer
phoneNumber
StringPhone number of the customer
emailAddress
StringEmail address of the customer
latitude
DoubleCustomer location latitude value
longitude
DoubleCustomer location longitude value
restaurant Object
Restaurant associated with the order
Child attributes
id
IntegerUnique Identifier specifying the restaurant
name
StringName of the restaurant
address
StringAddress of the restaurant
phoneNumber
StringPhone number of the restaurant
latitude
DoubleRestaurant location latitude value
longitude
DoubleRestaurant location longitude value
assignedCarrier Object
Assigned Carrier information for the order ( null if not assigned yet)
Child attributes
id
IntegerUnique Identifier specifying the carrier
personalId
IntegerProvided id from the user (
nullif not available )
name
StringName of the carrier
codeName
StringProvided code name for the carrier
phoneNumber
StringPhone number of the carrier
companyId
IntegerUnique identifier specifying the company
areaId
IntegerUnique identifier specifying the area
isOnShift
BooleanIndication for the carrier if he/she is on shift
StringEmail Address of the carrier
carrierPhoto
StringCarrier photo link
isActive
BooleanIndication for the carrier if he/she is active
distance Double
Calculated distance between pickup and delivery address
activityLog Object
Order related events log
Child attributes
placementTime
StringOrder placement time (must be in UTC format)
expectedPickupTime
StringExpected order pickup time (hh:mm format)
expectedDeliveryDate
StringExpected order delivery date (yyyy-mm-dd)
expectedDeliveryTime
StringExpected order delivery time (hh:mm format)
assignedTime
StringOrder assignment time (must be in UTC format)
startTime
StringOrder start time (must be in UTC format)
pickedUpTime
StringOrder picked up time from restaurant (must be in UTC format)
arrivedTime
StringArrival time to the customer (must be in UTC format)
deliveryTime
StringOrder delivery time (must be in UTC format)
costing Object
Order costing details
Child attributes
totalCost
DoubleTotal cost of the order items
deliveryFee
DoubleDelivery fee of the order
tip
DoubleTip amount for the order
discountAmount
DoubleDiscount amount for the order
tax
DoubleTax amount for the ordered items
cashTip
DoubleCash tip for the order
paymentMethod String
Payment method for the order
orderItems Array
Array of Order item objects
Ordered Item object child attributes
name
StringName of the order item
quantity
IntegerQuantity of the order item
unitPrice
DoublePrice of the order item per unit
assignedCarrierId Integer
Assigned carrier's ID
orderStatus Object
Order status info
Child attributes
incomplete
BooleanBoolean value to indicate if the order is incomplete
accepted
BooleanBoolean value to indicate if the order is accepted
orderState
StringOrder's current state
trackingLink String
Customer tracking url link
feedback String
Feedback of the customer
schedule Boolean
Indication for the order if it is a scheduled order or not
parentId Integer
Parent ID for the order
etaTime String
Estimated time of arrival for the order
pickupInstruction String
Pickup related instruction for the order
deliveryInstruction String
Delivery Instruction for the order
proofOfDelivery Object
Proof of delivery details
Child attributes
signaturePath
StringURL of the signature or POD image
latitude
DoubleLatitude value where driver completed the delivery
longitude
DoubleLongitude value where driver completed the delivery
imageUrls
ArrayArray of proof of delivery image URL strings
| Supported orderState Enum values |
|---|
| ACTIVE |
| NOT_ASSIGNED |
| NOT_ACCEPTED |
| NOT_STARTED_YET |
| STARTED |
| PICKED_UP |
| READY_TO_DELIVER |
| ALREADY_DELIVERED |
| FAILED_DELIVERY |
| INCOMPLETE |
Note: ACTIVE orders are those which are neither ALREADY_DELIVERED nor FAILED_DELIVERY nor INCOMPLETE
Delivery Order Object
{
"orderId": 20625,
"orderNumber": "7568",
"companyId": 409,
"areaId": 406,
"customer": {
"name": "William Jacob",
"address": "CVV4+C7 Palo Alto, California, United States",
"phoneNumber": "+16504135349",
"emailAddress": "jacob.william@gmail.com",
"latitude": 32.7875632,
"longitude": -170.3874568
},
"restaurant": {
"id":36726661,
"name": "Garden fresh Palo Alto",
"address": "460 Ramona St, Palo Alto, CA 94301, United States",
"phoneNumber": "+16504632332",
"latitude": 32.8069245,
"longitude": -170.368697
},
"assignedCarrier": {
"id": 30309,
"personalId": null,
"name": "John Doe",
"codeName": null,
"phoneNumber": "+12342342330",
"companyId": null,
"areaId": null,
"isOnShift": null,
"email": null,
"carrierPhoto": "https://s3-us-west-2.amazonaws.com/qt.com.dashboard.profile.driver/somelinktothecarrierphoto.jpg",
"isActive": null
},
"distance": 1.78772,
"activityLog": {
"placementTime": "2019-11-29T11:43:59",
"expectedPickupTime": "12:12",
"expectedDeliveryDate": "2019-11-29",
"expectedDeliveryTime": "12:42",
"assignedTime": "2019-11-30T13:40:07",
"startTime": "2019-11-30T13:41:07",
"pickedUpTime": "2019-12-01T05:43:15",
"arrivedTime": "2019-12-01T05:43:15",
"deliveryTime": "2019-12-01T05:43:15"
},
"costing": {
"totalCost": 30.45,
"deliveryFee": 0,
"tip": 0,
"discountAmount": 0,
"tax": 1.45,
"cashTip": 0
},
"paymentMethod": "CASH",
"orderItems": [
{
"name": "Grilled Salmon Fillet",
"quantity": 2,
"unitPrice": 14.50
}
],
"assignedCarrierId": -1,
"orderStatus": {
"incomplete": false,
"accepted": true,
"orderState": "ALREADY_DELIVERED"
},
"trackingLink": null,
"feedback": 5,
"schedule": false,
"parentId": 0,
"etaTime": "",
"pickupInstruction": "Will be ready in 15 minutes",
"deliveryInstruction": "Please, Knock at the door",
"proofOfDelivery": {
"signaturePath": "https://s3-us-west-2.amazonaws.com/qt.com.dashboard.order.signature/a7dc65d0e8d44ef397e705512beb913d.jpg",
"latitude": 23.8,
"longitude": 90.36,
"imageUrls": ["https://s3-us-west-2.amazonaws.com/qt.com.dashboard.order.signature/a7dc65d0e8d44ef397e705512beb913d.jpg"]
}
}
Updatedabout 1 year ago
Did this page help you?
Yes
No
Updatedabout 1 year ago