Estimates
Was this helpful?
Was this helpful?
Delivery Estimate Request Structure
Type of vehicle wanted for the delivery
MOTORCYCLE
- Normal last-mile bikesMOTORCYCLE
POST /estimates/create-estimate HTTP/1.1
Host: test.swooveapi.com
Content-Type: application/json
Accept: */*
Content-Length: 455
{
"pickup": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "text",
"lat": 1,
"lng": 1,
"location": "text"
},
"dropoff": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "text",
"lat": 1,
"lng": 1,
"location": "text"
},
"items": [
{
"itemName": "text",
"itemQuantity": 1,
"itemCost": 1,
"description": "text",
"itemWeight": 1,
"is_fragile": true,
"dimensions": {
"x": 1,
"y": 1,
"z": 1
}
}
]
}
{
"success": true,
"code": 1,
"message": "text",
"responses": {
"pickup": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "text",
"lat": 1,
"lng": 1,
"location": "text"
},
"dropoff": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "text",
"lat": 1,
"lng": 1,
"location": "text"
},
"items": [
{
"itemName": "text",
"itemQuantity": 1,
"itemCost": 1,
"description": "text",
"itemWeight": 1,
"is_fragile": true,
"dimensions": {
"x": 1,
"y": 1,
"z": 1
}
}
],
"timestamp": 1,
"optimal_estimate": {
"estimate_id": "text",
"selected_estimate_link": "text",
"estimate_type_details": {
"name": "text",
"icon": "text"
},
"discount": 1,
"currency_code": "text",
"currency_symbol": "text",
"currency_name": "text",
"full_price": 1,
"time_string": "text",
"end_time": 1
},
"estimates": [
{
"estimate_id": "text",
"selected_estimate_link": "text",
"estimate_type_details": {
"name": "text",
"icon": "text"
},
"discount": 1,
"currency_code": "text",
"currency_symbol": "text",
"currency_name": "text",
"full_price": 1,
"time_string": "text",
"end_time": 1
}
]
}
}
Bulk Delivery Estimate Structure
POST /bulk-estimate/create-bulk-estimate HTTP/1.1
Host: test.swooveapi.com
Content-Type: application/json
Accept: */*
Content-Length: 475
{
"delivery_list": [
{
"pickup": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "text",
"lat": 1,
"lng": 1,
"location": "text"
},
"dropoff": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "text",
"lat": 1,
"lng": 1,
"location": "text"
},
"items": [
{
"itemName": "text",
"itemQuantity": 1,
"itemCost": 1,
"description": "text",
"itemWeight": 1,
"is_fragile": true,
"dimensions": {
"x": 1,
"y": 1,
"z": 1
}
}
]
}
]
}
{
"success": true,
"code": 1,
"message": "text",
"responses": {
"optimal_estimate": {
"estimate_type_details": {
"name": "text",
"icon": "text"
},
"total_pricing": {
"discount": 1,
"value": 1,
"currency_code": "text",
"currency_symbol": "text",
"currency_name": "text"
},
"time_string": "text",
"estimate_id": "text",
"selected_estimate_link": "text",
"individual_pricing": [
{
"pickup": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "text",
"lat": 1,
"lng": 1,
"location": "text"
},
"dropoff": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "text",
"lat": 1,
"lng": 1,
"location": "text"
},
"items": [
{
"itemName": "text",
"itemQuantity": 1,
"itemCost": 1,
"description": "text",
"itemWeight": 1,
"is_fragile": true,
"dimensions": {
"x": 1,
"y": 1,
"z": 1
}
}
],
"price_details": {
"discount": 1,
"value": 1,
"currency_code": "text",
"currency_symbol": "text",
"currency_name": "text"
}
}
]
},
"estimates": [
{
"estimate_type_details": {
"name": "text",
"icon": "text"
},
"total_pricing": {
"discount": 1,
"value": 1,
"currency_code": "text",
"currency_symbol": "text",
"currency_name": "text"
},
"time_string": "text",
"estimate_id": "text",
"selected_estimate_link": "text",
"individual_pricing": [
{
"pickup": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "text",
"lat": 1,
"lng": 1,
"location": "text"
},
"dropoff": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "text",
"lat": 1,
"lng": 1,
"location": "text"
},
"items": [
{
"itemName": "text",
"itemQuantity": 1,
"itemCost": 1,
"description": "text",
"itemWeight": 1,
"is_fragile": true,
"dimensions": {
"x": 1,
"y": 1,
"z": 1
}
}
],
"price_details": {
"discount": 1,
"value": 1,
"currency_code": "text",
"currency_symbol": "text",
"currency_name": "text"
}
}
]
}
]
}
}