diff --git a/SoftLayer/CLI/hardware/detail.py b/SoftLayer/CLI/hardware/detail.py
index e254ad33..3a55f1b6 100644
--- a/SoftLayer/CLI/hardware/detail.py
+++ b/SoftLayer/CLI/hardware/detail.py
@@ -99,7 +99,9 @@ def _bw_table(bw_data):
         allotment = 'N/A'
         if bw_point['type']['alias'] == 'PUBLIC_SERVER_BW':
             bw_type = 'Public'
-            allotment = bw_data['allotment'].get('amount', '-')
+            allotment = utils.lookup(bw_data, 'allotment', 'amount')
+            if allotment is None:
+                allotment = '-'
 
         table.add_row([bw_type, bw_point['amountIn'], bw_point['amountOut'], allotment])
     return table
diff --git a/SoftLayer/CLI/virt/detail.py b/SoftLayer/CLI/virt/detail.py
index 53ae7e04..bf93a834 100644
--- a/SoftLayer/CLI/virt/detail.py
+++ b/SoftLayer/CLI/virt/detail.py
@@ -131,7 +131,9 @@ def _bw_table(bw_data):
         allotment = 'N/A'
         if bw_point['type']['alias'] == 'PUBLIC_SERVER_BW':
             bw_type = 'Public'
-            allotment = bw_data['allotment'].get('amount', '-')
+            allotment = utils.lookup(bw_data, 'allotment', 'amount')
+            if allotment is None:
+                allotment = '-'
 
         table.add_row([bw_type, bw_point['amountIn'], bw_point['amountOut'], allotment])
     return table
diff --git a/SoftLayer/managers/hardware.py b/SoftLayer/managers/hardware.py
index f5b01646..fb85c328 100644
--- a/SoftLayer/managers/hardware.py
+++ b/SoftLayer/managers/hardware.py
@@ -698,7 +698,7 @@ def get_bandwidth_allocation(self, instance_id):
         allotment = self.client.call('Hardware_Server', 'getBandwidthAllotmentDetail', id=instance_id, mask=a_mask)
         u_mask = "mask[amountIn,amountOut,type]"
         useage = self.client.call('Hardware_Server', 'getBillingCycleBandwidthUsage', id=instance_id, mask=u_mask)
-        return {'allotment': allotment['allocation'], 'useage': useage}
+        return {'allotment': allotment.get('allocation'), 'useage': useage}
 
 
 def _get_extra_price_id(items, key_name, hourly, location):
diff --git a/SoftLayer/managers/vs.py b/SoftLayer/managers/vs.py
index 85bbdf9d..de845096 100644
--- a/SoftLayer/managers/vs.py
+++ b/SoftLayer/managers/vs.py
@@ -1067,7 +1067,7 @@ def get_bandwidth_allocation(self, instance_id):
         allotment = self.client.call('Virtual_Guest', 'getBandwidthAllotmentDetail', id=instance_id, mask=a_mask)
         u_mask = "mask[amountIn,amountOut,type]"
         useage = self.client.call('Virtual_Guest', 'getBillingCycleBandwidthUsage', id=instance_id, mask=u_mask)
-        return {'allotment': allotment['allocation'], 'useage': useage}
+        return {'allotment': allotment.get('allocation'), 'useage': useage}
 
     # pylint: disable=inconsistent-return-statements
     def _get_price_id_for_upgrade(self, package_items, option, value, public=True):

Hardware/Virtual server detail will break if they are in reclaim status
```
slcli vm detail XXXXX
also slcli hw detail XXX
    return callback(*args, **kwargs)
  File "/Users/***/venv/src/softlayer/SoftLayer/CLI/virt/detail.py", line 95, in cli
    bandwidth = vsi.get_bandwidth_allocation(vs_id)
  File "/Users/***/venv/src/softlayer/SoftLayer/managers/vs.py", line 1070, in get_bandwidth_allocation
    return {'allotment': allotment['allocation'], 'useage': useage}
TypeError: string indices must be integers, not str

Feel free to report this error as it is likely a bug:
    https://github.com/softlayer/softlayer-python/issues
The following snippet should be able to reproduce the error

```
**Please triple-check to make sure that you have properly masked out user credentials like usernames, passwords and API keys before submitting your issue**

### Expected Behavior

### Actual Behavior

### Environment Information
Operating System: Mac OSX 10.14
softlayer-python version (`slcli --version`):
v 5.7.2
diff --git a/tests/managers/hardware_tests.py b/tests/managers/hardware_tests.py
index 120f6060..7cff1130 100644
--- a/tests/managers/hardware_tests.py
+++ b/tests/managers/hardware_tests.py
@@ -448,6 +448,14 @@ def test_get_bandwidth_allocation(self):
         self.assertEqual(result['allotment']['amount'], '250')
         self.assertEqual(result['useage'][0]['amountIn'], '.448')
 
