通过Postman调用FedEx Track v14 SOAP API无法获取送达日期求助
How to Get FedEx Delivery Date & Transit Time via Track v14 SOAP API
Hey there! I see you're successfully calling the FedEx Track v14 API but only getting shipment and pickup dates—let's fix that so you can pull in delivery dates and transit time.
The Root Issue
FedEx's Track API returns minimal data by default. To get extended details like delivery estimates and transit time, you need to explicitly request those fields using processing options in your SOAP request.
Step-by-Step Fix
Update your TrackRequest XML to include these key elements:
- Add
ProcessingOptionsto tell FedEx you want delivery and transit details - (Optional) Enable
IncludeDetailedScansfor more granular shipment status data
Here's the modified request code (fill in your auth details and tracking number):
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v14="http://fedex.com/ws/track/v14"> <soapenv:Header/> <soapenv:Body> <v14:TrackRequest> <v14:WebAuthenticationDetail> <v14:UserCredential> <v14:Key>YOUR_FEDEX_API_KEY</v14:Key> <v14:Password>YOUR_FEDEX_API_PASSWORD</v14:Password> </v14:UserCredential> </v14:WebAuthenticationDetail> <v14:ClientDetail> <v14:AccountNumber>YOUR_FEDEX_ACCOUNT_NUMBER</v14:AccountNumber> <v14:MeterNumber>YOUR_FEDEX_METER_NUMBER</v14:MeterNumber> </v14:ClientDetail> <v14:TransactionDetail> <v14:CustomerTransactionId>Track Delivery Details Request</v14:CustomerTransactionId> </v14:TransactionDetail> <v14:Version> <v14:ServiceId>trck</v14:ServiceId> <v14:Major>14</v14:Major> <v14:Intermediate>0</v14:Intermediate> <v14:Minor>0</v14:Minor> </v14:Version> <!-- Request delivery and transit time details --> <v14:ProcessingOptions>INCLUDE_DELIVERY_DETAILS</v14:ProcessingOptions> <v14:ProcessingOptions>INCLUDE_TRANSIT_TIME_INFORMATION</v14:ProcessingOptions> <v14:PackageIdentifier> <v14:Type>TRACKING_NUMBER_OR_DOORTAG</v14:Type> <v14:Value>YOUR_TRACKING_NUMBER</v14:Value> </v14:PackageIdentifier> <!-- Optional: Get full scan history --> <v14:IncludeDetailedScans>true</v14:IncludeDetailedScans> </v14:TrackRequest> </soapenv:Body> </soapenv:Envelope>
What to Look for in the Response
After sending this updated request, you'll find the data you need in the TrackDetails section of the SOAP response:
- Estimated Delivery Date: Check
EstimatedDeliveryTimestamp(for in-transit packages) - Actual Delivery Date: Check
ActualDeliveryTimestamp(only available if the package has been delivered) - Transit Time: Look for
TransitTime(some services return this as a pre-calculated value; if not, you can compute it usingShipTimestampandEstimatedDeliveryTimestamp)
Quick Notes
- Make sure your authentication details (API key, password, account/meter numbers) are correct—missing or invalid credentials can limit the data returned
- If the package is still in transit,
ActualDeliveryTimestampwon't be present; rely onEstimatedDeliveryTimestampinstead
内容的提问来源于stack exchange,提问作者prashant rawat
相关产品推荐
相关产品推荐

