Single Pick and Multiple Drop Shipments (Slotted)


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 static and configured at backend while registration


Resource

/pbb/adm/createdoneshipments


Name Type Description
orderNumber String Identifier for the client reference to their product
orderId String Identifier for the client reference to their product
gpickup * String Google address of the drop location.If the exact address is not available in google directory. Set the nearby address of the pickup location available in google directory
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 customer
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
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
carrierId * long ID which will be given at the time of registration

Request

{
  "input":
    {
      "jobs":[
        {
           "orderNumber":"CR_457",
           "orderId":"26",
           "gpickup":"Jogeshwari East, Mumbai, Maharashtra 400093",
           "pickup":"403, Ashiyana CHS, Jogeshwari East, Mumbai, Maharashtra 400093",
           "dest":"Powai Flyover, Mumbai, Maharashtra 400076",
           "gdest":"Powai Flyover, IIT Area, Mumbai, Maharashtra 400076",
           "cod":200,
           "name":"John Bricks",
           "phone":"9823921234",
           "deliveryDt":"2015-09-16 18:30:00",
           "express":0,
           "slotted":1,
           "clientId":1
        }
      ]
    },
      "carrierId":735
}  
{  
  "responseCode":"1000",
  "errors":null,
  "jobs":[  
     {  
        "shipment":{  
           "shipmentId":"346",
           "address":[  
              {  
                 "addressId":"112",
                 "name":"Rahul",
                 "phone":"8789304400",
                 "address":"403, Ashiyana CHS, 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_457",
           "orderId":"26",
           "express":0,
           "slotted":1,
           "deliveryDate":"2015-09-16 00:00:00",
           "uid":"af731b8117154ec38e1eda0b98072336",
           "clientId":1,
           "durationLimit":180,
           "grpId":"af731b8117154ec38e1eda0b98072337",
           "createdDate":1420227200,
           "carrierId":735,
           "wfDetails":null
        },
        "driver":{  
           "userId":"128",
           "firstName":"John",
           "lastName":"Blake",
           "userType":3,
           "email":"john@parsel.in",
           "phone":"2938495039",
           "online":1,
           "lat":12.891528,
           "lng":80.084458
        },
        "status":{  
           "flow":"AS",
           "completed":1
        }
     }
  ]
}

Error

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