# Returns

Array of [order details](https://docs.shipday.com/reference/delivery-order-object) object `object`

## Child attributes of the order details object

> **orderId `Integer`**  
> Unique identifier for this order  
> ***  
> **orderNumber `String`**  
> Order reference of customer platform  
> ***  
> **companyId `Integer`**  
> Company identifier associated with the order  
> ***  
> **areaId `Integer`**  
> Area identifier where the order is placed  
> ***  
> **customer `Object`**  
> Customer information containing name, address, contact details and location coordinates  
> ***  
> **restaurant `Object`**  
> Restaurant information including id, name, address, contact details and location coordinates  
> ***  
> **assignedCarrier `Object`**  
> Details of the carrier assigned to deliver the order including personal info, contact details and status  
> ***  
> **distance `Number`**  
> Distance between restaurant and customer location in miles/kilometers  
> ***  
> **activityLog `Object`**  
> Timeline of order activities including placement, pickup, delivery times and expectations  
> ***  
> **costing `Object`**  
> Order cost breakdown including total cost, delivery fee, tip, discount, tax and cash tip  
> ***  
> **paymentMethod `String`**  
> Method of payment used for the order (e.g., CASH, CARD, ONLINE)  
> ***  
> **orderItems `Array`**  
> List of items ordered, each containing name, quantity and unit price  
> ***  
> **assignedCarrierId `Integer`**  
> ID of the carrier assigned to this order (-1 if no carrier assigned)  
> ***  
> **orderStatus `Object`**  
> Current status of the order including completion state, acceptance status and order state  
> ***  
> **trackingLink `String`**  
> URL for tracking the order delivery progress (null if not available)  
> ***  
> **feedback `String`**  
> Customer feedback or comments about the order (null if no feedback provided)  
> ***  
> **schedule `Boolean`**  
> Indicates whether the order is scheduled for future delivery  
> ***  
> **parentId `Integer`**  
> Parent order identifier for linked orders (0 if no parent order)  
> ***  
> **etaTime `String`**  
> Estimated time of arrival for order delivery  
> ***  
> **deliveryInstruction `String`**  
> Special delivery instructions from customer (null if no instructions provided)  
> ***

### Example Order

```json
[
  {
    "orderId": 20625,
    "orderNumber": "7568",
    "companyId": 409,
    "areaId": 406,
    "customer": {
      "name": "Scarlett",
      "address": "173A, East Kafrul, Dhaka - 1206",
      "phoneNumber": "+14157537081",
      "emailAddress": "scarlett.evana@gmail.com",
      "latitude": 37.735563,
      "longitude": -122.502288
    },
    "restaurant": {
      "id": 2322323,
      "name": "Thai Cottage Restaurant",
      "address": "4041 Judah St, San Francisco, CA 94122, United States",
      "phoneNumber": "+14155665311",
      "latitude": 37.760447,
      "longitude": -122.5055599
    },
    "assignedCarrier": {
      "id": 30309,
      "personalId": null,
      "name": "Steve",
      "codeName": null,
      "phoneNumber": "+123424233",
      "companyId": null,
      "areaId": null,
      "isOnShift": true,
      "email": "steve93@gmail.com",
      "carrierPhoto": "https://s3-us-west-2.amazonaws.com/qt.com.dashboard.profile.driver/somelinktothecarrier.jpg",
      "isActive": true
    },
    "distance": 2.011,
    "activityLog": {
      "placementTime": "2020-11-29T11:43:59",
      "expectedPickupTime": "12:12",
      "expectedDeliveryDate": "2020-11-29",
      "expectedDeliveryTime": "12:42",
      "assignedTime": null,
      "startTime": "2020-11-30T13:41:07",
      "pickedUpTime": "2020-12-01T05:43:15",
      "arrivedTime": "2020-12-01T05:43:15",
      "deliveryTime": "2020-12-01T05:43:15"
    },
    "costing": {
      "totalCost": 29.8,
      "deliveryFee": 2.5,
      "tip": 0,
      "discountAmount": 0,
      "tax": 1.3,
      "cashTip": 0
    },
    "paymentMethod": "CASH",
    "orderItems": [
      {
        "name": "Pad Thai",
        "quantity": 2,
        "unitPrice": 13
      }
    ],
    "assignedCarrierId": -1,
    "orderStatus": {
      "incomplete": false,
      "accepted": true,
      "orderState": "ALREADY_DELIVERED"
    },
    "trackingLink": null,
    "feedback": null,
    "schedule": false,
    "parentId": 0,
    "etaTime": "",
    "deliveryInstruction": null
  }
]
```
