Single Pick and Single Drop Shipments


Description

The end point will enable you to book a vehicle(bike/mini/truck) for a single drop shipment from a single pick up point.


Resource

/pbb/adm/createbcshipments


Name Type Description
orderNumber String Identifier for the client reference to their product
orderId String Identifier for the client reference to their product
pickup String Actual address from where the shipment has to be taken. (It also includes landmark/flat no/ flat name of the pickup address)
dest String Actual address from where the shipment has to be dropped. It also includes landmark/flat no/ flat name of the drop address.
gdest * String Google address of the drop location.If the exact address is not available in google directory. Set the nearby address of the dest location available in google directory
cod * double Cash on delivery. If it is not cod delivery. set cod as 0.
phone * String Phone number of the customer
pickupName String Contact name at the pickup location
pickupPhone String Contact phone at the pickup location
deliveryDt String Expected delivery date and Time (Format "yyyy-MM-dd HH:mm:ss")
pickupDt String EExpected pickup date and Time (Format "yyyy-MM-dd HH:mm:ss")
express int Set 1 for immediate delivery, 0 for normal delivery
slotted int Predefined time interval, within which the package is expected to be delivered
clientId * long ID which will be given at the time of registration
name * String Name of the customer
pickupLoads list list of loads to be collected at the pickup location
carrierId * long ID which will be given at the time of registration

Request

{
    jobs":[
      {
          "orderNumber":"181",
          "orderId":"1234",
          "pickup":"Nungambakkam Police Station, Valluvar Kottam High Road, Nungambakkam, Chennai, Tamil Nadu",
          "dest":"Express Mall, Club House Road, Express Estate, Chennai, Tamil Nadu",
          "gdest":"Express Mall, Club House Road, Express Estate, Chennai, Tamil Nadu",
          "cod":200,
          "phone":"9003181474",
		  "pickupName":"vijay",
		  "pickupPhone":"8056240089",
          "deliveryDt":"2015-12-30 15:00:00",
          "pickupDt":"2015-12-30 13:00:00",
          "express":0,
          "slotted":0,
          "clientId":3,
          "name":"pravin",
          "pickupLoads":[
              {
                  "quantity":10,
                  "price":100,
                  "name":"cookies"
              }
          ]
      }
  ],
  "carrierId":1000
}
{
	 "responseCode":"1000",
	 "errors":null,
	 "jobs":[
	    {
	        "shipment":
	           {
	               "shipmentId":345,
	               "address":[
	                   {
	                       "addressId":112,
	                       "name":"Rahul",
	                       "phone":"8789304400",
	                       "address":"Jogeshwari East, Mumbai, Maharashtra 400093",
	                       "sublocality":"",
	                       "locality":"",
	                       "city":"Mumbai",
	                       "lat":12.95173,
	                       "lng":80.1402,
	                       "amount":0.0,
	                       "loads":null,
	                       "gaddress":"Jogeshwari East, Mumbai, Maharashtra 400093"
	                   }
	               ],
	               "dest":[
	                   {
	                       "addressId":115,
	                       "name":"John Bricks",
	                       "phone":"9823921234",
	                       "address":"Powai Flyover, Mumbai, Maharashtra 400076",
	                       "sublocality":"",
	                       "locality":"",
	                       "city":"Mumbai",
	                       "lat":12.95173,
	                       "lng":80.1402,
	                       "amount":0.0,
	                       "loads":null,
	                       "gaddress":"Powai Flyover, IIT Area, Mumbai, Maharashtra 400076"
	                   }
	               ],
	               "user":null,
	               "cod":200.0,
	               "orderNumber":"CR_456",
	               "orderId":"25",
	               "express":0,
	               "slotted":1,
	               "deliveryDate":"2015-09-16 00:00:00",
	               "uid":"af731b8117154ec38e1eda0b98072336",
	               "clientId":1
	           },
	           "driver":{
	           "userId":128,
	           "firstName":"John",
	           "lastName":"Blake",
	           "userType":3,
	           "email":"john@parsel.in",
	           "phone":"2938495039",
	           "online":1,
	           "lat":12.891528,
	           "lng":80.084458
	       },
	       "status":null
	   }
	]
}         

Error

{
		"responseCode": "1001",
		"errors": [
		    {
		        "code": "TI.0.2.7",
		        "data": null
		    }
		],
		"driver ": false
}