Reschedule Delivery

Reschedule Delivery by delivery ID

Reschedule Delivery

POST {baseUrl}/deliveries/:id/reschedule

Reschedule Delivery by passing deliveryId

Path Parameters

Name
Type
Description

id*

String

Headers

Name
Type
Description

app_id*

String

app_secret*

String

Request Body

Name
Type
Description

pickupDate*

String

{
  "status": true,
  "message": "Delivery cancelled",
  "data": {
  }
}

Sample Success Data

// Sample Request Information
Url: https://sandbox.sendstack.africa/api/v1/deliveries/yourDeliveryId/reschedule
NB: Replace yourDeliveryId with an actual delivery Id
Method: POST
Headers: 
 - app_id: "your app_id"
 - app_secret: "your app_secret"
// Sample Request body
{
    "pickupDate": "2024-09-22"
}
// Sample Response Body - 200 OK
{
       "status": true,
       "message": "Rescheduled delivery",
       "data": {
       "pickup": {
          "address": "42230 Gene Unions",
          "pickupName": "Theodore Dietrich IV",
          "pickupNumber": "8032368985",
          "pickupDate": "2024-03-22T00:00:00.000Z",
          "locationCode": "01",
          "country": "NG",
          "lat": 6.602928,
          "long": 3.345006,
          "lga": "Location 1",
          "state": "Lagos",
          //..truncated for brevity
        }
    }

Sample Error Data

// Sample Request Information
Url: https://sandbox.sendstack.africa/api/v1/deliveries/invalidDeliveryId/reschedule
Headers: 
 - app_id: "your app_id"
 - app_secret: "your app_secret"
//Sample Response Body - 200 OK
{
    "status": false,
    "message": "Invalid deliveryId"
}

Last updated