Single Pick and Multiple Drop Shipments


Description

The end point will enable you to book a vehicle(bike/mini/truck) for a multiple drop shipment from a single pick up point. You can set the priority for shipment by using express parameter for immediate delivery. Shipment without express delivery will be delivered within the slot time interval mentioned in the input. Slot time will be dynamic based on the configured value the slot will be created.


Resource

/pbb/adm/createduniyashipments


Name Type Description
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.
name * String Name of the customer
phone * String Phone number of the vendor
deliveryDt String Expected delivery date and Time (Format "yyyy-MM-dd HH:mm:ss")
express int Set 1 for immediate delivery, 0 for normal delivery
clientId * long ID which will be given at the time of registration
duration int Duration in which the shipment has to be delivered
custPhone String Phone number of the customer
orderNo String Identifier for the client reference to their product
carrierId * long ID which will be given at the time of registration

Request

{
    "jobs":[
        {
            "pickup":"Jogeshwari East, Mumbai, Maharashtra 400093",
            "dest":"Powai Flyover, Mumbai, Maharashtra 400076",
            "gdest":"Powai Flyover, IIT Area, Mumbai, Maharashtra 400076",
            "cod":200,
            "name":"Rahul",
            "phone":"8789304400",
            "deliveryDt":"2015-09-16 18:30:00",
            "express":0,
            "clientId":1,
            "duration":60,
            "custPhone":"9823921234",
            "orderNo":"27"
        }
    ],
    "carrierId":735
}  
{
    "responseCode":"1000",
    "errors":null,
    "jobs":[
        {
            "shipment":
                {
                    "shipmentId":347,
                    "address":[
                        {
                            "addressId":112,
                            "name":"Rahul",
                            "phone":"8789304400",
                            "address":"Jogeshwari East, Mumbai, Maharashtra 400093",
                            "sublocality":"",
                            "locality":"Jogeshwari",
                            "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":"Powai",
                            "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_458",
                    "orderId":"27",
                    "express":0,
                    "slotted":1,
                    "deliveryDate":"2015-09-16 00:00:00",
                    "uid":"de731b8117154ec38e1eda0b98072336",
                    "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.9",
          "data": null
      }
  ],
  " jobs ": null,
  " driver ": null,
  " status ": null
}