Sendstack APIs
  • Introduction
  • The Basics
    • Set up your account
    • Base URLs
    • Authentication
    • Postman
    • Responses and Errors
    • Webhook Verification
    • Pagination
    • Rate Limiting
    • Session
  • Guides
    • Integrated Partners
    • Manual Partners
    • Connected Partners
    • Connected Platforms
    • Payments
    • Addresses and Locations
    • Delivery Statuses
    • Order Tracking
    • Common Terminology
    • Packaging
    • Pay on Delivery
    • Roles and Permissions
      • Associates
      • Operators
      • Admins
      • Super Admins
      • Tabular presentation
    • Websockets
  • Delivery Management APIs
    • Wallet
      • Get Wallet Balance
      • Get Wallet Transactions
    • Locations
      • Get Mapped Locations
      • Get Countries
    • Estimates
      • Get Delivery Price Estimate
    • Partners
      • Get Partners
      • Get Partner
      • Update Partner Profile
      • Add Partner Off Days
      • Delete Partner Off Day
    • Packaging
    • Categories
    • Bookings
      • New Booking
      • Generate POD account number
      • Fetch Deliveries
      • Update Delivery Details
      • Update Drop Statuses
      • Cancel Drops
      • Reschedule Delivery
      • Update Delivery Window
      • Assign Drop
    • Status Tracking
      • Track Delivery Status
    • Messaging
      • Send Customer Message
      • Add Private Note
      • Update note status
    • Sample Webhook Payloads
      • New delivery
      • Updated delivery status
      • New internal note
      • New customer message
      • Pickup attempt
      • Dropoff attempt
      • Pickup window updated
      • Delivery window updated
  • Live Tracking APIs
    • Devices
      • Get Devices
    • Positions
      • Get All Positions
      • Get Device Position History
      • Stream Positions
    • Geofences
      • Create Geofence
      • Update Geofence
      • Fetch Geofences
      • Fetch Single Geofence
    • Events
      • Create Events
        • Overspeed Event
        • Low Battery Event
        • No Movement Event
        • No Signal Event
        • Geofence In Event
        • Geofence Out Event
      • Update Events
        • Overspeed Event
        • Low Battery Event
        • No Movement Event
        • No Signal Event
        • Geofence In Event
        • Geofence Out Event
      • Fetch Events
      • Fetch Single Event
    • Sample Wehook Payloads
      • Overspeed Event
      • Low Battery Event
      • No Movement Event
      • No Signal Event
      • Geofence In Event
      • Geofence Out Event
Powered by GitBook
On this page
  • Reschedule Delivery
  • Sample Success Data
  • Sample Error Data
  1. Delivery Management APIs
  2. Bookings

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": {
  }
}
{
    "status": false,
    "message": "Invalid app_id or app_secret",
    "data": {
        "statusCode": 401,
        "message": "Invalid app_id or app_secret",
        "isOperational": true,
    }
}

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"
}
PreviousCancel DropsNextUpdate Delivery Window

Last updated 1 year ago