---
agentTools:
  projectIndex: https://docs.qdelivery.app/llms.txt
---

# Create

When you create an order in the system, the "id" value in the returned JSON response is the unique ID value of the order in QDelivery. You must keep this value on your database to be able to take action on the order later.

The **action\_slug** value and the **integration\_id** value are subjected to uniqueness checks together. You cannot create 2 tasks with the same action\_slug and integration\_id. This way, when you make a request, you will not receive an error; you will receive the current task information.

## Sample Request Data

**for assignment types: pool, capacity\_aware, capacity\_unaware and selected\_courier**

```json
{
  "hub_id": 1,
  "integration_id": 22,
  "action_slug": "drop_off",
  "starts_at": "2022-02-04T10:00:00.000000Z",
  "ends_at": "2022-02-04T11:00:00.000000Z",
  "quantity": 1,
  "unit_quantity": 0,
  "service_time": 10,
  "response_time": 0,
  "notes": "This is a demo order",
  "recipient_notes": "If I am not home, please deliver to my next door neighbor.",
  "priority": 0,
  "locked": false,
  "confirmed": true,
  "origin": {
    "hub_id": 1
  },
  "destination": {
    "address": "Rue des Pirredrittes 17, 3971 Crans-Montana, Switzerland",
    "address_building": "Apartment A",
    "address_floor": "3",
    "address_apartment": "Door 6",
    "address_description": "The small house across the supermarket",
    "lat": 41.04608914,
    "lng": 28.9996297,
    "name": "Natalia Schuler",
    "phone_country": "CH",
    "phone": "4120000000",
    "allow_unresolved": false
  },
  "requirements": {
    "delivery_code": false,
    "delivery_code_mandatory": false,
    "pod_photo": false,
    "pod_photo_mandatory": false
  },
  "assignment": {
    "type": "capacity_aware",
  },
  "assignment_options": {
    "team_id_by_polygon": false,
    "courier_online_status": "all",
    "obligation": "mandatory",
    "courier_duty_status": "idle",
    "distribution": "balanced",
    "min_capacity": 4
  }
}
```

**Sample data for slot assignment type (assignment.type):**:

If the slot\_starts\_at and slot\_ends\_at values are the same as starts\_at and ends\_at, you do not need to send them. When you send slot\_auto\_closing\_time (minutes), the slot automatically closes one minute before the starts\_at/slot\_starts\_at time and the tasks are routed and assigned to the drivers. When you send a slot value, the slot\_options field in the data is taken into account.

