i'm attempting implement fedex package tracking in project using xml api. following tracking request:
'<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v6="http://fedex.com/ws/track/v6"> <soapenv '<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v6="http://fedex.com/ws/track/v6"> <soapenv:header/> <soapenv:body> <v6:trackrequest> <v6:webauthenticationdetail> <v6:usercredential> <v6:key>'.fedex_accesskey.'</v6:key> <v6:password>'.fedex_password.'</v6:password> </v6:usercredential> </v6:webauthenticationdetail> <v6:clientdetail> <v6:accountnumber>'.fedex_account.'</v6:accountnumber> <v6:meternumber>'.fedex_meter.'</v6:meternumber> <v6:integratorid></v6:integratorid> <v6:localization> <v6:languagecode>en</v6:languagecode> <v6:localecode>us</v6:localecode> </v6:localization> </v6:clientdetail> <v6:transactiondetail> <v6:customertransactionid>track number</v6:customertransactionid> <v6:localization> <v6:languagecode>en</v6:languagecode> <v6:localecode>us</v6:localecode> </v6:localization> </v6:transactiondetail> <v6:version> <v6:serviceid>trck</v6:serviceid> <v6:major>6</v6:major> <v6:intermediate>0</v6:intermediate> <v6:minor>0</v6:minor> </v6:version> <v6:packageidentifier> <v6:value>'.$tracking_number.'</v6:value> <v6:type>tracking_number_or_doortag</v6:type> </v6:packageidentifier> </v6:trackrequest> </soapenv:body> </soapenv:envelope>';:header/> <soapenv:body> <v6:trackrequest> <v6:webauthenticationdetail> <v6:usercredential> <v6:key>'.fedex_accesskey.'</v6:key> <v6:password>'.fedex_password.'</v6:password> </v6:usercredential> </v6:webauthenticationdetail> <v6:clientdetail> <v6:accountnumber>'.fedex_account.'</v6:accountnumber> <v6:meternumber>'.fedex_meter.'</v6:meternumber> <v6:integratorid></v6:integratorid> <v6:localization> <v6:languagecode>en</v6:languagecode> <v6:localecode>us</v6:localecode> </v6:localization> </v6:clientdetail> <v6:transactiondetail> <v6:customertransactionid>track number</v6:customertransactionid> <v6:localization> <v6:languagecode>en</v6:languagecode> <v6:localecode>us</v6:localecode> </v6:localization> </v6:transactiondetail> <v6:version> <v6:serviceid>trck</v6:serviceid> <v6:major>6</v6:major> <v6:intermediate>0</v6:intermediate> <v6:minor>0</v6:minor> </v6:version> <v6:packageidentifier> <v6:value>'.$tracking_number.'</v6:value> <v6:type>tracking_number_or_doortag</v6:type> </v6:packageidentifier> </v6:trackrequest> </soapenv:body> </soapenv:envelope>';
all values being swapped in correctly, , getting success response fedex. issue response has 1 tracking event. event appears last tracking update fedex (in case, delivery time, date, , address) not showing tracking events along way.
here response get: pastebin
as can see, package status delivered, , delivery address listed in , origin , steps along way not. suggestions on how tracking info , not recent step? appreciated.
for version 8, need add following tag, @ bottom of xml request, right above closing "trackrequest" tag:
<processingoptions>include_detailed_scans</processingoptions>
Comments
Post a Comment