OT 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. It is One Touch Service for Parsel Application users


Resource

/pbb/adm/createotshipments


Name Type Description
vehicleType * int Set 1 for Bike, 2 for Mini and 3 for Maxi Vehicle
pickup * String Actual address from where the shipment has to be taken. It also includes landmark/flat no/ flat name of the pickup address.
lat Double GPS details of the Location
lng Double GPS details of the Location
pickDoorNo String For Address
pickLandmark String For Address
pickHouseName String For Address
name * String Name of the customer
phone * String Phone number of the customer
dest String Actual address from where the shipment has to be dropped. It also includes landmark/flat no/ flat name of the drop address.
dlat Double GPS details of the Delivery Location
dlng Double GPS details of the Delivery Location
destDoorNo String For Address
destLandmark String For Address
destHouseName String For Address
destName * String Name of the customer (Receiver)
destNo * String Phone number of the customer (Receiver)
cod * double Cash on delivery. If it is not cod delivery. set cod as 0.
userId * long ID which will be given at the time of registration
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

{
  "job":
      {
          "vehicleType":3,
          "pickup":"Jogeshwari East, Mumbai, Maharashtra 400093",
          "lat":13.13,
          "lng":80.80,
          "pickDoorNo":"403",
          "pickLandmark":"",
          "pickHouseName":"Aashiyana CHS",
          "name":"Rahul",
          "phone":"8789304400",
          "dest":"Powai Flyover, Mumbai, Maharashtra 400076",
          "dlat":13.01,
          "dlng":80.10,
          "destDoorNo":"",
          "destLandmark":" IIT Area",
          "destHouseName":"",
          "destName":"John Bricks",
          "destNo":"9823921234",
          "cod":200,
          "userId":203,
          "clientId":1
      },
  "carrierId":737,
}
{
    "responseCode":"1000",
    "errors":null,
    "job":
        {
            "shipment":
                {
                    "shipmentId":349,
                    "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_460",
                    "orderId":"29",
                    "express":0,
                    "slotted":1,
                    "deliveryDate":"2015-09-16 00:00:00",
                    "uid":"sd731b8117154ec38e1eda0b98072336",
                    "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":
                {  
                    "flow":"AS",
                    "completed":1
                } 
        }
  }

Error

{
  "responseCode": "1001",
  "errors": [
      {
          "code": "TI.0.3.43",
          "data": null
      }
    ],
  "responseMessage": null,
  "isValid": null,
  "jobs": null
}