---
title: "Request order details."
method: GET
path: "/order/fetch_data"
tags: ["Orders|Order"]
---

# Request order details.

`GET /order/fetch_data`

This endpoint enables the retrieval of comprehensive order information by supplying the internal `id`. This
information includes `performanceFields`, `orderLog`, `tourInfo` and `orderQualification`. Within geoCapture,
performance fields denote particular metrics or parameters used for defining and quantifying the output or
efficiency of tasks and services within the platform. The order log provides details of status changes within the
order. The `tourInfo` references the tour in which the order is scheduled. The `orderQualification` refers to the
specific skills and abilities required for employees or teams to effectively complete assigned tasks or projects,
ensuring that the right expertise is matched to each job requirement. The opening hours in the `orderDetails`
field consist of the day of the week as the key and the corresponding start and end times expressed as a string.

## Query parameters

- `id` integer, required
- `order_log` boolean
- `order_qualification` boolean
- `tour_info` boolean

## Response `200`

Success Response:

- StandardOrderFetchDataResponse
  - `orderDetails` OrderFetchDataResponseOrderDetailsItem
    - `reference` string — geoCapture order number.
    - `externalReference` string — external reference.
    - `customerOrderReference` string — customer order reference.
    - `offerReference` string — offer reference.
    - `orderType` string — order type.
    - `orderDate` string — Represents a date and a time. (ISO 8601) ICU-Format: yyyy-MM-dd'T'HH:mm:ssxxx
    - `externalAddressId` string — external customer id.
    - `name` string — name.
    - `name2` string — name2.
    - `name3` string — name3.
    - `street` string — street.
    - `zipCode` string — zip code.
    - `city` string — city.
    - `provinceCode` string — province code.
    - `countryCode` string — country code.
    - `contactPersonName` string — contact person name.
    - `contactPersonEmail` string — contact person email.
    - `contactPersonPhoneNumber` string — contact person phone number.
    - `contactPersonMobileNumber` string — contact person mobile number.
    - `latLng` number[] — Represents a geo coordinate. An array of two double values, representing the latitude and longitude.
    - `duration` integer — duration.
    - `text` string — order description.
    - `planningType` string — Order Planning Type.
    - `assignedTrackerId` integer — Tracker to which the order is assigned.
    - `assignedEmployeeId` integer — Employee to which the order is assigned.
    - `plannedDate` string — Represents a date and a time. (ISO 8601) ICU-Format: yyyy-MM-dd'T'HH:mm:ssxxx
    - `dueDate` string — Represents a date and a time. (ISO 8601) ICU-Format: yyyy-MM-dd'T'HH:mm:ssxxx
    - `openingHours` DynamicWeekdayTime — Represents dynamic weekday times ~~~ JSON format: ~~~ {"MO":[["08:00","13:00"],["15:00","18:00"]],"WE":[["08:00","13:00"],["15:00","18:00"]],"FR":[["08:00","13:00"],["15:00","18:00"]]} ~~~
      - `MO` array[]
        - string[] — Represents dynamic weekday times
      - `TU` array[]
        - string[] — Represents dynamic weekday times
      - `WE` array[]
        - string[] — Represents dynamic weekday times
      - `TH` array[]
        - string[] — Represents dynamic weekday times
      - `FR` array[]
        - string[] — Represents dynamic weekday times
      - `SA` array[]
        - string[] — Represents dynamic weekday times
      - `SU` array[]
        - string[] — Represents dynamic weekday times
    - `createdAt` string — Represents a date and a time. (ISO 8601) ICU-Format: yyyy-MM-dd'T'HH:mm:ssxxx
  - `orderQualification` object[] — The qualifications necessary for the order.
    - `name` string — The order qualification.
    - `type` string — The order qualification type.
  - `performanceFields` object[] — The orders performance fields.
    - `name` string — The name of the performance field.
    - `value` number — The value of the performance field.
    - `unit` string — The name of the unit associated with the performance field.
  - `orderLog` object[] — The order log.
    - `status` string — The order status event.
    - `time` string — Represents a date and a time. (ISO 8601) ICU-Format: yyyy-MM-dd'T'HH:mm:ssxxx
    - `name` string — The name of the user/employee that caused the event.
  - `tourInfo` OrderFetchDataResponseDispoTourItem
    - `id` integer — The tour id.
    - `type` string — The tour type.
    - `district` string — The tour district.
    - `team` string — The team for the tour.
    - `reference` integer — The tour reference.
    - `status` string — The tour status.
    - `startDate` string — Represents a date and a time. (ISO 8601) ICU-Format: yyyy-MM-dd'T'HH:mm:ssxxx
    - `endDate` string — Represents a date and a time. (ISO 8601) ICU-Format: yyyy-MM-dd'T'HH:mm:ssxxx
    - `numStops` integer — The amount of stops of this tour.
    - `numOrders` integer — The amount of orders of this tour.
    - `distance` integer — The distance of this tour in meters.
  - `schedule` OrderFetchDataResponseOrderScheduleItem
    - `plannedArrivalAt` string — Represents a date and a time. (ISO 8601) ICU-Format: yyyy-MM-dd'T'HH:mm:ssxxx
    - `estimatedArrivalAt` string — Represents a date and a time. (ISO 8601) ICU-Format: yyyy-MM-dd'T'HH:mm:ssxxx
    - `navigationStartAt` string — Represents a date and a time. (ISO 8601) ICU-Format: yyyy-MM-dd'T'HH:mm:ssxxx
    - `realArrivalAt` string — Represents a date and a time. (ISO 8601) ICU-Format: yyyy-MM-dd'T'HH:mm:ssxxx
    - `finishedAt` string — Represents a date and a time. (ISO 8601) ICU-Format: yyyy-MM-dd'T'HH:mm:ssxxx
    - `estimatedDepartureAt` string — Represents a date and a time. (ISO 8601) ICU-Format: yyyy-MM-dd'T'HH:mm:ssxxx
    - `realDepartureAt` string — Represents a date and a time. (ISO 8601) ICU-Format: yyyy-MM-dd'T'HH:mm:ssxxx
    - `avisSendAt` string — Represents a date and a time. (ISO 8601) ICU-Format: yyyy-MM-dd'T'HH:mm:ssxxx
    - `avisAt` string — Represents a date and a time. (ISO 8601) ICU-Format: yyyy-MM-dd'T'HH:mm:ssxxx

---

[API](https://skmtc.net/geocapture/apis/geocapture-api.md) · [All operations](https://skmtc.net/geocapture/apis/geocapture-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/geocapture/geocapture-api/versions/869b05603541/schema)
