The BlueDart courier PHP API can be used in any PHP framework or core PHP. Simply copy and paste the classes for easy use.
- PHP version > 5.7
- SOAP extension must be installed on the server.
- Download all files.
- Obtain your BlueDart license key file (2 license files required).
- Obtain your BlueDart login ID and password.
- Open the required service file and paste your credentials into the profile array in the file.
- That's it.
To use the tracking API:
- Use the following URL (replace with your BlueDart ID and password):
https://api.bluedart.com/servlet/RoutingServlet?handler=tnt&action=custawbquery&loginid=BOM00001&awb=awb&numbers=15616373625&format=xml&lickey=4ecbd06dc0b9737d69120029cb05c9df&verno=1.3&scan=0
- Use the following code to get the current tracking ID status:
$url = 'https://api.bluedart.com/servlet/RoutingServlet?handler=tnt&action=custawbquery&loginid='.BD_LOGIN_ID.'&awb=awb&numbers='.$id.'&format=xml&lickey='.BD_TRACK_API_KEY.'&verno=1.3&scan=0';
$xml = simplexml_load_file($url);