Create Order
POST
{{ BASE_URL }}/api/order
Request Body
Name
Type
Description
deliveryAddress*
String
deliveryLongitude*
Decimal
deliveryLatitude*
Decimal
dispatcherId*
Int
details*
Array
{
"isSuccessful": true,
"message": "string",
"code": "string",
"data": {
"id": 0,
"status": "string",
"details": [
{
"id": 0,
"dispatcher": {
"id": 0,
"firstName": "string",
"lastName": "string",
"phone": "string",
"email": "string",
"photoUrl": "string",
"addedDate": "2023-11-09T09:08:19.912Z",
"lastKnownLocation": {
"longitude": 0,
"latitude": 0
},
"locationLastUpdated": "2023-11-09T09:08:19.912Z",
"isOnline": true,
"rating": 0
},
"productType": "string",
"status": "string",
"requestTime": "2023-11-09T09:08:19.912Z",
"deploymentTime": "2023-11-09T09:08:19.912Z",
"arrivalTime": "2023-11-09T09:08:19.912Z",
"completionTime": "2023-11-09T09:08:19.912Z",
"cancelationTime": "2023-11-09T09:08:19.912Z",
"deliveryLocation": "string",
"additionalInfo": "string",
"deliveryCoordinates": {
"longitude": 0,
"latitude": 0
},
"route": [
{
"location": {
"longitude": 0,
"latitude": 0
}
}
],
"baseFare": 0,
"quantity": 0,
"productUnitCost": 0,
"totalProductCost": 0,
"unitDistanceRate": 0,
"distance": 0,
"totalDistanceCost": 0,
"unitTimeCost": 0,
"totalTimeCost": 0,
"totalDeliveryCharge": 0,
"totalCost": 0,
"rating": 0,
"estimatedDistance": "string",
"estimatedTime": "string",
"paymentType": "string",
"deliveryFee": 0,
"size": 0
}
]
}
}
{
"deliveryAddress": "string",
"additionalInformation": "string",
"deliveryLongitude": 0,
"deliveryLatitude": 0,
"dispatcherId": 0,
"details": [
{
"productType": "Petrol",
"quantity": 0,
"size": 0
}
],
"agentReference": "string"
}
Last updated