# getAllInventories()

Al invocar este método, se obtienen todos todos los inventarios de cada zona 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 inventories  = await _gpsApiv2.getAllInventories(); 
 	} 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;">**cantidad**</td><td style="width: 301px; height: 41px;">Cantidad de Productos en inventario</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**estado**</td><td style="width: 301px; height: 41px;">Estatus del inventario 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 inventario en el sistema</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**idalmacen\_od**</td><td style="width: 301px; height: 41px;">ID del almacén 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 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 en el sistema</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**idmoneda**</td><td style="width: 301px; height: 41px;">ID de la moneda en el sistema</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**idproducto**</td><td style="width: 301px; height: 41px;">ID del producto en el sistema

</td></tr><tr style="height: 69px;"><td style="width: 320px; height: 69px;">**idproducto\_od**</td><td style="width: 301px; height: 69px;">ID del producto OD en el sistema

</td></tr><tr style="height: 47px;"><td style="width: 320px; height: 47px;">**idzona\_od**</td><td style="width: 301px; height: 47px;">ID de la zona OD en el sistema

</td></tr><tr style="height: 47px;"><td style="width: 320px; height: 47px;">**impuesto**</td><td style="width: 301px; height: 47px;">Total del impuesto del inventario

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

</td></tr><tr style="height: 47px;"><td style="width: 320px; height: 47px;">**nombre\_moneda**</td><td style="width: 301px; height: 47px;">Nombre del producto

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

</td></tr><tr style="height: 47px;"><td style="width: 320px; height: 47px;">**nombre\_zona**</td><td style="width: 301px; height: 47px;">Nombre de la zona

</td></tr><tr style="height: 47px;"><td style="width: 320px; height: 47px;">**subtotal**</td><td style="width: 301px; height: 47px;">Subtotal de los productos en inventario

</td></tr><tr><td style="width: 320px;">**timestamp**</td><td style="width: 301px;">Última fecha de modificación del inventario

</td></tr><tr><td style="width: 320px;">**total**</td><td style="width: 301px;">Costo total de los productos en inventario

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

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

```JSON
{
	 error_desc:undefined
	 status:'ok',
	 message:'['
		 0:{
			 cantidad:'297',
			 estado:'1',
			 id:'16',
			 idalmacen_od:'0',
			 idcliente_distribuidor:'4220',
			 idcliente_sistema:'4221',
			 idmoneda:'4',
			 idproducto:'3',
			 idproducto_od:'3',
			 idzona_od:'9',
			 impuesto:'9504',
			 nombre_almacen:null,
			 nombre_moneda:'COP',
			 nombre_producto:'Mi Producto 3',
			 nombre_zona:'Caja refrigerada',
			 subtotal:'59400',
			 timestamp:'2020-08-21 09:11:02',
			 total:'68904',
		 },{..}
	 ]
}
```