# Deliveries

## Retrieves a list of all deliveries

> Retrieves a list of all deliveries

```json
{"openapi":"3.1.0","info":{"title":"Generated API Specification","version":"1.0.0"},"servers":[{"url":"http://localhost:4000","description":"API Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"GETdeliveriesResponse200":{"type":"object","properties":{"page":{"type":"number"},"limit":{"type":"number"},"total":{"type":"number"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"status":{"type":"string"},"address":{"type":"string"},"customer":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"driverId":{"type":"number"},"date":{"type":"string"}},"required":["id","status","address","customer","city","country","driverId","date"]}}},"required":["page","limit","total","results"]}}},"paths":{"/deliveries":{"get":{"summary":"Retrieves a list of all deliveries","description":"Retrieves a list of all deliveries","tags":["Deliveries"],"responses":{"200":{"description":"Response with status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETdeliveriesResponse200"}}}}}}}}}
```

## Create a delivery

> Create a delivery

```json
{"openapi":"3.1.0","info":{"title":"Generated API Specification","version":"1.0.0"},"servers":[{"url":"http://localhost:4000","description":"API Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"POSTdeliveriesRequest":{"type":"object","properties":{"status":{"type":"string"},"address":{"type":"string"},"customer":{"type":"string"},"parcelId":{"type":"number"},"driverId":{"type":"number"},"city":{"type":"string"},"country":{"type":"string"},"date":{"type":"string"}},"required":["status","address","customer","parcelId","driverId","city","country","date"]},"POSTdeliveriesResponse200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}},"paths":{"/deliveries":{"post":{"summary":"Create a delivery","description":"Create a delivery","tags":["Deliveries"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTdeliveriesRequest"}}}},"responses":{"200":{"description":"Response with status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTdeliveriesResponse200"}}}}}}}}}
```

## Retrieves just a single delivery

> Retrieves just a single delivery

```json
{"openapi":"3.1.0","info":{"title":"Generated API Specification","version":"1.0.0"},"servers":[{"url":"http://localhost:4000","description":"API Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"GETdeliveries2Response200":{"type":"object","properties":{"id":{"type":"number"},"status":{"type":"string"},"address":{"type":"string"},"customer":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"driverId":{"type":"number"},"date":{"type":"string"}},"required":["id","status","address","customer","city","country","driverId","date"]}}},"paths":{"/deliveries/2":{"get":{"summary":"Retrieves just a single delivery","description":"Retrieves just a single delivery","tags":["Deliveries"],"responses":{"200":{"description":"Response with status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETdeliveries2Response200"}}}}}}}}}
```

## PATCH /deliveries/%7Bid%7D

> PATCH /deliveries/%7Bid%7D

```json
{"openapi":"3.1.0","info":{"title":"Generated API Specification","version":"1.0.0"},"servers":[{"url":"http://localhost:4000","description":"API Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"PATCHdeliveries%7Bid%7DRequest":{"type":"object","properties":{"status":{"type":"string"},"address":{"type":"string"},"customer":{"type":"string"},"parcelId":{"type":"number"},"driverId":{"type":"number"},"city":{"type":"string"},"country":{"type":"string"},"date":{"type":"string"}},"required":["status","address","customer","parcelId","driverId","city","country","date"]},"PATCHdeliveries%7Bid%7DResponse200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}},"paths":{"/deliveries/%7Bid%7D":{"patch":{"summary":"PATCH /deliveries/%7Bid%7D","tags":["Deliveries"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PATCHdeliveries%7Bid%7DRequest"}}}},"responses":{"200":{"description":"Response with status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PATCHdeliveries%7Bid%7DResponse200"}}}}}}}}}
```

## Remove a particular delivery information

> Remove a particular delivery information

```json
{"openapi":"3.1.0","info":{"title":"Generated API Specification","version":"1.0.0"},"servers":[{"url":"http://localhost:4000","description":"API Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"DELETEdeliveries%7B5%7DResponse200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}},"paths":{"/deliveries/%7B5%7D":{"delete":{"summary":"Remove a particular delivery information","description":"Remove a particular delivery information","tags":["Deliveries"],"responses":{"200":{"description":"Response with status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DELETEdeliveries%7B5%7DResponse200"}}}}}}}}}
```

## GET /deliveries/status/%7Bstatus%7D

> GET /deliveries/status/%7Bstatus%7D

```json
{"openapi":"3.1.0","info":{"title":"Generated API Specification","version":"1.0.0"},"servers":[{"url":"http://localhost:4000","description":"API Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"GETdeliveriesstatus%7Bstatus%7DResponse200":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"status":{"type":"string"},"address":{"type":"string"},"customer":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"driverId":{"type":"number"},"date":{"type":"string"}},"required":["id","status","address","customer","city","country","driverId","date"]}}}},"paths":{"/deliveries/status/%7Bstatus%7D":{"get":{"summary":"GET /deliveries/status/%7Bstatus%7D","tags":["Deliveries"],"responses":{"200":{"description":"Response with status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETdeliveriesstatus%7Bstatus%7DResponse200"}}}}}}}}}
```

