BlueDart Courier API Integration in PHP CodeIgniter

Here we will see how to integrate Bluedart Courier API so we can send products to our customers and pick products from the customer.

we will Generate BlueDart WayBill also. In this tutorial, we are using CodeIgniter.

NOTE: It’s SOAP base API so never forget to extend it’s class in php, e.g.
class DebugSoapClient extends SoapClient.
this class is added in the given controller code.

 

STEP 1:

Create a file in  application/controllers/Bluedart.php and put the given code below.

CHANGE / UPDATE these fields with real values, which you will get from BlueDart:

 

 

 

STEP 2:

In Above Controller we are using MODEL ‘blueDartResponse()’ to save vluedart response to Database table, so we have to create a ‘model’ file here.

Create a file in  application/models/Bluedartmodel.php and put the given code below.

Download Files From GitHub

Leave a Reply

Your email address will not be published. Required fields are marked *