public void RunInventoryStatus(DateTime?lastModifiedMinUtc = null)
        {
            var startOfRun = DateTime.UtcNow;
            var page       = 1;

            var lastModifiedAcuTime
                = lastModifiedMinUtc.HasValue
                    ? _instanceTimeZoneService.ToAcumaticaTimeZone(lastModifiedMinUtc.Value)
                    : (DateTime?)null;

            while (true)
            {
                var json =
                    _inventoryClient.RetrieveInventoryStatus(
                        page: page, pageSize: _config.PageSize, lastModifiedAcuTz: lastModifiedAcuTime);

                var status = json.DeserializeFromJson <InventoryStatusParent>();

                UpsertInventoryStatus(status);

                if (status.value.Count == 0)
                {
                    break;
                }

                page++;
            }

            var batchStateEnd = startOfRun.AddAcumaticaBatchFudge();

            _batchStateRepository.UpdateInventoryStatusGetEnd(batchStateEnd);
        }