New Booking
post
{baseUrl}/
deliveries
Request delivery
Create a new delivery booking. Include pick-up details, drop-off details, a unique customerId.
For bookings to be processed by your partners, select orderType: "PROCESSING"
For bookings to be handled by the Sendstack Network, select orderType: "FULFILLMENT". By default, the payment for the delivery is charged to your wallet, there's an optional paymentSource field for when the payment for the delivery shouldn't be deducted from your wallet. The paymentSource (phone number) is sent a text message with the payment link for the delivery.
Parameters
Body
customerId
string
Unique customer ID
pickup*
object
Pickup details
drops*
array
Dropoff locations and details
orderType*
string
Responses
200
Request successfully placed
401
422: Unprocessable Entity
Low wallet balance
{
"customerId": "customerId",
"pickup": {
"address": "30 Corner Road, Alagomeji, Yaba",
"pickupName": "Tosin",
"pickupNumber": "08022222222",
"pickupDate": "2023-09-27",
"altPickupNumber": "08033000000",
"lat": "6.497696267609367",
"long": "3.383307210796614"
},
"drops": [
{
"recipientName": "Nonso",
"recipientNumber": "09012234567",
"address": "24 0ga Street, Surulere",
"lat": "6.497696267609367",
"long": "3.383307210796614",
"altRecipientNumber": "08137421403"
},
{
"recipientName": "Kabir",
"recipientNumber": "09023456690",
"address": "24 Millie Crescent, Lekki",
"lat": "6.497696267609367",
"long": "3.383307210796614"
}
],
"orderType": "FULFILLMENT"
}
Last modified 27d ago