+    def test_get_bandwidth_allocation_no_allotment(self):
+        mock = self.set_mock('SoftLayer_Hardware_Server', 'getBandwidthAllotmentDetail')
+        mock.return_value = {}
+
+        result = self.hardware.get_bandwidth_allocation(1234)
+
+        self.assertEqual(None, result['allotment'])
+
 
 class HardwareHelperTests(testing.TestCase):
     def test_get_extra_price_id_no_items(self):
diff --git a/tests/managers/vs/vs_tests.py b/tests/managers/vs/vs_tests.py
index 2816f8b0..14d41966 100644
--- a/tests/managers/vs/vs_tests.py
+++ b/tests/managers/vs/vs_tests.py
@@ -903,3 +903,11 @@ def test_get_bandwidth_allocation(self):
         self.assert_called_with('SoftLayer_Virtual_Guest', 'getBillingCycleBandwidthUsage', identifier=1234)
         self.assertEqual(result['allotment']['amount'], '250')
         self.assertEqual(result['useage'][0]['amountIn'], '.448')
+
+    def test_get_bandwidth_allocation_no_allotment(self):
+        mock = self.set_mock('SoftLayer_Virtual_Guest', 'getBandwidthAllotmentDetail')
+        mock.return_value = {}
+
+        result = self.vs.get_bandwidth_allocation(1234)
+
+        self.assertEqual(None, result['allotment'])

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest
apt-get update apt-get install -y gcc
3.6
tools/test-requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
alabaster==0.7.13
attrs==22.2.0
Babel==2.11.0
certifi==2021.5.30
charset-normalizer==2.0.12
click==8.0.4
coverage==6.2
distlib==0.3.9
docutils==0.18.1
filelock==3.4.1
fixtures==4.0.1
idna==3.10
imagesize==1.4.1
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
Jinja2==3.0.3
MarkupSafe==2.0.1
mock==5.2.0
packaging==21.3
pbr==6.1.1
platformdirs==2.4.0
pluggy==1.0.0
prompt-toolkit==3.0.36
PTable==0.9.2
py==1.11.0
Pygments==2.14.0
pyparsing==3.1.4
pytest==7.0.1
pytest-cov==4.0.0
pytz==2025.2
requests==2.27.1
six==1.17.0
snowballstemmer==2.2.0
-e git+https://github.com/softlayer/softlayer-python.git@7e7b3fede3bf83a42dce9b0dc02d8fb7368dc560#egg=SoftLayer
Sphinx==5.3.0
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
testtools==2.6.0
toml==0.10.2
tomli==1.2.3
tox==3.28.0
typing_extensions==4.1.1
urllib3==1.26.20
virtualenv==20.17.1
wcwidth==0.2.13
zipp==3.6.0

name: softlayer-python
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - alabaster==0.7.13
      - attrs==22.2.0
      - babel==2.11.0
      - charset-normalizer==2.0.12
      - click==8.0.4
      - coverage==6.2
      - distlib==0.3.9
      - docutils==0.18.1
      - filelock==3.4.1
      - fixtures==4.0.1
      - idna==3.10
      - imagesize==1.4.1
      - importlib-metadata==4.8.3
      - importlib-resources==5.4.0
      - iniconfig==1.1.1
      - jinja2==3.0.3
      - markupsafe==2.0.1
      - mock==5.2.0
      - packaging==21.3
      - pbr==6.1.1
      - platformdirs==2.4.0
      - pluggy==1.0.0
      - prompt-toolkit==3.0.36
      - ptable==0.9.2
      - py==1.11.0
      - pygments==2.14.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - pytest-cov==4.0.0
      - pytz==2025.2
      - requests==2.27.1
      - six==1.17.0
      - snowballstemmer==2.2.0
      - sphinx==5.3.0
      - sphinxcontrib-applehelp==1.0.2
      - sphinxcontrib-devhelp==1.0.2
      - sphinxcontrib-htmlhelp==2.0.0
      - sphinxcontrib-jsmath==1.0.1
      - sphinxcontrib-qthelp==1.0.3
      - sphinxcontrib-serializinghtml==1.1.5
      - testtools==2.6.0
      - toml==0.10.2
      - tomli==1.2.3
      - tox==3.28.0
      - typing-extensions==4.1.1
      - urllib3==1.26.20
      - virtualenv==20.17.1
      - wcwidth==0.2.13
      - zipp==3.6.0
prefix: /opt/conda/envs/softlayer-python

