GonderiyiKargoyaGonder servisine çekme kodu gidiyor gibi, kargo durumu için queryShipment servisine istek göndermen gerek.
örn
$cargoData = [
'wsUserName' => $this->username,
'wsPassword' => $this->password,
'wsLanguage' => $this->lang,
'keys' => $data['cargoKeys'] ?? $data['invoiceKey'],
'keyType' => isset($data['cargoKeys']) ? 0 : 1,
'addHistoricalData' => true,
'onlyTracking' => true,
];
try{
return $this->query->queryShipment($cargoData);
}catch(Exception $e){
print_r('Hata : '.$e->getMessage());
}Ref:
https://www.suratkargo.com.tr/GonderiWebServiceGercek/service.asmx?WSDL