Delivery
Was this helpful?
Was this helpful?
Create a new delivery. If a callback URL was provided, delivery status updates will be sent to that URL. See CallbackDeliveryPayload for the structure of the data sent.
POST /delivery/create-delivery HTTP/1.1
Host: test.swooveapi.com
Content-Type: application/json
Accept: */*
Content-Length: 574
{
"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
}
}
],
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"instructions": "text",
"reference": "text",
"estimate_id": "text"
}
{
"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
}
}
],
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"instructions": "text",
"reference": "text",
"estimate_id": "text",
"status": "PENDING",
"delivery_code": "text",
"secret_code": "text",
"timestamp": 1,
"full_price": {
"discount": 1,
"value": 1,
"currency_code": "text",
"currency_symbol": "text",
"currency_name": "text"
}
}
}
Bulk Delivery Request Structure
The estimate id of the selected estimate that was returned during the create delivery estimate request
POST /bulk-delivery/create-bulk-delivery HTTP/1.1
Host: test.swooveapi.com
Content-Type: application/json
Accept: */*
Content-Length: 595
{
"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
}
}
],
"contacts": {
"name": "text",
"mobile": "text",
"email": "text"
},
"instructions": "text",
"reference": "text"
}
],
"estimate_id": "text"
}
{
"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
}
}
],
"contacts": {
"name": "text",
"mobile": "text",
"email": "text"
},
"status": "PENDING",
"delivery_code": "text",
"secret_code": "text",
"instructions": "text",
"reference": "text",
"full_price": {
"discount": 1,
"value": 1,
"currency_code": "text",
"currency_symbol": "text",
"currency_name": "text"
},
"waybill_link": "text",
"tracking_link": "text",
"time_completed": 1
}
]
}