diff --git a/vendor/magento/module-usps/Model/Carrier.php b/vendor/magento/module-usps/Model/Carrier.php
index 765fa3f..df1671a 100644
--- a/vendor/magento/module-usps/Model/Carrier.php
+++ b/vendor/magento/module-usps/Model/Carrier.php
@@ -1385,11 +1385,20 @@ class Carrier extends AbstractCarrierOnline implements \Magento\Shipping\Model\C
      */
     public function getAllowedMethods()
     {
-        $allowed = explode(',', $this->getConfigData('allowed_methods') ?? '');
         $arr = [];
-        foreach ($allowed as $k) {
-            $arr[$k] = $this->getCode('method', $k);
-        }
+        if ($this->isXmlRequest()) {
+            $allowed = explode(',', $this->getConfigData('allowed_methods') ?? '');
+
+            foreach ($allowed as $k) {
+                $arr[$k] = $this->getCode('method', $k);
+            }
+        } else {
+            $allowed = explode(',', $this->getConfigData('rest_allowed_methods') ?? '');
+
+            foreach ($allowed as $k) {
+                $arr[$k] = $this->getCode('rest_method', $k);
+            }
+	}
 
         return $arr;
     }
@@ -1825,7 +1834,7 @@ class Carrier extends AbstractCarrierOnline implements \Magento\Shipping\Model\C
     protected function _convertPoundOunces($weightInPounds)
     {
         $weightInOunces = ceil($weightInPounds * self::OUNCES_POUND);
-        $pounds = floor($weightInOunces / self::OUNCES_POUND);
+        $pounds = ($weightInOunces / self::OUNCES_POUND);
         $ounces = $weightInOunces % self::OUNCES_POUND;
 
         return [$pounds, $ounces];
@@ -2381,13 +2390,13 @@ class Carrier extends AbstractCarrierOnline implements \Magento\Shipping\Model\C
         if (empty($packages)) {
             $dividedWeight = $this->getTotalNumOfBoxes($totalWeight);
             for ($i=0; $i < $this->_numBoxes; $i++) {
-                $packages[$i]['weight_pounds'] = floor($dividedWeight);
+                $packages[$i]['weight_pounds'] = ($dividedWeight);
                 $ounces = ($dividedWeight - floor($dividedWeight)) * self::OUNCES_POUND;
                 $packages[$i]['weight_ounces'] = sprintf('%.' . self::$weightPrecision . 'f', $ounces);
             }
         } else {
             foreach ($packages as $key => $package) {
-                $packages[$key]['weight_pounds'] = floor($package['weight']);
+                $packages[$key]['weight_pounds'] = ($package['weight']);
                 $ounces = ($package['weight'] - floor($package['weight'])) * self::OUNCES_POUND;
                 $packages[$key]['weight_ounces'] = sprintf('%.' . self::$weightPrecision . 'f', $ounces);
             }
