---
agentTools:
  projectIndex: https://logmanager.readme.io/llms.txt
---

# Listar todas as entregas de determinada transportadora

**Objetivo**: Listar entregas da transportadora autorizada, você pode filtrar por cliente, status e data de criação.

Os campos que você precisará enviar são:

* **Per\_page (obrigatório)** - Quantidade de itens por página
* **Page (obrigatório)** - Número da página
* **Startdate (obrigatório)** - Data início da busca ( data de criação )
* **Enddate (obrigatório)** - Data fim da busca ( data de criação )
* Status \[] - Filtros de status disponíveis

**Pendentes de impressão, Prontos para enviar, Entregues, Não entregues, A caminho, Cancelados**

* Client\_ID - ID do cliente do menu Clientes
* Internal\_code - Código interno

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "API LogManager",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://app.logmanager.com.br"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/api/v1/all_shipments_v4": {
      "get": {
        "summary": "Listar todas as entregas de determinada transportadora",
        "description": "",
        "operationId": "listar-motoristas-copy-copy-3",
        "parameters": [
          {
            "name": "page",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "per_page",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "Startdate",
            "in": "path",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "required": true
          },
          {
            "name": "enddate",
            "in": "path",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "required": true
          },
          {
            "name": "status[]",
            "in": "path",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "required": true
          },
          {
            "name": "client_id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "internal_code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Retorna uma lista com todas entregas filtradas.": {
                    "value": "[\n  {\n    \"summary\": \"success\",\n    \"value\": {\n      \"page\": 0,\n      \"per_page\": 1,\n      \"total\": 1013,\n      \"data\": [\n        {\n          \"shipment_id\": 123321,\n          \"date_created\": \"2020-12-02 22:15:47\",\n          \"name\": \"LOJA TESTE\",\n          \"fantasy_name\": null,\n          \"user_custom_id\": null,\n          \"receiver_address_receiver_name\": \"Antonio Guimaraes\",\n          \"status\": \"Entregue\",\n          \"substatus\": null,\n          \"internal_status\": \"Novo\",\n          \"date_shipped\": \"2020-12-03 16:26:39\",\n          \"date_first_visit\": \"2020-12-03 20:10:09\",\n          \"date_delivered\": \"2020-12-15T14:13:25.000-04:00\",\n          \"receiver_address_address_line\": \"RUA TESTE DOS TESTES\",\n          \"receiver_address_city\": \"São Bernardo do Campo\",\n          \"receiver_address_neighborhood\": \"Jardim Europa\",\n          \"receiver_address_zip_code\": \"123123\",\n          \"receiver_address_receiver_phone\": \"16 99772 1718\",\n          \"receiver_address_latitude\": \"-23.726067\",\n          \"receiver_address_longitude\": \"-46.593325\",\n          \"downloaded\": 1,\n          \"delivery_preference\": \"residential\",\n          \"created_at\": \"2020-12-02 22:16:17\",\n          \"updated_at\": \"2020-12-15 15:13:35\"\n        }\n      ]\n    }\n  }\n]"
                  }
                },
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "summary": {
                        "type": "string",
                        "example": "success"
                      },
                      "value": {
                        "type": "object",
                        "properties": {
                          "page": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "per_page": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "total": {
                            "type": "integer",
                            "example": 1013,
                            "default": 0
                          },
                          "data": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "shipment_id": {
                                  "type": "integer",
                                  "example": 123321,
                                  "default": 0
                                },
                                "date_created": {
                                  "type": "string",
                                  "example": "2020-12-02 22:15:47"
                                },
                                "name": {
                                  "type": "string",
                                  "example": "LOJA TESTE"
                                },
                                "fantasy_name": {},
                                "user_custom_id": {},
                                "receiver_address_receiver_name": {
                                  "type": "string",
                                  "example": "Antonio Guimaraes"
                                },
                                "status": {
                                  "type": "string",
                                  "example": "Entregue"
                                },
                                "substatus": {},
                                "internal_status": {
                                  "type": "string",
                                  "example": "Novo"
                                },
                                "date_shipped": {
                                  "type": "string",
                                  "example": "2020-12-03 16:26:39"
                                },
                                "date_first_visit": {
                                  "type": "string",
                                  "example": "2020-12-03 20:10:09"
                                },
                                "date_delivered": {
                                  "type": "string",
                                  "example": "2020-12-15T14:13:25.000-04:00"
                                },
                                "receiver_address_address_line": {
                                  "type": "string",
                                  "example": "RUA TESTE DOS TESTES"
                                },
                                "receiver_address_city": {
                                  "type": "string",
                                  "example": "São Bernardo do Campo"
                                },
                                "receiver_address_neighborhood": {
                                  "type": "string",
                                  "example": "Jardim Europa"
                                },
                                "receiver_address_zip_code": {
                                  "type": "string",
                                  "example": "123123"
                                },
                                "receiver_address_receiver_phone": {
                                  "type": "string",
                                  "example": "16 99772 1718"
                                },
                                "receiver_address_latitude": {
                                  "type": "string",
                                  "example": "-23.726067"
                                },
                                "receiver_address_longitude": {
                                  "type": "string",
                                  "example": "-46.593325"
                                },
                                "downloaded": {
                                  "type": "integer",
                                  "example": 1,
                                  "default": 0
                                },
                                "delivery_preference": {
                                  "type": "string",
                                  "example": "residential"
                                },
                                "created_at": {
                                  "type": "string",
                                  "example": "2020-12-02 22:16:17"
                                },
                                "updated_at": {
                                  "type": "string",
                                  "example": "2020-12-15 15:13:35"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "66e97e47c1ecd500361f8847:66ec0623855eca08040d1f15"
}
```