## GET /deliveries/city/%7Bcity%7D

> GET /deliveries/city/%7Bcity%7D

```json
{"openapi":"3.1.0","info":{"title":"Generated API Specification","version":"1.0.0"},"servers":[{"url":"http://localhost:4000","description":"API Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"GETdeliveriescity%7Bcity%7DResponse200":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"status":{"type":"string"},"address":{"type":"string"},"customer":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"driverId":{"type":"number"},"date":{"type":"string"}},"required":["id","status","address","customer","city","country","driverId","date"]}}}},"paths":{"/deliveries/city/%7Bcity%7D":{"get":{"summary":"GET /deliveries/city/%7Bcity%7D","tags":["Deliveries"],"responses":{"200":{"description":"Response with status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETdeliveriescity%7Bcity%7DResponse200"}}}}}}}}}
```

## GET /deliveries/country/%7Bcountry%7D

> GET /deliveries/country/%7Bcountry%7D

```json
{"openapi":"3.1.0","info":{"title":"Generated API Specification","version":"1.0.0"},"servers":[{"url":"http://localhost:4000","description":"API Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"GETdeliveriescountry%7Bcountry%7DResponse200":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"status":{"type":"string"},"address":{"type":"string"},"customer":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"driverId":{"type":"number"},"date":{"type":"string"}},"required":["id","status","address","customer","city","country","driverId","date"]}}}},"paths":{"/deliveries/country/%7Bcountry%7D":{"get":{"summary":"GET /deliveries/country/%7Bcountry%7D","description":"","tags":["Deliveries"],"responses":{"200":{"description":"Response with status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETdeliveriescountry%7Bcountry%7DResponse200"}}}}}}}}}
```

## GET /deliveries/customer/%7Bcustomer%7D

> GET /deliveries/customer/%7Bcustomer%7D

```json
{"openapi":"3.1.0","info":{"title":"Generated API Specification","version":"1.0.0"},"servers":[{"url":"http://localhost:4000","description":"API Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"GETdeliveriescustomer%7Bcustomer%7DResponse200":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"status":{"type":"string"},"address":{"type":"string"},"customer":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"driverId":{"type":"number"},"date":{"type":"string"}},"required":["id","status","address","customer","city","country","driverId","date"]}}}},"paths":{"/deliveries/customer/%7Bcustomer%7D":{"get":{"summary":"GET /deliveries/customer/%7Bcustomer%7D","tags":["Deliveries"],"responses":{"200":{"description":"Response with status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETdeliveriescustomer%7Bcustomer%7DResponse200"}}}}}}}}}
```

## GET /deliveries/date/%7Bdate%7D

> GET /deliveries/date/%7Bdate%7D

```json
{"openapi":"3.1.0","info":{"title":"Generated API Specification","version":"1.0.0"},"servers":[{"url":"http://localhost:4000","description":"API Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"GETdeliveriesdate%7Bdate%7DResponse200":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"status":{"type":"string"},"address":{"type":"string"},"customer":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"driverId":{"type":"number"},"date":{"type":"string"}},"required":["id","status","address","customer","city","country","driverId","date"]}}}},"paths":{"/deliveries/date/%7Bdate%7D":{"get":{"summary":"GET /deliveries/date/%7Bdate%7D","tags":["Deliveries"],"responses":{"200":{"description":"Response with status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETdeliveriesdate%7Bdate%7DResponse200"}}}}}}}}}
```

## GET /deliveries/range/%7Bstart%7D/%7Bend%7D

> GET /deliveries/range/%7Bstart%7D/%7Bend%7D

```json
{"openapi":"3.1.0","info":{"title":"Generated API Specification","version":"1.0.0"},"servers":[{"url":"http://localhost:4000","description":"API Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"GETdeliveriesrange%7Bstart%7D%7Bend%7DResponse200":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"status":{"type":"string"},"address":{"type":"string"},"customer":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"driverId":{"type":"number"},"date":{"type":"string"}},"required":["id","status","address","customer","city","country","driverId","date"]}}}},"paths":{"/deliveries/range/%7Bstart%7D/%7Bend%7D":{"get":{"summary":"GET /deliveries/range/%7Bstart%7D/%7Bend%7D","tags":["Deliveries"],"responses":{"200":{"description":"Response with status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETdeliveriesrange%7Bstart%7D%7Bend%7DResponse200"}}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://samuel-8.gitbook.io/samuel-docs/deliveries.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
