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
  1. Delivery Management APIs
  2. Sample Webhook Payloads

New delivery

{
  "eventType": "order.new", 
  "id": "64e4eb8f450a1b56879f8fa9",
  "trackingUrl": "https://app.sendstack.africa/tracking?batchId=SH1P9A",
  "paymentStatus": "PAID",
  "paymentSource": "self",
  "batchId": "SH1P9A",
  "customerId": "admin",
  "totalAmount": 200,
  "pickup": {
    "address": "24, Ayomide street, Yaba",
    "locationCode": "6BX7",
    "pickupName": "Mex",
    "pickupNumber": "09081111111",
    "pickupDate": "2023-08-22T00:00:00.000Z",
    "lga": "Costain",
    "state": "Lagos"
  },
  "drops": [
    {
      "id": "64e4eb8e450a1b56879f8fa7",
      "status": "PENDING",
      "trackingId": "R7VAS7",
      "externalOrderId": "X1688y",
      "trackingUrl": "https://app.sendstack.africa/tracking?trackingId=R7VAS7",
      "batchId": "SH1P9A",
      "locationCode": "MTW2",
      "address": "35, Queen street, Ikoyi",
      "recipientName": "Tolu",
      "recipientNumber": "09081234353",
      "estimatedPickupWindow": {
        "date": "2023-08-22T00:00:00.000Z",
        "start": "2023-08-22T07:00:00.000Z",
        "end": "2023-08-22T13:00:00.000Z"
      },
      "estimatedDropoffWindow": {
        "date": "2023-08-22T00:00:00.000Z",
        "start": "2023-08-22T13:00:00.000Z",
        "end": "2023-08-22T18:00:00.000Z"
      },
      "pickupOtp": "6440",
      "dropoffOtp": "4205",
      "state": "Lagos",
      "lga": "IGANDO",
      "amount": 200,
      "statusTimestamps": []
    }
  ],
  "createdAt": "2023-08-22T17:08:31.117Z",
  "webhookId": "66faa977606e413be093c02f"
}
PreviousSample Webhook PayloadsNextUpdated delivery status

Last updated 1 month ago