Business Delivery Information
Delivery Code
Delivery Found
Delivery not found
Get Delivery Failed
GET /delivery/get-delivery/{delivery-code}?app_key=text HTTP/1.1
Host: test.swooveapi.com
Accept: */*
{
"success": true,
"code": 200,
"message": "Delivery Found",
"responses": {
"pickup": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "GH",
"lat": 1,
"lng": 1,
"location": "text"
},
"dropoff": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "GH",
"lat": 1,
"lng": 1,
"location": "text"
},
"items": [
{
"itemName": "text",
"itemQuantity": 1,
"itemCost": 1,
"description": "text",
"itemImages": [
"text"
],
"itemWeight": 1,
"is_fragile": false,
"dimensions": {
"x": 1,
"y": 1,
"z": 1
}
}
],
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"instructions": "text",
"reference": "text",
"estimate_id": "text",
"agent_details": {
"agent_first_name": "text",
"agent_last_name": "text",
"agent_mobile": "text",
"agent_picture": "text",
"license_type": "text",
"license_number": "text",
"license_expiry": 1
},
"agency_details": {
"name": "Agency Name",
"mobile_number": 23350484565,
"logo": "text",
"rating": 1,
"location": {
"country_code": "GH",
"latitude": 0,
"longitude": 0,
"city": "text",
"country": "text"
}
},
"vehicle_details": {
"_id": "67c849c22096cfb0aae13cdf",
"assigned_agent_id": "text",
"brand": "FORD",
"model": "FOCUS gps",
"color": "#edb6b6",
"picture": "https://example.com",
"vehicle_type": "CAR",
"license_plate_number": "GT-1234-2025",
"latest_location": {
"latitude": 1,
"longitude": 1,
"coordinates": [
-0.342392,
5.549658
],
"time": 1,
"location": "WEIJA GBAWE MUNICIPAL, GREATER ACCRA",
"state": "STOPPED",
"direction": 204,
"speed": 0
}
},
"status": "AGENCY_ASSIGNED",
"delivery_code": "text",
"secret_code": "text",
"timestamp": 1,
"full_price": {
"discount": 0,
"value": 0,
"currency_code": "GHS",
"currency_symbol": "₵",
"currency_name": "Ghanaian cedi"
},
"time_completed": 1
}
}Reference submitted during delivery creation
Delivery Found
Delivery not found
Get Delivery Failed
GET /delivery/single/get-by-reference/{reference}?app_key=text HTTP/1.1
Host: test.swooveapi.com
Accept: */*
{
"success": true,
"code": 200,
"message": "Delivery Found",
"responses": {
"pickup": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "GH",
"lat": 1,
"lng": 1,
"location": "text"
},
"dropoff": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "GH",
"lat": 1,
"lng": 1,
"location": "text"
},
"items": [
{
"itemName": "text",
"itemQuantity": 1,
"itemCost": 1,
"description": "text",
"itemImages": [
"text"
],
"itemWeight": 1,
"is_fragile": false,
"dimensions": {
"x": 1,
"y": 1,
"z": 1
}
}
],
"instructions": "text",
"reference": "text",
"status": "PENDING",
"delivery_code": "text",
"secret_code": "text",
"end_time": 1,
"full_price": {
"discount": 0,
"value": 0,
"currency_code": "GHS",
"currency_symbol": "₵",
"currency_name": "Ghanaian cedi"
},
"time_completed": 1
}
}Reference submitted during delivery creation
Delivery Found
Delivery not found
Get Delivery Failed
GET /delivery/bulk/get-by-reference/{reference}?app_key=text HTTP/1.1
Host: test.swooveapi.com
Accept: */*
{
"success": true,
"code": 200,
"message": "Delivery Found",
"responses": [
{
"pickup": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "GH",
"lat": 1,
"lng": 1,
"location": "text"
},
"dropoff": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "GH",
"lat": 1,
"lng": 1,
"location": "text"
},
"items": [
{
"itemName": "text",
"itemQuantity": 1,
"itemCost": 1,
"description": "text",
"itemImages": [
"text"
],
"itemWeight": 1,
"is_fragile": false,
"dimensions": {
"x": 1,
"y": 1,
"z": 1
}
}
],
"instructions": "text",
"reference": "text",
"status": "PENDING",
"delivery_code": "text",
"secret_code": "text",
"end_time": 1,
"full_price": {
"discount": 0,
"value": 0,
"currency_code": "GHS",
"currency_symbol": "₵",
"currency_name": "Ghanaian cedi"
},
"time_completed": 1
}
]
}This api allows you to fetch deliveries created by your api key. This route is paginated and defaults to 10 per page startiong from 0. It also allows a from and to date filter
This is the page number for the deliveries returned. It starts and defaults to 0
0This is the number of deliveries to return. It defaults to 10
10This is used to add the start date when fetching the delivery data. The from_date value should be the date and time in milliseconds.
0This is used to add the end date when fetching the delivery data. The to_date value should be the date and time in milliseconds.
0This is used to filter the deliveries returned by status. By default all deliveries are returned
Delivery Found
Delivery not found
Get Delivery Failed
GET /delivery/get-deliveries?app_key=text HTTP/1.1
Host: test.swooveapi.com
Accept: */*
{
"success": true,
"code": 200,
"message": "Delivery Found",
"responses": [
{
"pickup": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "GH",
"lat": 1,
"lng": 1,
"location": "text"
},
"dropoff": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "GH",
"lat": 1,
"lng": 1,
"location": "text"
},
"items": [
{
"itemName": "text",
"itemQuantity": 1,
"itemCost": 1,
"description": "text",
"itemImages": [
"text"
],
"itemWeight": 1,
"is_fragile": false,
"dimensions": {
"x": 1,
"y": 1,
"z": 1
}
}
],
"instructions": "text",
"reference": "text",
"status": "PENDING",
"delivery_code": "text",
"secret_code": "text",
"end_time": 1,
"full_price": {
"discount": 0,
"value": 0,
"currency_code": "GHS",
"currency_symbol": "₵",
"currency_name": "Ghanaian cedi"
},
"time_completed": 1
}
]
}Was this helpful?