Multiple 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 multiple pick up point.


Resource

/pbb/adm/createmygenieshipments


Name Type Description
carrierId * long ID which will be given at the time of registration
pickup
name * String Name of the customer
address String Actual pick up location, if the address is not available in google directory i.e address should contain latitude and longitude
gaddress * String Address available in google directory.If the exact address is not available in google directory. Set the nearby address of the location available in google directory
sublocality String For Address
locality * String For Address
city * String For Address
lat * Double GPS details of the Location
lng * Double GPS details of the Location
amount double Cash on delivery
loads
quantity double Product Quantity
price double Product Price
name * String Name of the Product
dest
name * String Name of Customer (Shipment Receiver)
phone * String Phone number of the customer (Shipment Receiver)
address String Drop location address, must be available in the google directory
gaddress * String Actual Drop location, if the address is not available in google directory i.e address should contain latitude and longitude
sublocality String For Address
locality String For Address
city String For Address
lat * String GPS details of the Location
lng * String GPS details of the Location
amount double Cash on delivery

Request

{
  "carrierId":736,
  "jobs":[
      {
        "pickup":[
            {
                "name":"Rahul",
                "phone":"8789304400",
                "address":"Jogeshwari East, Mumbai, Maharashtra 400093",
                "gaddress":"Jogeshwari East, Mumbai, Maharashtra 400093",
                "sublocality":"",
                "locality":"Jogeshwari",
                "city":"Mumbai",
                "lat":13.008650,
                "lng":80.212307,
                "amount":200,
                "loads":[
                    {
                        "quantity":2,
                        "price":100.00,
                        "name":"Mango Juice"
                    }
                  ]
            },
            {
                "name":"Sumit",
                "phone":"9699777307",
                "address":"Malvani, Malad West, Mumbai, Maharashtra 400064",
                "gaddress":"Malvani, Malad West, Mumbai, Maharashtra 400064",
                "sublocality":"",
                "locality":"Malad",
                "city":"Mumbai",
                "lat":13.082456,
                "lng":80.170303,
                "amount":600,
                "loads":[
                    {
                        "quantity":15,
                        "price":40.00,
                        "name":"Chocolate Cake Pashties"
                    }
                  ]
            }
        ],
        "dest":
            {
                "name":"John Bricks",
                "phone":"9823921234",
                "address":"Powai Flyover, Mumbai, Maharashtra 400076",
                "gaddress":"Powai Flyover, IIT Area, Mumbai, Maharashtra 400076",
                "sublocality":"",
                "locality":"Powai",
                "city":"Mumbai",
                "lat":13.082456,
                "lng":80.170303,
                "amount":600
            }
        }
    ]
  }
{
    "responseCode":"1000",
    "errors":null,
    "jobs":[
        {
            "shipmentId":348,
            "driver":
                {
                    "userId":128,
                    "firstName":"John",
                    "lastName":"Blake",
                    "userType":3,
                    "email":"john@parsel.in",
                    "phone":"2938495039",
                    "online":1,
                    "lat":12.891528,
                    "lng":80.084458,
                    "vehicle":
                        {
                            "vehicleId":67,
                            "vehicleName":"Bajaj Pulsur 150",
                            "vehicleClass":"BIKE",
                            "vehicleNo":"MH 01 AW 8696",
                            "vehicleType":1,
                            "chassisNo":"MH 01 AW 8696"
                        }
                }
          }
      ]
  }

Error

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