Method:
POST
Header Param:
Authorization: "The Login Token from Server
Body:
{
"cargoInfo": [
{
"color": "hardcodeColor",
"damages": [],
"make": "hardCodeMake",
"model": "hardcodeModel",
"tagPlate": "hardcodeTag",
"vinNumber": "hardcodeNum",
"year": 0
}
],
"destination": [
{
"country": "Country",
"gpsCoordinates": "39.2008516,-77.262523",
"locality": "Locality",
"postalCode": "12345",
"route": "Route",
"state": "State",
"streetNumber": "12345",
"timestamp": "2016-06-18T11:37+0000"
}
],
"location": [
{
"country": "Country",
"gpsCoordinates": "39.2008516,-77.262523",
"locality": "Locality",
"postalCode": "12345",
"route": "Route",
"state": "State",
"streetNumber": "12345",
"timestamp": "2016-06-18T11:37+0000"
}
],
"requester": {
"_id": "57543198ffb442dc0818d9c0",
"email": "email@email.com",
"gcmRegistered": false,
"userInfo": {
"firstName": "Usefirst",
"lastName": "Uselast",
"phoneNumber": "999-999-9999",
"address": "[\"57543198ffb442dc0818d9c3\"]"
}
},
"serviceType": [
{
"timestamp": "2016-06-18T11:37+0000",
"type": "Towing",
"userId": "57543198ffb442dc0818d9c0"
}
],
"status": [
{
"timestamp": "2016-06-18T11:37+0000",
"type": "New Order",
"userId": "57543198ffb442dc0818d9c0"
}
]
}
Response:
{
"__v": 0,
"requester": {
"_id": "57499ab3c438cbf802e0272d",
"gcm": {
"_id": "57499ab3c438cbf802e0272f",
"__v": 0,
"updated": "2016-06-15T21:09:44.345Z",
"token": "f4GyGJfb2ws:APA91bHLhggLUVWQ8abKS_rtUo5c6vSXPv74hCAcZo-kdmeft-pJc0bPoE2dA8vUQILJsMhq_mq2uPHuzs_sggr7VmtYlE5XNlMswWOiKlViXbFJJaXj9-WgkUIhP_chk1ioB9kRrMmH"
},
"userInfo": {
"_id": "57499ab3c438cbf802e02731",
"__v": 0,
"address": [
"57499ab3c438cbf802e02730"
],
"phoneNumber": "999-999-9999",
"profileImageURL": "modules/users/client/img/profile/default.png",
"gender": "",
"lastName": "Uselast",
"firstName": "Usefirst"
},
"providerData": {
"_id": "57499ab3c438cbf802e02732",
"__v": 0,
"expire": "2016-06-16T21:09:40.955Z",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1yZHJpdmVyIiwic2Vzc2lvbklEIjoic0xuVXdNaWs2UGlLLWQwOG9MLTh2Y0l2QUtDNEVGcTgiLCJsb2dpbkV4cGlyZXMiOjE0NjYxMTEzODA5NTV9.ePaEQ7-BYjFymN5Q26dvyR0pQwfKBoiQFMDa3bBCYYk"
},
"provider": "local",
"roles": {
"_id": "57499ab3c438cbf802e0272e",
"__v": 0,
"__t": "DriverRole",
"type": "driver",
"vehicles": [],
"routingNumber": "",
"bankAccount": "",
"companyId": "",
"status": "on duty",
"dotMedicalExpiration": "",
"dotMedical": "",
"insuranceExpiration": "",
"insuranceInfo": "",
"ssn": ""
},
"username": "Username",
"__v": 0,
"created": "2016-05-28T13:18:43.086Z",
"email": "email@email.com"
},
"_id": "5766d7b41f4087e708ab2f09",
"comments": [],
"serviceType": [
{
"_id": "5766d7b41f4087e708ab2f08",
"userId": "57499ab3c438cbf802e0272d",
"timestamp": "1466357684662",
"type": "Towing"
}
],
"priorityStatus": [
{
"_id": "5766d7b41f4087e708ab2f07",
"userId": "57499ab3c438cbf802e0272d",
"timestamp": "1466357684662",
"priority": "normal"
}
],
"cancelled": [],
"declined": [],
"eta": [],
"cargoInfo": [
{
"_id": "5766d7b41f4087e708ab2f06",
"damages": [],
"tagPlate": "hardcodeTag",
"vinNumber": "hardcodeNum",
"color": "hardcodeColor",
"year": "0",
"model": "hardcodeModel",
"make": "hardCodeMake",
"description": ""
}
],
"updated": "2016-06-19T17:34:44.664Z",
"orderNumber": "160619-1",
"created": "2016-06-19T17:34:44.664Z",
"destination": [
{
"_id": "5766d7b41f4087e708ab2f05",
"timestamp": "1466357684673",
"gpsCoordinates": "39.2008516,-77.262523",
"postalCode": "12345",
"country": "Country",
"state": "State",
"locality": "Locality",
"route": "Route",
"streetNumber": "12345"
}
],
"location": [
{
"_id": "5766d7b41f4087e708ab2f04",
"timestamp": "1466357684673",
"gpsCoordinates": "39.2008516,-77.262523",
"postalCode": "12345",
"country": "Country",
"state": "State",
"locality": "Locality",
"route": "Route",
"streetNumber": "12345"
}
],
"status": [
{
"_id": "5766d7b41f4087e708ab2f03",
"userId": "57543198ffb442dc0818d9c0",
"timestamp": "2016-06-18T11:37+0000",
"type": "New Order"
}
],
"pricePerMileRate": "3",
"hookingRate": "75"
}