This endpoint retrieves all deliveries booked under your business. You can apply filters using the query parameters outlined below:
// Sample Request information
Url: https://sandbox.sendstack.africa/api/v1/deliveries
Method: GET
Headers:
- app_id: "your app_id"
- app_secret: "your app_secret"
// Sample Response Body - 200 OK
{
"status": true,
"message": "Deliveries successfully retrieved",
"data": {
"drops": [
{
"id": "65b8c2c734d8cd1be099fd45",
"deliveryId": "65b8c2c734d8cd1be099fd47",
"status": "PENDING",
"paymentStatus": "PENDING",
"trackingId": "E033LM",
"batchId": "T4SYZ3",
"customer": {
"id": "670f5170d244e83e2424919e",
"name": "Bob",
"phone": "+2348151911111"
},
"customFields": {
"pickup": {
"pickup_house_number": 1
},
"drop": {
"dropoff_house_number": 2
}
}
}
//...trunated for brevity
}
// Sample Request information
Url: https://sandbox.sendstack.africa/api/v1/deliveries?batchId={{batchId}}
Method: GET
Headers:
- app_id: "your app_id"
- app_secret: "your app_secret"
Query parameter:
- batchId = "delivery batchId"
// Sample Response Body - 200 OK
{
"status": true,
"message": "Deliveries successfully retrieved",
"data": {
"drops": [
{
"id": "65b8c02734d8cd1be099fcf1",
"status": "PENDING",
"paymentStatus": "PENDING",
"trackingId": "KH3I65",
"batchId": "MFUD2A",
"address": "95975 Barton Fields",
"pickupName": "Toni Dicki PhD",
"pickupNumber": "+2348017126895",
"altPickupNumber": "+2348033000000",
"pickupLga": "Yaba - Makoko",
"pickupState": "Lagos",
"recipientName": "Kabir",
"recipientNumber": "+23490234500690",
"recipientLga": "Yaba - Makoko",
"amount": 1500,
"estimatedPickupWindow": {
"date": "2024-10-27T08:00:00.000Z",
"start": "2024-10-27T08:00:00.000Z",
"end": "2024-10-27T13:00:00.000Z"
},
//...truncated for brevity
}
}
// Sample Request information
Url: https://sandbox.sendstack.africa/api/v1/deliveries?customer={{customerId}}
Method: GET
Headers:
- app_id: "your app_id"
- app_secret: "your app_secret"
Query parameter:
- customer = "customerId"
// Sample success Response Body - 200 OK
{
"status": true,
"message": "Deliveries successfully retrieved",
"data": {
"drops": [
{
"id": "65b8c02734d8cd1be099fcf1",
"status": "PENDING",
"paymentStatus": "PENDING",
"trackingId": "KH3I65",
"batchId": "MFUD2A",
"address": "95975 Barton Fields",
"pickupName": "Toni Dicki PhD",
"pickupNumber": "+2348017126895",
"altPickupNumber": "+2348033000000",
"pickupLga": "Yaba - Makoko",
"pickupState": "Lagos",
"recipientName": "Kabir",
"recipientNumber": "+23490234500690",
"recipientLga": "Yaba - Makoko",
"amount": 1500,
"customer": {
"id": "670f5170d244e83e2424919e",
"name": "Bob",
"phone": "+2348151911111"
}
//...truncated for brevity
}
}