Cada canal, posee asignada una cola RabbitMQ, con el nombre "canal_stock", ejemplo: "e3_stock".
Allí, recibirá, en formato JSON, lo siguiente:
{ "info": "stock", "dateTime": "10/07/2020 08:00:00", "stores": [ { "storeCode": "unicenter", "locations": [ { "locationCode": "OnSale", "items": [ { "code": "1.DEP1.RCD.OnSale.SamA70", "reservedUnitCount": 0, "currentUnitCount": 100, "itemCode": "SamA70" }, { "code": "1.DEP1.RCD.OnSale.SamS9", "reservedUnitCount": 15, "currentUnitCount": 200, "itemCode": "SamS9" } ] } ] }, { "storeCode": "armenia", "locations": [ { "locationCode": "OnSale", "items": [ { "code": "2.DEP1.RCD.OnSale.SamA70", "reservedUnitCount": 1, "currentUnitCount": 1, "itemCode": "SamA70" }, { "code": "2.DEP1.RCD.OnSale.SamS9", "reservedUnitCount": 2, "currentUnitCount": 2, "itemCode": "SamS9" } ] } ] } ] } |
La información se establece por tienda y depósito.
Dentro, se visualizan las tiendas, depósitos e información sobre stock reservado y actual.