From 727bf230f2a80914690e76acc50bcc99c7a40fad Mon Sep 17 00:00:00 2001 From: Ash Date: Sun, 18 Feb 2024 01:19:01 +0000 Subject: [PATCH] Fix wrong method used in getRateById (#23) As per the shipengine documentation it is a get request and not POST --- src/Traits/ShippingRates.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/ShippingRates.php b/src/Traits/ShippingRates.php index a1f2bb2..5c30ce9 100644 --- a/src/Traits/ShippingRates.php +++ b/src/Traits/ShippingRates.php @@ -94,7 +94,7 @@ public function getRateById( array|ShipEngineConfig|null $config = null, ): array|ShipmentRate { $config = $this->config->merge($config); - $response = ShipEngineClient::post( + $response = ShipEngineClient::get( "rates/$rate_id", $config, );