# Listar almacenes - getAllWareHouse

##### <span class="api-method" data-method="POST">POST</span> https://api.service24gps.com/api/v1/ondelivery/getAllWareHouse

Obtiene todos los almacenes de un distribuidor - cliente.

<details class="mb-m" id="bkmrk-body-parametersparam"><summary class="text-muted">Ver parámetros de solicitud:</summary>

<div><table class="table" style="height: 139px;"><tbody><tr style="height: 41px;"><th style="width: 188px; height: 41px;">Parámetros</th><th style="width: 320px; height: 41px;">Descripción</th><th style="width: 301px; height: 41px;">Ejemplo</th></tr><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">Token devuelto por el método getToken.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr></tbody></table>

</div></details>##### Solicitud de ejemplo:

```shell
curl --location --request POST 'https://api.service24gps.com/api/v1/ondelivery/getAllWareHouse' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: PHPSESSID=999egj9j5mnaevhamfu16s90a9' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "status": "ok",
        "message": {
            "0": {
                "id": "1",
                "nombre": "Almacen del sur",
                "idvehiculo": null,
                "idcliente_sistema": "4221",
                "idcliente_distribuidor": "4220",
                "descripcion": "Se encuentra al sur de la ciudad",
                "idpais": "2",
                "idprovincia": "21",
                "ciudad": "Puebla",
                "calle": "Av 21 poniente",
                "numero_int": "2",
                "numero_ext": "3315",
                "cp": "72160",
                "latitud": "19.0494123",
                "longitud": "-98.2281553",
                "estado": "1"
            },
            "1": {
                "id": "2",
                "nombre": "Almacen del centro",
                "idvehiculo": null,
                "idcliente_sistema": "4221",
                "idcliente_distribuidor": "4220",
                "descripcion": "Almacen del centro de la ciudad",
                "idpais": "0",
                "idprovincia": "0",
                "ciudad": "",
                "calle": "Av 21 poniente",
                "numero_int": "2",
                "numero_ext": "3314",
                "cp": "72160",
                "latitud": "",
                "longitud": "",
                "estado": "1"
            },
            "2": {
                "id": "3",
                "nombre": "Almacen del norte",
                "idvehiculo": null,
                "idcliente_sistema": "4221",
                "idcliente_distribuidor": "4220",
                "descripcion": "Almacen del norte de la ciudad",
                "idpais": "0",
                "idprovincia": "0",
                "ciudad": "",
                "calle": "Av 21 poniente",
                "numero_int": "2",
                "numero_ext": "3314",
                "cp": "72160",
                "latitud": "",
                "longitud": "",
                "estado": "1"
            },
            "3": {
                "id": "4",
                "nombre": "Almacen del noreste",
                "idvehiculo": null,
                "idcliente_sistema": "4221",
                "idcliente_distribuidor": "4220",
                "descripcion": "Se encuentra del noreste.....",
                "idpais": "0",
                "idprovincia": "0",
                "ciudad": "",
                "calle": "Av 23 Poniente",
                "numero_int": "",
                "numero_ext": "3000",
                "cp": "72180",
                "latitud": "",
                "longitud": "",
                "estado": "1"
            }
        }
    }
}
```

<details class="mb-m" id="bkmrk-ver-par%C3%A1metros%3A-par%C3%A1" open="open"><summary class="text-muted">Ver campos de respuesta:</summary>

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 700px;"><tbody><tr style="height: 47px;"><th style="width: 174px; height: 47px;">Campo</th><th style="width: 392px; height: 47px;">Descripción

</th><th style="width: 243px; height: 47px;">Formato</th></tr><tr style="height: 41px;"><td style="width: 174px; height: 41px;">id</td><td style="width: 392px; height: 41px;">Identificador único del almacén.</td><td style="width: 243px; height: 41px;">Entero</td></tr><tr style="height: 41px;"><td style="width: 174px; height: 41px;">nombre</td><td style="width: 392px; height: 41px;">Nombre del almacén.</td><td style="width: 243px; height: 41px;">Cadena de texto</td></tr><tr style="height: 58px;"><td style="width: 174px; height: 58px;">idvehiculo</td><td style="width: 392px; height: 58px;">Identificador único del vehículo.

</td><td style="width: 243px; height: 58px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">idcliente\_sistema

</td><td style="width: 392px; height: 47px;">Identificador único del cliente.

</td><td style="width: 243px; height: 47px;">Entero</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">idcliente\_distribuidor

</td><td style="height: 35px; width: 392px;">Identificador único del distribuidor.

</td><td style="height: 35px; width: 243px;">Entero

</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">descripcion

</td><td style="height: 35px; width: 392px;">Descripción del almacén.

</td><td style="height: 35px; width: 243px;">Cadena de texto

</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">idpais

</td><td style="height: 35px; width: 392px;">Identificador único del país.

</td><td style="height: 35px; width: 243px;">Entero

</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">idprovincia</td><td style="height: 35px; width: 392px;">Identificador único de la provincia.</td><td style="height: 35px; width: 243px;">Entero</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;"><div><div>ciudad</div></div></td><td style="height: 35px; width: 392px;">Nombre de la ciudad.

</td><td style="height: 35px; width: 243px;">Cadena de texto

</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">calle

</td><td style="height: 35px; width: 392px;">Calle.

</td><td style="height: 35px; width: 243px;">Cadena de texto

</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">numero\_int</td><td style="width: 392px; height: 47px;">Número de interior.</td><td style="width: 243px; height: 47px;">Entero</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">numero\_ext</td><td style="height: 35px; width: 392px;">Número de exterior.</td><td style="height: 35px; width: 243px;">Entero</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">cp</td><td style="height: 35px; width: 392px;">Código postal.</td><td style="height: 35px; width: 243px;">Cadena de texto</td></tr><tr style="height: 57px;"><td style="height: 57px; width: 174px;">latitud</td><td style="height: 57px; width: 392px;">Latitud.</td><td style="height: 57px; width: 243px;">Cadena de texto</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">longitud</td><td style="height: 35px; width: 392px;">Longitud.</td><td style="height: 35px; width: 243px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">estado</td><td style="width: 392px; height: 47px;">Estado del almacén.</td><td style="width: 243px; height: 47px;">Entero</td></tr></tbody></table>

</div></details>