# getAllZones()

Al invocar este método, se obtienen todas las zonas que se tienen registradas en el sistema 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 zones  = await _gpsApiv2.getAllZones(); 
 	} 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: 246px; 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;">**almacen**</td><td style="width: 301px; height: 41px;">Nombre del 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;">**id**</td><td style="width: 301px; height: 41px;">ID con el que se identifica la zona en el sistema</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**idalmacen**</td><td style="width: 301px; height: 41px;">ID con el que se identifica el almacén en el sistema</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**nombre**</td><td style="width: 301px; height: 41px;"> Nombre de la zona</td></tr></tbody></table>

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

```JSON
{
	 error_desc:undefined
	 status:'ok'
	 message:'['
		 0:{
			 almacen:'Prueba almacén'
			 descripcion:'Abarrotes'
			 id:'8'
			 idalmacen:'8'
			 nombre:'A1'
		 },{..}
	 ]
}
```