```json
{
  "hub_id": 1,
  "integration_id": 22,
  "action_slug": "drop_off",
  "starts_at": "2022-02-04T10:00:00.000000Z",
  "ends_at": "2022-02-04T11:00:00.000000Z",
  "slot": "2022020410001100",
  "slot_starts_at": "2022-02-04T10:00:00.000000Z",
  "slot_ends_at": "2022-02-04T11:00:00.000000Z",
  "slot_auto_closing_time": 15,
  "quantity": 1,
  "service_time": 10,
  "response_time": 0,
  "notes": "This is a demo order",
  "recipient_notes": "If I am not home, please deliver to my next door neighbor.",
  "priority": 0,
  "locked": false,
  "confirmed": true,
  "origin": {
    "hub_id": 1
  },
  "destination": {
    "address": "Rue des Pirredrittes 17, 3971 Crans-Montana, Switzerland",
    "address_building": "Apartment A",
    "address_floor": "3",
    "address_apartment": "Door 6",
    "address_description": "The small house across the supermarket",
    "lat": 41.04608914,
    "lng": 28.9996297,
    "name": "Natalia Schuler",
    "phone_country": "CH",
    "phone": "5360000000",
    "allow_unresolved": false
  },
  "requirements": {
    "delivery_code": false,
    "delivery_code_mandatory": false,
    "pod_photo": false,
    "pod_photo_mandatory": false
  },
  "assignment": {
    "type": "slot",
  },
  "assignment_options": {
    "team_id_by_polygon": false,
    "courier_online_status": "all",
    "obligation": "mandatory",
    "courier_duty_status": "idle",
    "distribution": "balanced",
    "min_capacity": 4
  },
  "slot_options": {
    "pool": false,
    "tour": true,
    "dispatch_early": false,
    "from_hub": true,
    "accelerate": false,
    "unassigned_strategy": "nearest_plan"
  }
}
```

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Integration",
    "version": "1.6.1"
  },
  "servers": [
    {
      "url": "https://api.dev.qdelivery.app/api/integration"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/tasks": {
      "post": {
        "summary": "Create",
        "description": "",
        "operationId": "create-task",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "hub_id",
                  "action_slug",
                  "starts_at",
                  "ends_at"
                ],
                "properties": {
                  "hub_id": {
                    "type": "string",
                    "description": "This is the ID where the task/order belongs. The location of the order (store, warehouse, etc.) and the outlet store (origin) may be different, and the shipment may be physically in different stores. Therefore, this field represents the main owner of the order. You can get the location list (and ID values) by making a request to the Hubs > Index endpoint."
                  },
                  "integration_id": {
                    "type": "string",
                    "description": "Your order number. The order number must be unique along with the action_slug value. For example, there cannot be two drop_off orders as ORD123, but there can be one drop_off and one pickup. Although this is the case, we recommend that you provide a unique integration_id for each order."
                  },
                  "tracking_code": {
                    "type": "string",
                    "description": "The tracking number belongs to you. If you do not send it, it will be created automatically by us. Customers (recipient/destination) will track the delivery via this code."
                  },
                  "action_slug": {
                    "type": "string",
                    "description": "You must provide drop_off for delivery to the customer and pickup for return (pickup from the customer). For return missions, you must give the address where the return will be received as the origin and the address where you will deliver the return as the destination, that is, it should be the opposite of normal delivery.",
                    "default": "drop_off"
                  },
                  "starts_at": {
                    "type": "string",
                    "description": "The earliest date on which the order will be processed. The date must be in time format. When you do not send with Timezone, UTC is assumed. You can send as ISO, ISO8601, Atom and DateTimeString. Samples; 2019-02-01T03:45:00+03:00, 2019-02-01T03:45:00.612584Z, 2019-02-01 00:45:00",
                    "format": "date"
                  },
                  "ends_at": {
                    "type": "string",
                    "description": "The latest date by which the order must be delivered and completed. The date must be in time format. When you do not send with Timezone, UTC is assumed. You can send as ISO, ISO8601, Atom and DateTimeString. Samples; 2019-02-01T03:45:00+03:00, 2019-02-01T03:45:00.612584Z, 2019-02-01 00:45:00",
                    "format": "date"
                  },
                  "slot": {
                    "type": "string",
                    "description": "Sample: 2022041510001100. When you enter a slot value and select that slot as the assignment type, the orders you send are grouped under this slot value and made ready to be routed."
                  },
                  "slot_starts_at": {
                    "type": "string",
                    "description": "If it is different from the starts_at field, provide it. The date format and rules are the same as for the starts_at field. It is activated if the slot area is filled.",
                    "format": "date"
                  },
                  "slot_ends_at": {
                    "type": "string",
                    "description": "If it is different from the starts_at field, provide it. The date format and rules are the same as for the starts_at field. It is activated if the slot area is filled.",
                    "format": "date"
                  },
                  "slot_auto_closing_time": {
                    "type": "integer",
                    "description": "When a time is given in minutes, the slot is automatically closed a given minute before the start time. For example, if you give the value 30 for an order starting at 2019-02-01T10:00:00+0300, this slot will be closed at 09:30 according to the GMT+3 time zone (routing will take place at 09:30 and routes will be assigned to drivers).",
                    "format": "int32"
                  },
                  "quantity": {
                    "type": "integer",
                    "description": "Order quantity. Provide as 1.",
                    "format": "int32"
                  },
                  "unit_quantity": {
                    "type": "integer",
                    "description": "The unit occupied by the order (weight, volume, etc.). Likewise, when unit capacity is defined on the driver, you limit the orders that the driver can carry according to the given unit. To not use it, provide 0.",
                    "default": 0,
                    "format": "int32"
                  },
                  "service_time": {
                    "type": "integer",
                    "description": "The additional time provided to the courier to deliver the order from the delivery point and return to their vehicle after reaching the delivery point. It is included when routing. Especially in large building complexes, it may take 20 minutes for the courier to deliver a small shipment to the customer from the entrance gate and return to their vehicle. For jobs requiring installation, it may take more than 1 hour.",
                    "format": "int32"
                  },
                  "response_time": {
                    "type": "integer",
                    "description": "Response time for the courier to answer whether or not to accept a non-mandatory order. If the courier does not respond within this period, the request is transferred to the next courier. This feature is still under development; Send 0.",
                    "format": "int32"
                  },
                  "notes": {
                    "type": "string",
                    "description": "Manager notes (Not seen by customers)."
                  },
                  "recipient_notes": {
                    "type": "string",
                    "description": "Notes entered by the customer."
                  },
                  "priority": {
                    "type": "integer",
                    "description": "Order priority. Orders with high priority values are subject to procedures that will ensure their priority delivery. This field may cause undesirable results in routing. So do not use it unless absolutely necessary.",
                    "format": "int32"
                  },
                  "tags": {
                    "type": "array",
                    "description": "You can send it as [\"tag1\", \"tag2\"].",
                    "items": {
                      "type": "string"
                    }
                  },
                  "origin": {
                    "properties": {
                      "*": {
                        "type": "array",
                        "description": "Origin information."
                      },
                      "hub_id": {
                        "type": "integer",
                        "description": "If the origin point is a registered location, you can provide its ID. When you fill in this field, you do not need to provide other information.",
                        "format": "int32"
                      },
                      "address": {
                        "type": "string",
                        "description": "Required if origin.hub_id is not given. If the coordinates are not given, automatic analysis will occur, but you must provide district and province information to avoid analysis problems. The additional ZIP code provided greatly helps in analysis."
                      },
                      "address_building": {
                        "type": "string",
                        "description": "Building"
                      },
                      "address_floor": {
                        "type": "string",
                        "description": "Floor"
                      },
                      "address_apartment": {
                        "type": "string",
                        "description": "Apartment"
                      },
                      "address_description": {
                        "type": "string",
                        "description": "Address description"
                      },
                      "lat": {
                        "type": "number",
                        "description": "The decimal part should be 6 digits, example: 43.223643",
                        "format": "float"
                      },
                      "lng": {
                        "type": "number",
                        "description": "The decimal part should be 6 digits, example: 43.223643",
                        "format": "float"
                      },
                      "name": {
                        "type": "string",
                        "description": "Origin name. (Such as name or company/place name)"
                      },
                      "phone_country": {
                        "type": "string",
                        "description": "Country code (send TR, CH etc.)"
                      },
                      "phone": {
                        "type": "string",
                        "description": "Telephone. It should be one of the common formats such as 5360000000, 0536 000 00 00, +905360000000."
                      },
                      "allow_unresolved": {
                        "type": "boolean",
                        "description": "When the coordinates are not sent, the address analysis process is started to reach the coordinates from the address. If address resolution also fails, task creation fails. If this parameter is sent true, a task will be created even if address resolution fails, but it will not be included in any process. The coordinates are expected to be corrected later.",
                        "default": false
                      }
                    },
                    "required": [
                      "*"
                    ],
                    "type": "object"
                  },
                  "destination": {
                    "properties": {
                      "hub_id": {
                        "type": "integer",
                        "description": "If the destination point is a registered location, you can provide its ID. When you fill in this field, you do not need to provide other information.",
                        "format": "int32"
                      },
                      "address": {
                        "type": "string",
                        "description": "Required if destination.hub_id is not given. If the coordinates are not given, automatic analysis will occur, but you must provide district and province information to avoid analysis problems. The additional zip code provided greatly helps in analysis."
                      },
                      "address_building": {
                        "type": "string",
                        "description": "Building name/number"
                      },
                      "address_floor": {
                        "type": "string",
                        "description": "Floor number"
                      },
                      "address_apartment": {
                        "type": "string",
                        "description": "Daire no."
                      },
                      "address_description": {
                        "type": "string",
                        "description": "Address description"
                      },
                      "lat": {
                        "type": "number",
                        "description": "The decimal part should be 6 digits, example: 43.223643",
                        "format": "float"
                      },
                      "lng": {
                        "type": "number",
                        "description": "The decimal part should be 6 digits, example: 43.223643",
                        "format": "float"
                      },
                      "name": {
                        "type": "string",
                        "description": "Destination/recipient name (such as name or company/location name)"
                      },
                      "phone_country": {
                        "type": "string",
                        "description": "Required when destination.hub_id is not sent. (Send TR, CH, etc.)"
                      },
                      "phone": {
                        "type": "string",
                        "description": "Required when destination.hub_id is not sent. It should be one of the common formats such as 5360000000, 0536 000 00 00, +905360000000."
                      },
                      "allow_unresolved": {
                        "type": "boolean",
                        "description": "When the coordinates are not sent, the address analysis process is started to reach the coordinates from the address. If address resolution also fails, task creation fails. If this parameter is sent true, a task will be created even if address resolution fails, but it will not be included in any process. The coordinates are expected to be corrected later.",
                        "default": false
                      }
                    },
                    "required": [],
                    "type": "object",
                    "description": "Destination information"
                  },
                  "requirements": {
                    "properties": {
                      "custom_delivery_code": {
                        "type": "string",
                        "description": "This is the SMS code sent to the customer and required for delivery confirmation. If you are doing the SMS transaction yourself, you can enter the code you created here. Otherwise, leave it blank."
                      },
                      "delivery_code": {
                        "type": "boolean",
                        "description": "Request delivery code. To complete the transaction, the courier must enter the delivery code sent to the customer via SMS in his app.",
                        "default": false
                      },
                      "delivery_code_mandatory": {
                        "type": "boolean",
                        "description": "Delivery code is required. If delivery_code is true and this field is selected as true, the courier cannot complete the order without entering the delivery code.",
                        "default": false
                      },
                      "pod_photo": {
                        "type": "boolean",
                        "description": "Request photo proof.",
                        "default": false
                      },
                      "pod_photo_mandatory": {
                        "type": "boolean",
                        "description": "Proof photo is mandatory.",
                        "default": false
                      },
                      "dont_ring_the_bell": {
                        "type": "boolean",
                        "description": "Don't ring the bell.",
                        "default": false
                      },
                      "contactless": {
                        "type": "boolean",
                        "description": "Contactless delivery.",
                        "default": false
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "assignment": {
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "Assignment type/strategy. Possible values are; pool, capacity_aware, capacity_unaware, slot, selected_courier."
                      },
                      "courier_id": {
                        "type": "integer",
                        "description": "Required if assignment.type is \"selected_courier\".",
                        "format": "int32"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "type": "object",
                    "description": "Assignment procedures"
                  },
                  "assignment_options": {
                    "properties": {
                      "team_id": {
                        "type": "integer",
                        "description": "Team ID. If given, automatic courier selection occurs only within the given team.",
                        "format": "int32"
                      },
                      "courier_online_status": {
                        "type": "string",
                        "description": "The courier's internet connection status. It can take the values all, online, offline.",
                        "default": "all"
                      },
                      "obligation": {
                        "type": "string",
                        "description": "The courier's allowance to reject the order. Currently, only mandatory is supported, that is, the courier cannot refuse the order, they must carry it.",
                        "default": "mandatory"
                      },
                      "courier_duty_status": {
                        "type": "string",
                        "description": "Courier duty status. It can be all, on_duty, idle values. The on_duty value refers to couriers with orders in transit.",
                        "default": "idle"
                      },
                      "distribution": {
                        "type": "string",
                        "description": "balanced,adaptive",
                        "default": "balanced"
                      },
                      "min_capacity": {
                        "type": "integer",
                        "description": "It is mandatory if the distribution is adaptive.",
                        "format": "int32"
                      },
                      "courier_shift_status": {
                        "type": "string",
                        "description": "Courier working status. It can be the values of all, working, resting. Working refers to the couriers working that day.",
                        "default": "working"
                      },
                      "team_id_by_polygon": {
                        "type": "boolean",
                        "description": "When set to true, it automatically selects a team based on the delivery point. Teams’ polygons must be determined beforehand.",
                        "default": false
                      }
                    },
                    "required": [
                      "courier_online_status",
                      "obligation"
                    ],
                    "type": "object"
                  },
                  "slot_options": {
                    "properties": {
                      "pool": {
                        "type": "boolean",
                        "description": "Specifies whether to allow unassigned tasks to get into the pool.",
                        "default": true
                      },
                      "tour": {
                        "type": "boolean",
                        "description": "When true, the route is created so that the courier takes turns.",
                        "default": true
                      },
                      "dispatch_early": {
                        "type": "boolean",
                        "description": "When true, the route is created with the first task delivered at the slot start time.",
                        "default": false
                      },
                      "from_hub": {
                        "type": "boolean",
                        "description": "When true, a route is created so that the courier departs from a specific location; If false, the first order will be the origin point.",
                        "default": true
                      },
                      "accelerate": {
                        "type": "boolean",
                        "description": "When true, the speed of the vehicle increases by 10% and the route is created accordingly. It may cause unexpected results.",
                        "default": false
                      },
                      "unassigned_strategy": {
                        "type": "string",
                        "description": "It determines what to do if unassigned tasks are not wanted to get into the pool. The currently supported strategy is the nearest plan (nearest_plan: Unassigned tasks will be assigned to the courier of the nearest plan)",
                        "default": "nearest_plan"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "locked": {
                    "type": "boolean",
                    "description": "If true, the courier cannot perform any transactions. If you do not have a preliminary preparation phase and you want the courier to process the order as soon as it receives it, use false."
                  },
                  "confirmed": {
                    "type": "boolean",
                    "description": "If true, it means the courier confirmed the task. If you don't have a courier confirmation stage, send true."
                  },
                  "items": {
                    "type": "array",
                    "description": "task content (products etc.)",
                    "items": {
                      "properties": {
                        "integration_id": {
                          "type": "string",
                          "description": "Sipariş bazında benzersiz olmalıdır. Bir sipariş için aynı integration_id birden fazla kez gönderilemez."
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "notes": {
                          "type": "string"
                        },
                        "quantity": {
                          "type": "integer",
                          "format": "int32"
                        },
                        "currency": {
                          "type": "string",
                          "description": "TRY, USD, EUR"
                        },
                        "amount": {
                          "type": "integer",
                          "format": "int32"
                        }
                      },
                      "required": [
                        "integration_id",
                        "name"
                      ],
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"hub_id\": 1,\n\t\"obligation_slug\": \"mandatory\",\n\t\"quantity\": 0,\n\t\"service_time\": 0,\n\t\"response_time\": 0,\n\t\"tracking_code\": \"QD1-22104JO56XW\",\n\t\"integration_id\": \"22\",\n\t\"type_slug\": \"assignable\",\n\t\"status_id\": 3,\n\t\"status_at\": \"2022-04-15T09:15:28.000000Z\",\n\t\"status_category_slug\": \"assigned\",\n\t\"owner_id\": 2,\n\t\"courier_id\": 275,\n\t\"team_id\": null,\n\t\"origin_hub_id\": 1,\n\t\"destination_hub_id\": null,\n\t\"origin_address\": \"Kozyatağı Mah, Şakacı Sk. Selimoğlu Residence No:14\\/1-A, 34742 Kadıköy\\/İstanbul\",\n\t\"origin_address_building\": null,\n\t\"origin_address_floor\": null,\n\t\"origin_address_apartment\": null,\n  \"origin_address_description\": null,\n\t\"origin_phone_country\": null,\n\t\"origin_phone\": null,\n\t\"origin_name\": \"Anadolu Depo\",\n\t\"origin_lat\": 40.971301,\n\t\"origin_lng\": 29.094388,\n\t\"destination_address\": \"Vişnezade, Hüsrev Gerede Cd. No:15, 34357 Beşiktaş\\/İstanbul\",\n\t\"destination_address_building\": null,\n\t\"destination_address_floor\": null,\n\t\"destination_address_apartment\": null,\n  \"destination_address_description\": null,\n\t\"destination_phone_country\": null,\n\t\"destination_phone\": null,\n\t\"destination_name\": \"Avrupa Mağazası\",\n\t\"destination_lat\": 41.04608914,\n\t\"destination_lng\": 28.9996297,\n\t\"ends_at\": \"2022-02-04T10:11:00.000000Z\",\n\t\"starts_at\": \"2022-02-04T10:00:00.000000Z\",\n\t\"requires_delivery_code\": false,\n\t\"requires_delivery_code_mandatory\": false,\n\t\"requirements_delivery_code\": null,\n\t\"requires_pod_photo\": false,\n\t\"requires_pod_photo_mandatory\": false,\n  \"required_dont_ring_the_bell\": false,\n  \"requires_contactless\":false,\n\t\"notes\": null,\n\t\"channel\": \"api\",\n\t\"provider_id\": null,\n\t\"is_origin_resolved\": false,\n\t\"is_destination_resolved\": false,\n\t\"contents\": [],\n\t\"payment_type\": null,\n\t\"foreign_carrier\": null,\n\t\"handled_by_foreign_carrier\": false,\n\t\"route_order\": 0,\n\t\"priority\": 0,\n\t\"slot\": null,\n\t\"rating\": 0,\n\t\"comment\": null,\n\t\"distance\": 11,\n\t\"duration\": 30,\n\t\"was_finalized_duly\": true,\n\t\"was_delayed\": false,\n\t\"company_id\": 1,\n\t\"updated_at\": \"2022-04-15T09:15:28.000000Z\",\n\t\"created_at\": \"2022-04-15T09:15:28.000000Z\",\n\t\"id\": 1,\n\t\"courier\": {\n\t\t\"id\": 275,\n\t\t\"name\": \"Yağız Akar\",\n\t\t\"phone_country\": \"TR\",\n\t\t\"phone\": \"+905439076609\",\n\t\t\"courier_detail\": {\n\t\t\t\"code\": \"KN5ITS\",\n\t\t\t\"vehicle_license_plate\": \"34G2Z515\",\n\t\t\t\"vehicle_type\": \"Bicycle\",\n\t\t\t\"vehicle_type_slug\": \"bicycle\",\n\t\t\t\"vehicle_description\": null,\n\t\t\t\"vehicle_color\": \"Siyah\",\n\t\t\t\"capacity\": 19,\n\t\t\t\"pool_capacity\": 8,\n\t\t\t\"vehicle_icon\": \"https:\\/\\/qdelivery-api.test\\/images\\/vehicle-icons\\/bicycle.png\"\n\t\t},\n\t\t\"courier_location\": {\n\t\t\t\"is_online\": true,\n      \"is_working\": true,  \n\t\t\t\"lat\": 40.95769013,\n\t\t\t\"lng\": 29.09772308,\n\t\t\t\"last_seen_at\": \"2022-04-15T09:05:13.000000Z\"\n\t\t}\n\t},\n\t\"team\": null,\n\t\"hub\": null,\n\t\"status\": {\n\t\t\"id\": 3,\n\t\t\"name\": \"Atandı\"\n\t},\n\t\"status_logs\": [\n\t\t{\n\t\t\t\"id\": 1,\n\t\t\t\"task_id\": 1,\n\t\t\t\"courier_id\": 275,\n\t\t\t\"status_id\": 3,\n\t\t\t\"status_category_slug\": \"assigned\",\n\t\t\t\"notes\": null,\n\t\t\t\"lat\": null,\n\t\t\t\"lng\": null,\n\t\t\t\"latlng\": null,\n\t\t\t\"geohash\": null,\n\t\t\t\"created_at\": \"2022-04-15T09:15:28.000000Z\",\n\t\t\t\"updated_at\": \"2022-04-15T09:15:28.000000Z\",\n\t\t\t\"status\": {\n\t\t\t\t\"id\": 3,\n\t\t\t\t\"status_category_slug\": \"assigned\",\n\t\t\t\t\"name\": \"Atandı\"\n\t\t\t}\n\t\t}\n\t]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "hub_id": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "obligation_slug": {
                      "type": "string",
                      "example": "mandatory"
                    },
                    "quantity": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "service_time": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "response_time": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "tracking_code": {
                      "type": "string",
                      "example": "QD1-22104JO56XW"
                    },
                    "integration_id": {
                      "type": "string",
                      "example": "22"
                    },
                    "type_slug": {
                      "type": "string",
                      "example": "assignable"
                    },
                    "status_id": {
                      "type": "integer",
                      "example": 3,
                      "default": 0
                    },
                    "status_at": {
                      "type": "string",
                      "example": "2022-04-15T09:15:28.000000Z"
                    },
                    "status_category_slug": {
                      "type": "string",
                      "example": "assigned"
                    },
                    "owner_id": {
                      "type": "integer",
                      "example": 2,
                      "default": 0
                    },
                    "courier_id": {
                      "type": "integer",
                      "example": 275,
                      "default": 0
                    },
                    "team_id": {},
                    "origin_hub_id": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "destination_hub_id": {},
                    "origin_address": {
                      "type": "string",
                      "example": "Kozyatağı Mah, Şakacı Sk. Selimoğlu Residence No:14/1-A, 34742 Kadıköy/İstanbul"
                    },
                    "origin_address_building": {},
                    "origin_address_floor": {},
                    "origin_address_apartment": {},
                    "origin_address_description": {},
                    "origin_phone_country": {},
                    "origin_phone": {},
                    "origin_name": {
                      "type": "string",
                      "example": "Anadolu Depo"
                    },
                    "origin_lat": {
                      "type": "number",
                      "example": 40.971301,
                      "default": 0
                    },
                    "origin_lng": {
                      "type": "number",
                      "example": 29.094388,
                      "default": 0
                    },
                    "destination_address": {
                      "type": "string",
                      "example": "Vişnezade, Hüsrev Gerede Cd. No:15, 34357 Beşiktaş/İstanbul"
                    },
                    "destination_address_building": {},
                    "destination_address_floor": {},
                    "destination_address_apartment": {},
                    "destination_address_description": {},
                    "destination_phone_country": {},
                    "destination_phone": {},
                    "destination_name": {
                      "type": "string",
                      "example": "Avrupa Mağazası"
                    },
                    "destination_lat": {
                      "type": "number",
                      "example": 41.04608914,
                      "default": 0
                    },
                    "destination_lng": {
                      "type": "number",
                      "example": 28.9996297,
                      "default": 0
                    },
                    "ends_at": {
                      "type": "string",
                      "example": "2022-02-04T10:11:00.000000Z"
                    },
                    "starts_at": {
                      "type": "string",
                      "example": "2022-02-04T10:00:00.000000Z"
                    },
                    "requires_delivery_code": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "requires_delivery_code_mandatory": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "requirements_delivery_code": {},
                    "requires_pod_photo": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "requires_pod_photo_mandatory": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "required_dont_ring_the_bell": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "requires_contactless": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "notes": {},
                    "channel": {
                      "type": "string",
                      "example": "api"
                    },
                    "provider_id": {},
                    "is_origin_resolved": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "is_destination_resolved": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "contents": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      }
                    },
                    "payment_type": {},
                    "foreign_carrier": {},
                    "handled_by_foreign_carrier": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "route_order": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "priority": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "slot": {},
                    "rating": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "comment": {},
                    "distance": {
                      "type": "integer",
                      "example": 11,
                      "default": 0
                    },
                    "duration": {
                      "type": "integer",
                      "example": 30,
                      "default": 0
                    },
                    "was_finalized_duly": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "was_delayed": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "company_id": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "updated_at": {
                      "type": "string",
                      "example": "2022-04-15T09:15:28.000000Z"
                    },
                    "created_at": {
                      "type": "string",
                      "example": "2022-04-15T09:15:28.000000Z"
                    },
                    "id": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "courier": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 275,
                          "default": 0
                        },
                        "name": {
                          "type": "string",
                          "example": "Yağız Akar"
                        },
                        "phone_country": {
                          "type": "string",
                          "example": "TR"
                        },
                        "phone": {
                          "type": "string",
                          "example": "+905439076609"
                        },
                        "courier_detail": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "KN5ITS"
                            },
                            "vehicle_license_plate": {
                              "type": "string",
                              "example": "34G2Z515"
                            },
                            "vehicle_type": {
                              "type": "string",
                              "example": "Bicycle"
                            },
                            "vehicle_type_slug": {
                              "type": "string",
                              "example": "bicycle"
                            },
                            "vehicle_description": {},
                            "vehicle_color": {
                              "type": "string",
                              "example": "Siyah"
                            },
                            "capacity": {
                              "type": "integer",
                              "example": 19,
                              "default": 0
                            },
                            "pool_capacity": {
                              "type": "integer",
                              "example": 8,
                              "default": 0
                            },
                            "vehicle_icon": {
                              "type": "string",
                              "example": "https://qdelivery-api.test/images/vehicle-icons/bicycle.png"
                            }
                          }
                        },
                        "courier_location": {
                          "type": "object",
                          "properties": {
                            "is_online": {
                              "type": "boolean",
                              "example": true,
                              "default": true
                            },
                            "is_working": {
                              "type": "boolean",
                              "example": true,
                              "default": true
                            },
                            "lat": {
                              "type": "number",
                              "example": 40.95769013,
                              "default": 0
                            },
                            "lng": {
                              "type": "number",
                              "example": 29.09772308,
                              "default": 0
                            },
                            "last_seen_at": {
                              "type": "string",
                              "example": "2022-04-15T09:05:13.000000Z"
                            }
                          }
                        }
                      }
                    },
                    "team": {},
                    "hub": {},
                    "status": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 3,
                          "default": 0
                        },
                        "name": {
                          "type": "string",
                          "example": "Atandı"
                        }
                      }
                    },
                    "status_logs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "task_id": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "courier_id": {
                            "type": "integer",
                            "example": 275,
                            "default": 0
                          },
                          "status_id": {
                            "type": "integer",
                            "example": 3,
                            "default": 0
                          },
                          "status_category_slug": {
                            "type": "string",
                            "example": "assigned"
                          },
                          "notes": {},
                          "lat": {},
                          "lng": {},
                          "latlng": {},
                          "geohash": {},
                          "created_at": {
                            "type": "string",
                            "example": "2022-04-15T09:15:28.000000Z"
                          },
                          "updated_at": {
                            "type": "string",
                            "example": "2022-04-15T09:15:28.000000Z"
                          },
                          "status": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 3,
                                "default": 0
                              },
                              "status_category_slug": {
                                "type": "string",
                                "example": "assigned"
                              },
                              "name": {
                                "type": "string",
                                "example": "Atandı"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"message\": \"Unauthenticated.\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Unauthenticated."
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6602b1495613fc002042a788:6602b14a5613fc002042a795"
}
```