Discussions

Ask a Question
Back to All

Every Time USPS return in rates?

Hi,

I am using API to get rates of different shipping services

$response = Http::withHeaders([
'Content-Type' => 'application/json',
'Authorization' => 'Bearer '.$this->apiKey,
])->post('https://api.easyship.com/rate/v1/rates', [
"origin_country_alpha2" => "US",
"origin_postal_code" => $fromAddress['postal_code'],
"destination_country_alpha2" => "US",
"destination_postal_code" => $toAddress['postal_code'],
"taxes_duties_paid_by" => "Sender",
"is_insured" => false,
"items" => [
$parcel
],
]);


But here always USPS data comes in response but I want all like UPS, FEDX etc.