# getAllWareHouse()

Al invocar este método, se obtienen todos los almacenes registrados para onDelivery en formato JSON.

<div id="bkmrk-"></div><div id="bkmrk-ejemplo-de-solicitud"><span style="color: #bbbbbb; font-size: 1.4em; font-weight: 400;">Ejemplo de solicitud en JS:</span></div>```JavaScript
try {
      const wareHouse  = await _gpsApiv2.getAllWareHouse(); 
 	} catch (error) {
	  console.error(error);
	}
```

<details class="mb-m" id="bkmrk-body-parametersparam"><summary class="text-muted">A continuación se describen los atributos que se reciben como respuesta de la solicitud en JSON:</summary>

<div></div><div><table class="table" style="height: 883px; width: 619px;" width="811"><tbody><tr style="height: 41px;"><th style="width: 320px; height: 41px;">Atributos</th><th style="width: 301px; height: 41px;">Definición </th></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**calle**</td><td style="width: 301px; height: 41px;">Calle de la ubicación del almacén</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**ciudad**</td><td style="width: 301px; height: 41px;">Ciudad donde se encuentra el almacén

</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**cp**</td><td style="width: 301px; height: 41px;">Código Postal de donde se encuentra el almacén</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**descripcion**</td><td style="width: 301px; height: 41px;">Descripción del almacén</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**estado**</td><td style="width: 301px; height: 41px;">Estatus del almacén en el sistema</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**id**</td><td style="width: 301px; height: 41px;">ID del almacén con el que se identifica en el sistema</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**idcliente\_distribuidor**</td><td style="width: 301px; height: 41px;">ID del distribuidor con el que se identifica en el sistema</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**idcliente\_sistema**</td><td style="width: 301px; height: 41px;">ID del cliente con el que se identifica en el sistema

</td></tr><tr style="height: 69px;"><td style="width: 320px; height: 69px;">**idpais**</td><td style="width: 301px; height: 69px;">ID del país con el que se identifica en el sistema

</td></tr><tr style="height: 47px;"><td style="width: 320px; height: 47px;">**idprovincia**</td><td style="width: 301px; height: 47px;">ID de la provincia con el que se identifica en el sistema

</td></tr><tr style="height: 47px;"><td style="width: 320px; height: 47px;">**idvehiculo**</td><td style="width: 301px; height: 47px;">ID del activo con el que se identifica en el sistema

</td></tr><tr style="height: 69px;"><td style="width: 320px; height: 69px;">**latitud**</td><td style="width: 301px; height: 69px;">coordenada del almacén

</td></tr><tr style="height: 47px;"><td style="width: 320px; height: 47px;">**longitud**</td><td style="width: 301px; height: 47px;">coordenada del almacén

</td></tr><tr style="height: 47px;"><td style="width: 320px; height: 47px;">**nombre**</td><td style="width: 301px; height: 47px;">Nombre del almacén

</td></tr><tr style="height: 47px;"><td style="width: 320px; height: 47px;">**numero\_ext**</td><td style="width: 301px; height: 47px;">Número exterior de donde se ubica el almacén

</td></tr><tr style="height: 47px;"><td style="width: 320px; height: 47px;">**numero\_int**</td><td style="width: 301px; height: 47px;">Número interior de donde se ubica el almacén

</td></tr></tbody></table>

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

```JSON
{
	 error_desc:undefined
	 status:'ok'
	 message:'['
		 0:{
			 calle:'Av. Independencia'
			 ciudad:''
			 cp:'74270'
			 descripcion:'Camión refrigerado'
			 estado:'1'
			 id:'9'
			 idcliente_distribuidor:'4220'
			 idcliente_sistema:'4221'
			 idpais:'0'
			 idprovincia:'0'
			 idvehiculo:'15822'
			 latitud:''
			 longitud:''
			 nombre:'Original Android ... (XTX-123)'
			 numero_ext:'2109'
			 numero_int:''
		 },{..}
	 ]
}
```