tests/managers/hardware_tests.py::HardwareTests::test_get_bandwidth_allocation_no_allotment tests/managers/vs/vs_tests.py::VSTests::test_get_bandwidth_allocation_no_allotment
tests/managers/hardware_tests.py::HardwareTests::test_cancel_hardware tests/managers/hardware_tests.py::HardwareTests::test_cancel_hardware_monthly_now tests/managers/hardware_tests.py::HardwareTests::test_cancel_hardware_monthly_whenever tests/managers/hardware_tests.py::HardwareTests::test_cancel_hardware_no_billing_item tests/managers/hardware_tests.py::HardwareTests::test_cancel_hardware_with_reason_and_comment tests/managers/hardware_tests.py::HardwareTests::test_cancel_hardware_without_reason tests/managers/hardware_tests.py::HardwareTests::test_cancel_hardwareno_billing_item_or_ticket tests/managers/hardware_tests.py::HardwareTests::test_cancel_running_transaction tests/managers/hardware_tests.py::HardwareTests::test_change_port_speed_private tests/managers/hardware_tests.py::HardwareTests::test_change_port_speed_public tests/managers/hardware_tests.py::HardwareTests::test_edit tests/managers/hardware_tests.py::HardwareTests::test_edit_blank tests/managers/hardware_tests.py::HardwareTests::test_edit_meta tests/managers/hardware_tests.py::HardwareTests::test_generate_create_dict tests/managers/hardware_tests.py::HardwareTests::test_generate_create_dict_invalid_size tests/managers/hardware_tests.py::HardwareTests::test_generate_create_dict_no_items tests/managers/hardware_tests.py::HardwareTests::test_generate_create_dict_no_regions tests/managers/hardware_tests.py::HardwareTests::test_get_bandwidth_allocation tests/managers/hardware_tests.py::HardwareTests::test_get_bandwidth_data tests/managers/hardware_tests.py::HardwareTests::test_get_create_options tests/managers/hardware_tests.py::HardwareTests::test_get_create_options_package_missing tests/managers/hardware_tests.py::HardwareTests::test_get_hardware tests/managers/hardware_tests.py::HardwareTests::test_get_tracking_id tests/managers/hardware_tests.py::HardwareTests::test_init_with_ordering_manager tests/managers/hardware_tests.py::HardwareTests::test_list_hardware tests/managers/hardware_tests.py::HardwareTests::test_list_hardware_with_filters tests/managers/hardware_tests.py::HardwareTests::test_place_order tests/managers/hardware_tests.py::HardwareTests::test_reflash_firmware tests/managers/hardware_tests.py::HardwareTests::test_reflash_firmware_selective tests/managers/hardware_tests.py::HardwareTests::test_reload tests/managers/hardware_tests.py::HardwareTests::test_rescue tests/managers/hardware_tests.py::HardwareTests::test_resolve_ids_hostname tests/managers/hardware_tests.py::HardwareTests::test_resolve_ids_ip tests/managers/hardware_tests.py::HardwareTests::test_update_firmware tests/managers/hardware_tests.py::HardwareTests::test_update_firmware_selective tests/managers/hardware_tests.py::HardwareTests::test_verify_order tests/managers/hardware_tests.py::HardwareHelperTests::test_get_bandwidth_price_id_no_items tests/managers/hardware_tests.py::HardwareHelperTests::test_get_bandwidth_price_mismatched tests/managers/hardware_tests.py::HardwareHelperTests::test_get_default_price_id_item_not_first tests/managers/hardware_tests.py::HardwareHelperTests::test_get_default_price_id_no_items tests/managers/hardware_tests.py::HardwareHelperTests::test_get_extra_price_id_no_items tests/managers/hardware_tests.py::HardwareHelperTests::test_get_extra_price_mismatched tests/managers/hardware_tests.py::HardwareHelperTests::test_get_os_price_id_no_items tests/managers/hardware_tests.py::HardwareHelperTests::test_get_os_price_mismatched tests/managers/hardware_tests.py::HardwareHelperTests::test_get_port_speed_price_id_mismatch tests/managers/hardware_tests.py::HardwareHelperTests::test_get_port_speed_price_id_no_items tests/managers/hardware_tests.py::HardwareHelperTests::test_matches_location tests/managers/vs/vs_tests.py::VSTests::test_cancel_instance tests/managers/vs/vs_tests.py::VSTests::test_capture_additional_disks tests/managers/vs/vs_tests.py::VSTests::test_captures tests/managers/vs/vs_tests.py::VSTests::test_change_port_speed_private tests/managers/vs/vs_tests.py::VSTests::test_change_port_speed_public tests/managers/vs/vs_tests.py::VSTests::test_create_instance tests/managers/vs/vs_tests.py::VSTests::test_create_instances tests/managers/vs/vs_tests.py::VSTests::test_create_network_components_private_subnet tests/managers/vs/vs_tests.py::VSTests::test_create_network_components_public_subnet tests/managers/vs/vs_tests.py::VSTests::test_create_network_components_vlan_subnet_private tests/managers/vs/vs_tests.py::VSTests::test_create_network_components_vlan_subnet_private_vlan_subnet_public tests/managers/vs/vs_tests.py::VSTests::test_create_network_components_vlan_subnet_public tests/managers/vs/vs_tests.py::VSTests::test_edit_blank tests/managers/vs/vs_tests.py::VSTests::test_edit_full tests/managers/vs/vs_tests.py::VSTests::test_edit_metadata tests/managers/vs/vs_tests.py::VSTests::test_edit_tags tests/managers/vs/vs_tests.py::VSTests::test_edit_tags_blank tests/managers/vs/vs_tests.py::VSTests::test_generate_basic tests/managers/vs/vs_tests.py::VSTests::test_generate_boot_mode tests/managers/vs/vs_tests.py::VSTests::test_generate_datacenter tests/managers/vs/vs_tests.py::VSTests::test_generate_dedicated tests/managers/vs/vs_tests.py::VSTests::test_generate_image_id tests/managers/vs/vs_tests.py::VSTests::test_generate_missing tests/managers/vs/vs_tests.py::VSTests::test_generate_monthly tests/managers/vs/vs_tests.py::VSTests::test_generate_multi_disk tests/managers/vs/vs_tests.py::VSTests::test_generate_network tests/managers/vs/vs_tests.py::VSTests::test_generate_no_disks tests/managers/vs/vs_tests.py::VSTests::test_generate_os_and_image tests/managers/vs/vs_tests.py::VSTests::test_generate_post_uri tests/managers/vs/vs_tests.py::VSTests::test_generate_private_network_only tests/managers/vs/vs_tests.py::VSTests::test_generate_private_subnet tests/managers/vs/vs_tests.py::VSTests::test_generate_private_vlan tests/managers/vs/vs_tests.py::VSTests::test_generate_private_vlan_subnet_public_vlan_subnet tests/managers/vs/vs_tests.py::VSTests::test_generate_private_vlan_with_private_subnet tests/managers/vs/vs_tests.py::VSTests::test_generate_public_subnet tests/managers/vs/vs_tests.py::VSTests::test_generate_public_vlan tests/managers/vs/vs_tests.py::VSTests::test_generate_public_vlan_with_public_subnet tests/managers/vs/vs_tests.py::VSTests::test_generate_sec_group tests/managers/vs/vs_tests.py::VSTests::test_generate_single_disk tests/managers/vs/vs_tests.py::VSTests::test_generate_sshkey tests/managers/vs/vs_tests.py::VSTests::test_generate_userdata tests/managers/vs/vs_tests.py::VSTests::test_get_bandwidth_allocation tests/managers/vs/vs_tests.py::VSTests::test_get_bandwidth_data tests/managers/vs/vs_tests.py::VSTests::test_get_create_options tests/managers/vs/vs_tests.py::VSTests::test_get_instance tests/managers/vs/vs_tests.py::VSTests::test_get_tracking_id tests/managers/vs/vs_tests.py::VSTests::test_list_instances tests/managers/vs/vs_tests.py::VSTests::test_list_instances_hourly tests/managers/vs/vs_tests.py::VSTests::test_list_instances_monthly tests/managers/vs/vs_tests.py::VSTests::test_list_instances_neither tests/managers/vs/vs_tests.py::VSTests::test_list_instances_with_filters tests/managers/vs/vs_tests.py::VSTests::test_reload_instance tests/managers/vs/vs_tests.py::VSTests::test_reload_instance_posturi_sshkeys tests/managers/vs/vs_tests.py::VSTests::test_reload_instance_with_new_os tests/managers/vs/vs_tests.py::VSTests::test_rescue tests/managers/vs/vs_tests.py::VSTests::test_resolve_ids_hostname tests/managers/vs/vs_tests.py::VSTests::test_resolve_ids_ip tests/managers/vs/vs_tests.py::VSTests::test_resolve_ids_ip_invalid tests/managers/vs/vs_tests.py::VSTests::test_resolve_ids_ip_private tests/managers/vs/vs_tests.py::VSTests::test_usage_vs_cpu tests/managers/vs/vs_tests.py::VSTests::test_usage_vs_memory
SoftLayer/CLI/virt/detail.py SoftLayer/managers/hardware.py SoftLayer/managers/vs.py SoftLayer/CLI/hardware/detail.py
SoftLayer/CLI/virt/detail.py SoftLayer/managers/hardware.py SoftLayer/managers/vs.py SoftLayer/CLI/hardware/detail.py