Skip to content

Commit

Permalink
Fix wrong method used in getRateById (#23)
Browse files Browse the repository at this point in the history
As per the shipengine documentation it is a get request and not POST
  • Loading branch information
chieft3ch authored Feb 18, 2024
1 parent 7887922 commit 727bf23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/ShippingRates.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down

0 comments on commit 727bf23

Please sign in to comment.